/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
H A D | Collation.java | 278 static boolean isAssignedCE32(int ce32) { in isAssignedCE32() argument 279 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 314 static long primaryFromLongPrimaryCE32(int ce32) { in primaryFromLongPrimaryCE32() argument 315 return (long)ce32 & 0xffffff00L; in primaryFromLongPrimaryCE32() 317 static long ceFromLongPrimaryCE32(int ce32) { in ceFromLongPrimaryCE32() argument 318 return ((long)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 324 static long ceFromLongSecondaryCE32(int ce32) { in ceFromLongSecondaryCE32() argument 325 return (long)ce32 & 0xffffff00L; in ceFromLongSecondaryCE32() 337 static boolean isSpecialCE32(int ce32) { in isSpecialCE32() argument 341 tagFromCE32(int ce32) tagFromCE32() argument 345 hasCE32Tag(int ce32, int tag) hasCE32Tag() argument 349 isLongPrimaryCE32(int ce32) isLongPrimaryCE32() argument 353 isSimpleOrLongCE32(int ce32) isSimpleOrLongCE32() argument 362 isSelfContainedCE32(int ce32) isSelfContainedCE32() argument 369 isPrefixCE32(int ce32) isPrefixCE32() argument 373 isContractionCE32(int ce32) isContractionCE32() argument 377 ce32HasContext(int ce32) ce32HasContext() argument 387 latinCE0FromCE32(int ce32) latinCE0FromCE32() argument 395 latinCE1FromCE32(int ce32) latinCE1FromCE32() argument 402 indexFromCE32(int ce32) indexFromCE32() argument 409 lengthFromCE32(int ce32) lengthFromCE32() argument 416 digitFromCE32(int ce32) digitFromCE32() argument 421 ceFromSimpleCE32(int ce32) ceFromSimpleCE32() argument 428 ceFromCE32(int ce32) ceFromCE32() argument [all...] |
H A D | CollationDataBuilder.java | 45 long modifyCE32(int ce32); in modifyCE32() argument 120 int ce32 = encodeCEs(ces, cesLength); in add() 121 addCE32(prefix, s, ce32); in add() 125 * Encodes the ces as either the returned ce32 by itself, 126 * or by storing an expansion, with the returned ce32 referring to that. 166 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() 167 if(ce32 == Collation.NO_CE32) { break; } in encodeCEs() 168 newCE32s[i] = ce32; in encodeCEs() 173 void addCE32(CharSequence prefix, CharSequence s, int ce32) { in addCE32() argument 198 trie.set(c, ce32); in addCE32() 376 int ce32; global() field in CollationDataBuilder.ConditionalCE32 409 getCE32FromOffsetCE32(boolean fromBase, int c, int ce32) getCE32FromOffsetCE32() argument 425 addCE32(int ce32) addCE32() argument 434 addConditionalCE32(String context, int ce32) addConditionalCE32() argument 450 getConditionalCE32ForCE32(int ce32) getConditionalCE32ForCE32() argument 457 isBuilderContextCE32(int ce32) isBuilderContextCE32() argument 558 copyFromBaseCE32(int c, int ce32, boolean withContext) copyFromBaseCE32() argument 647 copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, ConditionalCE32 cond) copyContractionsFromBaseCE32() argument 689 copyRangeCE32(int start, int end, int ce32) copyRangeCE32() argument 697 copyCE32(int ce32) copyCE32() argument 1331 getCE32FromBuilderData(int ce32) getCE32FromBuilderData() argument [all...] |
H A D | CollationIterator.java | 249 int ce32 = (int)cAndCE32; in nextCE() 250 int t = ce32 & 0xff; in nextCE() 251 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE() 253 // Forced-inline of ceFromSimpleCE32(ce32). in nextCE() 255 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 265 ce32 = d.getCE32(c); in nextCE() 266 t = ce32 & 0xff; in nextCE() 270 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 in nextCE() 409 makeCodePointAndCE32Pair(int c, int ce32) makeCodePointAndCE32Pair() argument 454 getCE32FromBuilderData(int ce32) getCE32FromBuilderData() argument 458 appendCEsFromCE32(CollationData d, int c, int ce32, boolean forward) appendCEsFromCE32() argument 662 nextCEFromCE32(CollationData d, int c, int ce32) nextCEFromCE32() argument 668 getCE32FromPrefix(CollationData d, int ce32) getCE32FromPrefix() argument 706 nextCE32FromContraction( CollationData d, int contractionCE32, CharSequence trieChars, int trieOffset, int ce32, int c) nextCE32FromContraction() argument 772 nextCE32FromDiscontiguousContraction( CollationData d, CharsTrie suffixes, int ce32, int lookAhead, int c) nextCE32FromDiscontiguousContraction() argument 969 appendNumericCEs(int ce32, boolean forward) appendNumericCEs() argument [all...] |
H A D | ContractionsAndExpansions.java | 73 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { in enumCnERange() argument 79 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 96 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32); in enumCnERange() 99 cne.handleCE32(start, end, ce32); in enumCnERange() 103 int ce32 = d.getCE32(c); in forCodePoint() 104 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 106 ce32 = d.getCE32(c); in forCodePoint() 109 handleCE32(c, c, ce32); in forCodePoint() 112 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 114 if ((ce32 in handleCE32() 227 handlePrefixes(int start, int end, int ce32) handlePrefixes() argument 247 handleContractions(int start, int end, int ce32) handleContractions() argument [all...] |
H A D | CollationData.java | 78 * Requires that ce32 is special. 80 int getIndirectCE32(int ce32) { in getIndirectCE32() argument 81 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32() 82 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32() 85 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32() 87 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32() 89 // Fetch the normal ce32 for U+0000. in getIndirectCE32() 90 ce32 = ce32s[0]; in getIndirectCE32() 92 return ce32; in getIndirectCE32() 99 getFinalCE32(int ce32) getFinalCE32() argument 109 getCEFromOffsetCE32(int c, int ce32) getCEFromOffsetCE32() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
H A D | Collation.java | 280 static boolean isAssignedCE32(int ce32) { in isAssignedCE32() argument 281 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 316 static long primaryFromLongPrimaryCE32(int ce32) { in primaryFromLongPrimaryCE32() argument 317 return (long)ce32 & 0xffffff00L; in primaryFromLongPrimaryCE32() 319 static long ceFromLongPrimaryCE32(int ce32) { in ceFromLongPrimaryCE32() argument 320 return ((long)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 326 static long ceFromLongSecondaryCE32(int ce32) { in ceFromLongSecondaryCE32() argument 327 return (long)ce32 & 0xffffff00L; in ceFromLongSecondaryCE32() 339 static boolean isSpecialCE32(int ce32) { in isSpecialCE32() argument 343 tagFromCE32(int ce32) tagFromCE32() argument 347 hasCE32Tag(int ce32, int tag) hasCE32Tag() argument 351 isLongPrimaryCE32(int ce32) isLongPrimaryCE32() argument 355 isSimpleOrLongCE32(int ce32) isSimpleOrLongCE32() argument 364 isSelfContainedCE32(int ce32) isSelfContainedCE32() argument 371 isPrefixCE32(int ce32) isPrefixCE32() argument 375 isContractionCE32(int ce32) isContractionCE32() argument 379 ce32HasContext(int ce32) ce32HasContext() argument 389 latinCE0FromCE32(int ce32) latinCE0FromCE32() argument 397 latinCE1FromCE32(int ce32) latinCE1FromCE32() argument 404 indexFromCE32(int ce32) indexFromCE32() argument 411 lengthFromCE32(int ce32) lengthFromCE32() argument 418 digitFromCE32(int ce32) digitFromCE32() argument 423 ceFromSimpleCE32(int ce32) ceFromSimpleCE32() argument 430 ceFromCE32(int ce32) ceFromCE32() argument [all...] |
H A D | CollationDataBuilder.java | 46 long modifyCE32(int ce32); in modifyCE32() argument 121 int ce32 = encodeCEs(ces, cesLength); in add() 122 addCE32(prefix, s, ce32); in add() 126 * Encodes the ces as either the returned ce32 by itself, 127 * or by storing an expansion, with the returned ce32 referring to that. 167 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() 168 if(ce32 == Collation.NO_CE32) { break; } in encodeCEs() 169 newCE32s[i] = ce32; in encodeCEs() 174 void addCE32(CharSequence prefix, CharSequence s, int ce32) { in addCE32() argument 199 trie.set(c, ce32); in addCE32() 377 int ce32; global() field in CollationDataBuilder.ConditionalCE32 398 getCE32FromOffsetCE32(boolean fromBase, int c, int ce32) getCE32FromOffsetCE32() argument 414 addCE32(int ce32) addCE32() argument 423 addConditionalCE32(String context, int ce32) addConditionalCE32() argument 439 getConditionalCE32ForCE32(int ce32) getConditionalCE32ForCE32() argument 446 isBuilderContextCE32(int ce32) isBuilderContextCE32() argument 547 copyFromBaseCE32(int c, int ce32, boolean withContext) copyFromBaseCE32() argument 636 copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, ConditionalCE32 cond) copyContractionsFromBaseCE32() argument 678 copyRangeCE32(int start, int end, int ce32) copyRangeCE32() argument 686 copyCE32(int ce32) copyCE32() argument 1301 getCE32FromBuilderData(int ce32) getCE32FromBuilderData() argument [all...] |
H A D | CollationIterator.java | 251 int ce32 = (int)cAndCE32; in nextCE() 252 int t = ce32 & 0xff; in nextCE() 253 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE() 255 // Forced-inline of ceFromSimpleCE32(ce32). in nextCE() 257 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 267 ce32 = d.getCE32(c); in nextCE() 268 t = ce32 & 0xff; in nextCE() 272 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 in nextCE() 411 makeCodePointAndCE32Pair(int c, int ce32) makeCodePointAndCE32Pair() argument 456 getCE32FromBuilderData(int ce32) getCE32FromBuilderData() argument 460 appendCEsFromCE32(CollationData d, int c, int ce32, boolean forward) appendCEsFromCE32() argument 664 nextCEFromCE32(CollationData d, int c, int ce32) nextCEFromCE32() argument 670 getCE32FromPrefix(CollationData d, int ce32) getCE32FromPrefix() argument 708 nextCE32FromContraction( CollationData d, int contractionCE32, CharSequence trieChars, int trieOffset, int ce32, int c) nextCE32FromContraction() argument 774 nextCE32FromDiscontiguousContraction( CollationData d, CharsTrie suffixes, int ce32, int lookAhead, int c) nextCE32FromDiscontiguousContraction() argument 971 appendNumericCEs(int ce32, boolean forward) appendNumericCEs() argument [all...] |
H A D | ContractionsAndExpansions.java | 80 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { in enumCnERange() argument 86 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 103 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32); in enumCnERange() 106 cne.handleCE32(start, end, ce32); in enumCnERange() 110 int ce32 = d.getCE32(c); in forCodePoint() 111 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 113 ce32 = d.getCE32(c); in forCodePoint() 116 handleCE32(c, c, ce32); in forCodePoint() 119 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 121 if ((ce32 in handleCE32() 234 handlePrefixes(int start, int end, int ce32) handlePrefixes() argument 254 handleContractions(int start, int end, int ce32) handleContractions() argument [all...] |
H A D | CollationData.java | 80 * Requires that ce32 is special. 82 int getIndirectCE32(int ce32) { in getIndirectCE32() argument 83 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32() 84 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32() 87 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32() 89 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32() 91 // Fetch the normal ce32 for U+0000. in getIndirectCE32() 92 ce32 = ce32s[0]; in getIndirectCE32() 94 return ce32; in getIndirectCE32() 101 getFinalCE32(int ce32) getFinalCE32() argument 111 getCEFromOffsetCE32(int c, int ce32) getCEFromOffsetCE32() argument [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | collation.h | 278 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument 279 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 316 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument 317 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32() 319 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument 320 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 326 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument 327 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32() 339 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument 343 tagFromCE32(uint32_t ce32) tagFromCE32() argument 347 hasCE32Tag(uint32_t ce32, int32_t tag) hasCE32Tag() argument 351 isLongPrimaryCE32(uint32_t ce32) isLongPrimaryCE32() argument 355 isSimpleOrLongCE32(uint32_t ce32) isSimpleOrLongCE32() argument 364 isSelfContainedCE32(uint32_t ce32) isSelfContainedCE32() argument 371 isPrefixCE32(uint32_t ce32) isPrefixCE32() argument 375 isContractionCE32(uint32_t ce32) isContractionCE32() argument 379 ce32HasContext(uint32_t ce32) ce32HasContext() argument 389 latinCE0FromCE32(uint32_t ce32) latinCE0FromCE32() argument 397 latinCE1FromCE32(uint32_t ce32) latinCE1FromCE32() argument 404 indexFromCE32(uint32_t ce32) indexFromCE32() argument 411 lengthFromCE32(uint32_t ce32) lengthFromCE32() argument 418 digitFromCE32(uint32_t ce32) digitFromCE32() argument 423 ceFromSimpleCE32(uint32_t ce32) ceFromSimpleCE32() argument 430 ceFromCE32(uint32_t ce32) ceFromCE32() argument [all...] |
H A D | collationsets.cpp | 35 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { in enumTailoredRange() argument 36 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange() 40 return ts->handleCE32(start, end, ce32); in enumTailoredRange() 57 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { in handleCE32() argument 58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 59 if(Collation::isSpecialCE32(ce32)) { in handleCE32() 60 ce32 = data->getIndirectCE32(ce32); in handleCE32() 61 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32() 67 // Do not just continue if ce32 in handleCE32() 83 compare(UChar32 c, uint32_t ce32, uint32_t baseCE32) compare() argument 317 addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32) addPrefix() argument 360 enumCnERange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) enumCnERange() argument 417 uint32_t ce32 = d->getCE32(c); forCodePoint() local 428 handleCE32(UChar32 start, UChar32 end, uint32_t ce32) handleCE32() argument 541 handlePrefixes( UChar32 start, UChar32 end, uint32_t ce32) handlePrefixes() argument 560 handleContractions( UChar32 start, UChar32 end, uint32_t ce32) handleContractions() argument [all...] |
H A D | collationdatabuilder.cpp | 56 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 60 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 77 uint32_t ce32; member 157 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) override; 199 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local 201 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs() 203 ce32 = builder.base->getCE32(c); in fetchCEs() 207 appendCEsFromCE32(d, c, ce32, /*forward=*/ true, errorCode); in fetchCEs() 269 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument 271 U_ASSERT(Collation::hasCE32Tag(ce32, Collatio in getCE32FromBuilderData() 442 uint32_t ce32 = utrie2_get32(trie, c); getLongPrimaryIfSingleCE() local 455 uint32_t ce32 = utrie2_get32(trie, c); getSingleCE() local 526 addCE32(uint32_t ce32, UErrorCode &errorCode) addCE32() argument 536 addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode) addConditionalCE32() argument 557 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); add() local 562 addCE32(const UnicodeString &prefix, const UnicodeString &s, uint32_t ce32, UErrorCode &errorCode) addCE32() argument 761 uint32_t ce32 = encodeOneCEAsCE32(ce); encodeOneCE() local 816 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); encodeCEs() local 891 copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode) copyFromBaseCE32() argument 981 copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, ConditionalCE32 *cond, UErrorCode &errorCode) copyContractionsFromBaseCE32() argument 1024 copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) copyRangeCE32() argument 1033 copyCE32(uint32_t ce32) copyCE32() argument 1170 uint32_t ce32 = utrie2_get32(trie, c); optimize() local 1186 uint32_t ce32 = utrie2_get32(trie, c); suppressContractions() local 1213 uint32_t ce32 = utrie2_get32(trie, jamo); getJamoCE32s() local 1280 uint32_t ce32 = utrie2_get32(trie, c); setDigitTags() local 1379 uint32_t ce32 = hangulCE32; buildMappings() local 1391 uint32_t ce32 = base->getCE32(c); buildMappings() local 1458 uint32_t ce32 = utrie2_get32(trie, c); buildContexts() local 1507 uint32_t ce32; buildContext() local [all...] |
H A D | collationiterator.cpp | 233 CollationIterator::getCE32FromBuilderData(uint32_t /*ce32*/, UErrorCode &errorCode) { in getCE32FromBuilderData() 239 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument 242 appendCEsFromCE32(d, c, ce32, true, errorCode); in nextCEFromCE32() 251 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument 253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32() 254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32() 260 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32() 263 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32() 267 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32() 268 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32() 448 getCE32FromPrefix(const CollationData *d, uint32_t ce32, UErrorCode &errorCode) getCE32FromPrefix() argument 490 nextCE32FromContraction(const CollationData *d, uint32_t contractionCE32, const UChar *p, uint32_t ce32, UChar32 c, UErrorCode &errorCode) nextCE32FromContraction() argument 557 nextCE32FromDiscontiguousContraction( const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, int32_t lookAhead, UChar32 c, UErrorCode &errorCode) nextCE32FromDiscontiguousContraction() argument 687 appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) appendNumericCEs() argument 856 uint32_t ce32 = data->getCE32(c); previousCE() local [all...] |
H A D | collationdata.cpp | 31 CollationData::getIndirectCE32(uint32_t ce32) const { in getIndirectCE32() 32 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 33 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32() 36 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32() 38 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32() 40 // Fetch the normal ce32 for U+0000. in getIndirectCE32() 41 ce32 = ce32s[0]; in getIndirectCE32() 43 return ce32; in getIndirectCE32() 47 CollationData::getFinalCE32(uint32_t ce32) cons 59 uint32_t ce32 = getCE32(c); getSingleCE() local [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | collation.h | 278 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument 279 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 316 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument 317 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32() 319 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument 320 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 326 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument 327 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32() 339 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument 343 tagFromCE32(uint32_t ce32) tagFromCE32() argument 347 hasCE32Tag(uint32_t ce32, int32_t tag) hasCE32Tag() argument 351 isLongPrimaryCE32(uint32_t ce32) isLongPrimaryCE32() argument 355 isSimpleOrLongCE32(uint32_t ce32) isSimpleOrLongCE32() argument 364 isSelfContainedCE32(uint32_t ce32) isSelfContainedCE32() argument 371 isPrefixCE32(uint32_t ce32) isPrefixCE32() argument 375 isContractionCE32(uint32_t ce32) isContractionCE32() argument 379 ce32HasContext(uint32_t ce32) ce32HasContext() argument 389 latinCE0FromCE32(uint32_t ce32) latinCE0FromCE32() argument 397 latinCE1FromCE32(uint32_t ce32) latinCE1FromCE32() argument 404 indexFromCE32(uint32_t ce32) indexFromCE32() argument 411 lengthFromCE32(uint32_t ce32) lengthFromCE32() argument 418 digitFromCE32(uint32_t ce32) digitFromCE32() argument 423 ceFromSimpleCE32(uint32_t ce32) ceFromSimpleCE32() argument 430 ceFromCE32(uint32_t ce32) ceFromCE32() argument [all...] |
H A D | collationsets.cpp | 35 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { in enumTailoredRange() argument 36 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange() 40 return ts->handleCE32(start, end, ce32); in enumTailoredRange() 57 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { in handleCE32() argument 58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 59 if(Collation::isSpecialCE32(ce32)) { in handleCE32() 60 ce32 = data->getIndirectCE32(ce32); in handleCE32() 61 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32() 67 // Do not just continue if ce32 in handleCE32() 83 compare(UChar32 c, uint32_t ce32, uint32_t baseCE32) compare() argument 317 addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32) addPrefix() argument 360 enumCnERange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) enumCnERange() argument 417 uint32_t ce32 = d->getCE32(c); forCodePoint() local 428 handleCE32(UChar32 start, UChar32 end, uint32_t ce32) handleCE32() argument 541 handlePrefixes( UChar32 start, UChar32 end, uint32_t ce32) handlePrefixes() argument 560 handleContractions( UChar32 start, UChar32 end, uint32_t ce32) handleContractions() argument [all...] |
H A D | collationdatabuilder.cpp | 56 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 60 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 77 uint32_t ce32; member 157 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) override; 199 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local 201 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs() 203 ce32 = builder.base->getCE32(c); in fetchCEs() 207 appendCEsFromCE32(d, c, ce32, /*forward=*/ true, errorCode); in fetchCEs() 269 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument 271 U_ASSERT(Collation::hasCE32Tag(ce32, Collatio in getCE32FromBuilderData() 442 uint32_t ce32 = utrie2_get32(trie, c); getLongPrimaryIfSingleCE() local 455 uint32_t ce32 = utrie2_get32(trie, c); getSingleCE() local 526 addCE32(uint32_t ce32, UErrorCode &errorCode) addCE32() argument 536 addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode) addConditionalCE32() argument 557 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); add() local 562 addCE32(const UnicodeString &prefix, const UnicodeString &s, uint32_t ce32, UErrorCode &errorCode) addCE32() argument 761 uint32_t ce32 = encodeOneCEAsCE32(ce); encodeOneCE() local 816 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); encodeCEs() local 891 copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode) copyFromBaseCE32() argument 981 copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, ConditionalCE32 *cond, UErrorCode &errorCode) copyContractionsFromBaseCE32() argument 1024 copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) copyRangeCE32() argument 1033 copyCE32(uint32_t ce32) copyCE32() argument 1170 uint32_t ce32 = utrie2_get32(trie, c); optimize() local 1186 uint32_t ce32 = utrie2_get32(trie, c); suppressContractions() local 1213 uint32_t ce32 = utrie2_get32(trie, jamo); getJamoCE32s() local 1280 uint32_t ce32 = utrie2_get32(trie, c); setDigitTags() local 1379 uint32_t ce32 = hangulCE32; buildMappings() local 1391 uint32_t ce32 = base->getCE32(c); buildMappings() local 1458 uint32_t ce32 = utrie2_get32(trie, c); buildContexts() local 1507 uint32_t ce32; buildContext() local [all...] |
H A D | collationiterator.cpp | 233 CollationIterator::getCE32FromBuilderData(uint32_t /*ce32*/, UErrorCode &errorCode) { in getCE32FromBuilderData() 239 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument 242 appendCEsFromCE32(d, c, ce32, true, errorCode); in nextCEFromCE32() 251 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument 253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32() 254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32() 260 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32() 263 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32() 267 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32() 268 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32() 448 getCE32FromPrefix(const CollationData *d, uint32_t ce32, UErrorCode &errorCode) getCE32FromPrefix() argument 490 nextCE32FromContraction(const CollationData *d, uint32_t contractionCE32, const char16_t *p, uint32_t ce32, UChar32 c, UErrorCode &errorCode) nextCE32FromContraction() argument 557 nextCE32FromDiscontiguousContraction( const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, int32_t lookAhead, UChar32 c, UErrorCode &errorCode) nextCE32FromDiscontiguousContraction() argument 687 appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) appendNumericCEs() argument 856 uint32_t ce32 = data->getCE32(c); previousCE() local [all...] |
H A D | collationdata.cpp | 31 CollationData::getIndirectCE32(uint32_t ce32) const { in getIndirectCE32() 32 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 33 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32() 36 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32() 38 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32() 40 // Fetch the normal ce32 for U+0000. in getIndirectCE32() 41 ce32 = ce32s[0]; in getIndirectCE32() 43 return ce32; in getIndirectCE32() 47 CollationData::getFinalCE32(uint32_t ce32) cons 59 uint32_t ce32 = getCE32(c); getSingleCE() local [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | collation.h | 277 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument 278 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 313 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument 314 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32() 316 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument 317 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 323 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument 324 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32() 336 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument 340 tagFromCE32(uint32_t ce32) tagFromCE32() argument 344 hasCE32Tag(uint32_t ce32, int32_t tag) hasCE32Tag() argument 348 isLongPrimaryCE32(uint32_t ce32) isLongPrimaryCE32() argument 352 isSimpleOrLongCE32(uint32_t ce32) isSimpleOrLongCE32() argument 361 isSelfContainedCE32(uint32_t ce32) isSelfContainedCE32() argument 368 isPrefixCE32(uint32_t ce32) isPrefixCE32() argument 372 isContractionCE32(uint32_t ce32) isContractionCE32() argument 376 ce32HasContext(uint32_t ce32) ce32HasContext() argument 386 latinCE0FromCE32(uint32_t ce32) latinCE0FromCE32() argument 394 latinCE1FromCE32(uint32_t ce32) latinCE1FromCE32() argument 401 indexFromCE32(uint32_t ce32) indexFromCE32() argument 408 lengthFromCE32(uint32_t ce32) lengthFromCE32() argument 415 digitFromCE32(uint32_t ce32) digitFromCE32() argument 420 ceFromSimpleCE32(uint32_t ce32) ceFromSimpleCE32() argument 427 ceFromCE32(uint32_t ce32) ceFromCE32() argument [all...] |
H A D | collationsets.cpp | 35 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { in enumTailoredRange() argument 36 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange() 40 return ts->handleCE32(start, end, ce32); in enumTailoredRange() 57 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { in handleCE32() argument 58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 59 if(Collation::isSpecialCE32(ce32)) { in handleCE32() 60 ce32 = data->getIndirectCE32(ce32); in handleCE32() 61 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32() 67 // Do not just continue if ce32 in handleCE32() 83 compare(UChar32 c, uint32_t ce32, uint32_t baseCE32) compare() argument 317 addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32) addPrefix() argument 360 enumCnERange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) enumCnERange() argument 417 uint32_t ce32 = d->getCE32(c); forCodePoint() local 428 handleCE32(UChar32 start, UChar32 end, uint32_t ce32) handleCE32() argument 541 handlePrefixes( UChar32 start, UChar32 end, uint32_t ce32) handlePrefixes() argument 560 handleContractions( UChar32 start, UChar32 end, uint32_t ce32) handleContractions() argument [all...] |
H A D | collationdatabuilder.cpp | 56 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 60 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 77 uint32_t ce32; member 145 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode); 187 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local 189 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs() 191 ce32 = builder.base->getCE32(c); in fetchCEs() 195 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); in fetchCEs() 257 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument 259 U_ASSERT(Collation::hasCE32Tag(ce32, Collatio in getCE32FromBuilderData() 422 uint32_t ce32 = utrie2_get32(trie, c); getLongPrimaryIfSingleCE() local 435 uint32_t ce32 = utrie2_get32(trie, c); getSingleCE() local 506 addCE32(uint32_t ce32, UErrorCode &errorCode) addCE32() argument 516 addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode) addConditionalCE32() argument 538 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); add() local 543 addCE32(const UnicodeString &prefix, const UnicodeString &s, uint32_t ce32, UErrorCode &errorCode) addCE32() argument 650 uint32_t ce32 = encodeOneCEAsCE32(ce); encodeOneCE() local 702 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); encodeCEs() local 777 copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode) copyFromBaseCE32() argument 867 copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, ConditionalCE32 *cond, UErrorCode &errorCode) copyContractionsFromBaseCE32() argument 910 copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) copyRangeCE32() argument 919 copyCE32(uint32_t ce32) copyCE32() argument 1056 uint32_t ce32 = utrie2_get32(trie, c); optimize() local 1072 uint32_t ce32 = utrie2_get32(trie, c); suppressContractions() local 1099 uint32_t ce32 = utrie2_get32(trie, jamo); getJamoCE32s() local 1166 uint32_t ce32 = utrie2_get32(trie, c); setDigitTags() local 1265 uint32_t ce32 = hangulCE32; buildMappings() local 1277 uint32_t ce32 = base->getCE32(c); buildMappings() local 1329 uint32_t ce32 = utrie2_get32(trie, iter.getCodepoint()); clearContexts() local 1345 uint32_t ce32 = utrie2_get32(trie, c); buildContexts() local 1378 uint32_t ce32; buildContext() local [all...] |
H A D | collationiterator.cpp | 233 CollationIterator::getCE32FromBuilderData(uint32_t /*ce32*/, UErrorCode &errorCode) { in getCE32FromBuilderData() 239 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument 242 appendCEsFromCE32(d, c, ce32, TRUE, errorCode); in nextCEFromCE32() 251 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument 253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32() 254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32() 260 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32() 263 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32() 267 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32() 268 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32() 448 getCE32FromPrefix(const CollationData *d, uint32_t ce32, UErrorCode &errorCode) getCE32FromPrefix() argument 490 nextCE32FromContraction(const CollationData *d, uint32_t contractionCE32, const UChar *p, uint32_t ce32, UChar32 c, UErrorCode &errorCode) nextCE32FromContraction() argument 557 nextCE32FromDiscontiguousContraction( const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, int32_t lookAhead, UChar32 c, UErrorCode &errorCode) nextCE32FromDiscontiguousContraction() argument 687 appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) appendNumericCEs() argument 856 uint32_t ce32 = data->getCE32(c); previousCE() local [all...] |
H A D | collationdata.cpp | 31 CollationData::getIndirectCE32(uint32_t ce32) const { in getIndirectCE32() 32 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 33 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32() 36 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32() 38 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32() 40 // Fetch the normal ce32 for U+0000. in getIndirectCE32() 41 ce32 = ce32s[0]; in getIndirectCE32() 43 return ce32; in getIndirectCE32() 47 CollationData::getFinalCE32(uint32_t ce32) cons 59 uint32_t ce32 = getCE32(c); getSingleCE() local [all...] |