/third_party/icu/icu4c/source/test/intltest/ |
D | colldata.cpp | 43 : ces(NULL), listMax(CELIST_BUFFER_SIZE), listSize(0) in CEList() 71 ces = ceBuffer; in CEList() 102 if (ces != ceBuffer) { in ~CEList() 103 DELETE_ARRAY(ces); in ~CEList() 122 uprv_memcpy(newCEs, ces, listSize * sizeof(uint32_t)); in add() 124 if (ces != ceBuffer) { in add() 125 DELETE_ARRAY(ces); in add() 128 ces = newCEs; in add() 132 ces[listSize++] = ce; in add() 138 return ces[index]; in get() [all …]
|
D | colldata.h | 117 uint32_t *ces; variable 271 int32_t minLengthInChars(const CEList *ces, int32_t offset) const; 291 int32_t minLengthInChars(const CEList *ces, int32_t offset, int32_t *history) const;
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataBuilder.java | 119 void add(CharSequence prefix, CharSequence s, long ces[], int cesLength) { in add() argument 120 int ce32 = encodeCEs(ces, cesLength); in add() 130 int encodeCEs(long ces[], int cesLength) { in encodeCEs() argument 142 return encodeOneCE(ces[0]); in encodeCEs() 145 long ce0 = ces[0]; in encodeCEs() 146 long ce1 = ces[1]; in encodeCEs() 166 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() 170 return encodeExpansion(ces, 0, cesLength); in encodeCEs() 331 int getCEs(CharSequence s, long ces[], int cesLength) { in getCEs() argument 332 return getCEs(s, 0, ces, cesLength); in getCEs() [all …]
|
D | ContractionsAndExpansions.java | 35 private long[] ces = new long[Collation.MAX_EXPANSION_LENGTH]; field in ContractionsAndExpansions 39 void handleExpansion(long ces[], int start, int length); in handleExpansion() argument 143 ces[0] = Collation.latinCE0FromCE32(ce32); in handleCE32() 144 ces[1] = Collation.latinCE1FromCE32(ce32); in handleCE32() 145 sink.handleExpansion(ces, 0, 2); in handleCE32() 158 ces[i] = Collation.ceFromCE32(data.ce32s[idx + i]); in handleCE32() 160 sink.handleExpansion(ces, 0, length); in handleCE32() 172 sink.handleExpansion(data.ces, idx, length); in handleCE32()
|
D | CollationBuilder.java | 111 ces[0] = getSpecialResetPosition(str); in addReset() 113 assert((ces[0] & Collation.CASE_AND_QUATERNARY_MASK) == 0); in addReset() 117 cesLength = dataBuilder.getCEs(nfdString, ces, 0); in addReset() 228 strength = ceStrength(ces[cesLength - 1]); in addReset() 230 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset() 480 long ce = ces[cesLength - 1]; in addRelation() 498 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation() 506 cesLength = dataBuilder.getCEs(nfdExtension, ces, cesLength); in addRelation() 518 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 520 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | CollationDataBuilder.java | 120 void add(CharSequence prefix, CharSequence s, long ces[], int cesLength) { in add() argument 121 int ce32 = encodeCEs(ces, cesLength); in add() 131 int encodeCEs(long ces[], int cesLength) { in encodeCEs() argument 143 return encodeOneCE(ces[0]); in encodeCEs() 146 long ce0 = ces[0]; in encodeCEs() 147 long ce1 = ces[1]; in encodeCEs() 167 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() 171 return encodeExpansion(ces, 0, cesLength); in encodeCEs() 332 int getCEs(CharSequence s, long ces[], int cesLength) { in getCEs() argument 333 return getCEs(s, 0, ces, cesLength); in getCEs() [all …]
|
D | ContractionsAndExpansions.java | 39 private long[] ces = new long[Collation.MAX_EXPANSION_LENGTH]; field in ContractionsAndExpansions 46 void handleExpansion(long ces[], int start, int length); in handleExpansion() argument 150 ces[0] = Collation.latinCE0FromCE32(ce32); in handleCE32() 151 ces[1] = Collation.latinCE1FromCE32(ce32); in handleCE32() 152 sink.handleExpansion(ces, 0, 2); in handleCE32() 165 ces[i] = Collation.ceFromCE32(data.ce32s[idx + i]); in handleCE32() 167 sink.handleExpansion(ces, 0, length); in handleCE32() 179 sink.handleExpansion(data.ces, idx, length); in handleCE32()
|
D | CollationBuilder.java | 115 ces[0] = getSpecialResetPosition(str); in addReset() 117 assert((ces[0] & Collation.CASE_AND_QUATERNARY_MASK) == 0); in addReset() 121 cesLength = dataBuilder.getCEs(nfdString, ces, 0); in addReset() 232 strength = ceStrength(ces[cesLength - 1]); in addReset() 234 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset() 484 long ce = ces[cesLength - 1]; in addRelation() 502 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation() 510 cesLength = dataBuilder.getCEs(nfdExtension, ces, cesLength); in addRelation() 522 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 524 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | collationdatabuilder.h | 98 const int64_t ces[], int32_t cesLength, 107 virtual uint32_t encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode); 165 int32_t getCEs(const UnicodeString &s, int64_t ces[], int32_t cesLength); 167 int64_t ces[], int32_t cesLength); 195 uint32_t encodeExpansion(const int64_t ces[], int32_t length, UErrorCode &errorCode); 221 int32_t getCEs(const UnicodeString &s, int32_t start, int64_t ces[], int32_t cesLength);
|
D | collationdatabuilder.cpp | 132 int32_t fetchCEs(const UnicodeString &str, int32_t start, int64_t ces[], int32_t cesLength); 172 int64_t ces[], int32_t cesLength) { in fetchCEs() argument 175 builderData.ces = builder.ce64s.getBuffer(); in fetchCEs() 201 ces[cesLength] = ce; in fetchCEs() 405 int64_t dataCE = fromBase ? base->ces[i] : ce64s.elementAti(i); in getCE32FromOffsetCE32() 470 return fromBase ? base->ces[i] : ce64s.elementAti(i); in getSingleCE() 536 const int64_t ces[], int32_t cesLength, in add() argument 538 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add() 662 CollationDataBuilder::encodeCEs(const int64_t ces[], int32_t cesLength, in encodeCEs() argument 678 return encodeOneCE(ces[0], errorCode); in encodeCEs() [all …]
|
D | collationsets.cpp | 157 int64_t dataCE = baseData->ces[Collation::indexFromCE32(baseCE32)]; in compare() 188 const int64_t *ces = data->ces + Collation::indexFromCE32(ce32); in compare() local 191 const int64_t *baseCEs = baseData->ces + Collation::indexFromCE32(baseCE32); in compare() 199 if(ces[i] != baseCEs[i]) { in compare() 457 ces[0] = Collation::latinCE0FromCE32(ce32); in handleCE32() 458 ces[1] = Collation::latinCE1FromCE32(ce32); in handleCE32() 459 sink->handleExpansion(ces, 2); in handleCE32() 472 ces[i] = Collation::ceFromCE32(*ce32s++); in handleCE32() 474 sink->handleExpansion(ces, length); in handleCE32() 485 sink->handleExpansion(data->ces + Collation::indexFromCE32(ce32), length); in handleCE32()
|
D | collationbuilder.cpp | 299 ces[0] = getSpecialResetPosition(str, parserErrorReason, errorCode); in addReset() 302 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset() 310 cesLength = dataBuilder->getCEs(nfdString, ces, 0); in addReset() 429 strength = ceStrength(ces[cesLength - 1]); in addReset() 435 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset() 700 int64_t ce = ces[cesLength - 1]; in addRelation() 724 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation() 737 cesLength = dataBuilder->getCEs(nfdExtension, ces, cesLength); in addRelation() 751 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32, errorCode); in addRelation() 753 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32, errorCode); in addRelation() [all …]
|
D | collationdata.h | 57 ce32s(NULL), ces(NULL), contexts(NULL), base(NULL), in CollationData() 116 int64_t dataCE = ces[Collation::indexFromCE32(ce32)]; in getCEFromOffsetCE32() 183 const int64_t *ces; member
|
/third_party/node/deps/icu-small/source/i18n/ |
D | collationdatabuilder.h | 98 const int64_t ces[], int32_t cesLength, 107 virtual uint32_t encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode); 165 int32_t getCEs(const UnicodeString &s, int64_t ces[], int32_t cesLength); 167 int64_t ces[], int32_t cesLength); 195 uint32_t encodeExpansion(const int64_t ces[], int32_t length, UErrorCode &errorCode); 221 int32_t getCEs(const UnicodeString &s, int32_t start, int64_t ces[], int32_t cesLength);
|
D | collationdatabuilder.cpp | 144 int32_t fetchCEs(const UnicodeString &str, int32_t start, int64_t ces[], int32_t cesLength); 184 int64_t ces[], int32_t cesLength) { in fetchCEs() argument 187 builderData.ces = builder.ce64s.getBuffer(); in fetchCEs() 213 ces[cesLength] = ce; in fetchCEs() 425 int64_t dataCE = fromBase ? base->ces[i] : ce64s.elementAti(i); in getCE32FromOffsetCE32() 490 return fromBase ? base->ces[i] : ce64s.elementAti(i); in getSingleCE() 555 const int64_t ces[], int32_t cesLength, in add() argument 557 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add() 773 CollationDataBuilder::encodeCEs(const int64_t ces[], int32_t cesLength, in encodeCEs() argument 789 return encodeOneCE(ces[0], errorCode); in encodeCEs() [all …]
|
D | collationsets.cpp | 157 int64_t dataCE = baseData->ces[Collation::indexFromCE32(baseCE32)]; in compare() 188 const int64_t *ces = data->ces + Collation::indexFromCE32(ce32); in compare() local 191 const int64_t *baseCEs = baseData->ces + Collation::indexFromCE32(baseCE32); in compare() 199 if(ces[i] != baseCEs[i]) { in compare() 457 ces[0] = Collation::latinCE0FromCE32(ce32); in handleCE32() 458 ces[1] = Collation::latinCE1FromCE32(ce32); in handleCE32() 459 sink->handleExpansion(ces, 2); in handleCE32() 472 ces[i] = Collation::ceFromCE32(*ce32s++); in handleCE32() 474 sink->handleExpansion(ces, length); in handleCE32() 485 sink->handleExpansion(data->ces + Collation::indexFromCE32(ce32), length); in handleCE32()
|
D | collationbuilder.cpp | 301 ces[0] = getSpecialResetPosition(str, parserErrorReason, errorCode); in addReset() 304 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset() 312 cesLength = dataBuilder->getCEs(nfdString, ces, 0); in addReset() 431 strength = ceStrength(ces[cesLength - 1]); in addReset() 437 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset() 702 int64_t ce = ces[cesLength - 1]; in addRelation() 726 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation() 739 cesLength = dataBuilder->getCEs(nfdExtension, ces, cesLength); in addRelation() 753 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32, errorCode); in addRelation() 756 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32, errorCode); in addRelation() [all …]
|
D | collationdata.h | 53 ce32s(nullptr), ces(nullptr), contexts(nullptr), base(nullptr), in CollationData() 112 int64_t dataCE = ces[Collation::indexFromCE32(ce32)]; in getCEFromOffsetCE32() 179 const int64_t *ces; member
|
/third_party/icu/icu4c/source/i18n/ |
D | collationdatabuilder.h | 98 const int64_t ces[], int32_t cesLength, 107 virtual uint32_t encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode); 165 int32_t getCEs(const UnicodeString &s, int64_t ces[], int32_t cesLength); 167 int64_t ces[], int32_t cesLength); 195 uint32_t encodeExpansion(const int64_t ces[], int32_t length, UErrorCode &errorCode); 221 int32_t getCEs(const UnicodeString &s, int32_t start, int64_t ces[], int32_t cesLength);
|
D | collationdatabuilder.cpp | 144 int32_t fetchCEs(const UnicodeString &str, int32_t start, int64_t ces[], int32_t cesLength); 184 int64_t ces[], int32_t cesLength) { in fetchCEs() argument 187 builderData.ces = builder.ce64s.getBuffer(); in fetchCEs() 213 ces[cesLength] = ce; in fetchCEs() 425 int64_t dataCE = fromBase ? base->ces[i] : ce64s.elementAti(i); in getCE32FromOffsetCE32() 490 return fromBase ? base->ces[i] : ce64s.elementAti(i); in getSingleCE() 555 const int64_t ces[], int32_t cesLength, in add() argument 557 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add() 773 CollationDataBuilder::encodeCEs(const int64_t ces[], int32_t cesLength, in encodeCEs() argument 789 return encodeOneCE(ces[0], errorCode); in encodeCEs() [all …]
|
D | collationsets.cpp | 157 int64_t dataCE = baseData->ces[Collation::indexFromCE32(baseCE32)]; in compare() 188 const int64_t *ces = data->ces + Collation::indexFromCE32(ce32); in compare() local 191 const int64_t *baseCEs = baseData->ces + Collation::indexFromCE32(baseCE32); in compare() 199 if(ces[i] != baseCEs[i]) { in compare() 457 ces[0] = Collation::latinCE0FromCE32(ce32); in handleCE32() 458 ces[1] = Collation::latinCE1FromCE32(ce32); in handleCE32() 459 sink->handleExpansion(ces, 2); in handleCE32() 472 ces[i] = Collation::ceFromCE32(*ce32s++); in handleCE32() 474 sink->handleExpansion(ces, length); in handleCE32() 485 sink->handleExpansion(data->ces + Collation::indexFromCE32(ce32), length); in handleCE32()
|
D | collationbuilder.cpp | 301 ces[0] = getSpecialResetPosition(str, parserErrorReason, errorCode); in addReset() 304 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset() 312 cesLength = dataBuilder->getCEs(nfdString, ces, 0); in addReset() 431 strength = ceStrength(ces[cesLength - 1]); in addReset() 437 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, strength); in addReset() 702 int64_t ce = ces[cesLength - 1]; in addRelation() 726 ces[cesLength - 1] = tempCEFromIndexAndStrength(index, tempStrength); in addRelation() 739 cesLength = dataBuilder->getCEs(nfdExtension, ces, cesLength); in addRelation() 753 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32, errorCode); in addRelation() 756 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32, errorCode); in addRelation() [all …]
|
D | collationdata.h | 53 ce32s(NULL), ces(NULL), contexts(NULL), base(NULL), in CollationData() 112 int64_t dataCE = ces[Collation::indexFromCE32(ce32)]; in getCEFromOffsetCE32() 179 const int64_t *ces; member
|
/third_party/icu/tools/unicode/c/genuca/ |
D | collationbasedatabuilder.h | 67 virtual uint32_t encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode); 69 void addRootElements(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode);
|
D | collationbasedatabuilder.cpp | 266 CollationBaseDataBuilder::encodeCEs(const int64_t ces[], int32_t cesLength, UErrorCode &errorCode) { in encodeCEs() argument 267 addRootElements(ces, cesLength, errorCode); in encodeCEs() 268 return CollationDataBuilder::encodeCEs(ces, cesLength, errorCode); in encodeCEs() 272 CollationBaseDataBuilder::addRootElements(const int64_t ces[], int32_t cesLength, in addRootElements() argument 276 addRootElement(ces[i], errorCode); in addRootElements()
|