/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
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 340 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32() [all …]
|
D | CollationDataBuilder.java | 46 long modifyCE32(int ce32); in modifyCE32() argument 121 int ce32 = encodeCEs(ces, cesLength); in add() local 122 addCE32(prefix, s, ce32); in add() 167 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local 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() 203 cond.ce32 = ce32; in addCE32() 228 int index = addConditionalCE32(context, ce32); in addCE32() [all …]
|
D | CollationIterator.java | 251 int ce32 = (int)cAndCE32; in nextCE() local 252 int t = ce32 & 0xff; 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 & 0xff00) << 16) | (t << 8)); in nextCE() 280 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 282 return nextCEFromCE32(d, c, ce32); in nextCE() 322 int ce32 = data.getCE32(c); in previousCE() local 324 if(ce32 == Collation.FALLBACK_CE32) { in previousCE() [all …]
|
D | ContractionsAndExpansions.java | 77 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { in enumCnERange() argument 83 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 100 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32); in enumCnERange() local 103 cne.handleCE32(start, end, ce32); in enumCnERange() 107 int ce32 = d.getCE32(c); in forCodePoint() local 108 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 110 ce32 = d.getCE32(c); in forCodePoint() 113 handleCE32(c, c, ce32); in forCodePoint() 116 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 118 if ((ce32 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32() [all …]
|
D | CollationData.java | 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() 92 ce32 = ce32s[0]; in getIndirectCE32() 94 return ce32; in getIndirectCE32() 101 int getFinalCE32(int ce32) { in getFinalCE32() argument 102 if(Collation.isSpecialCE32(ce32)) { in getFinalCE32() 103 ce32 = getIndirectCE32(ce32); in getFinalCE32() [all …]
|
D | TailoredSet.java | 66 private void enumTailoredRange(int start, int end, int ce32, TailoredSet ts) { in enumTailoredRange() argument 67 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 70 ts.handleCE32(start, end, ce32); in enumTailoredRange() 76 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 77 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 78 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 79 ce32 = data.getIndirectCE32(ce32); in handleCE32() 80 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 89 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 91 if (ce32 != baseCE32) { in handleCE32() [all …]
|
D | CollationFastLatinBuilder.java | 203 int ce32 = data.getCE32(c); in getCEs() local 204 if(ce32 == Collation.FALLBACK_CE32) { in getCEs() 206 ce32 = d.getCE32(c); in getCEs() 210 if(getCEsFromCE32(d, c, ce32)) { in getCEs() 233 private boolean getCEsFromCE32(CollationData data, int c, int ce32) { in getCEsFromCE32() argument 234 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 236 if(Collation.isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 237 ce0 = Collation.ceFromCE32(ce32); in getCEsFromCE32() 239 switch(Collation.tagFromCE32(ce32)) { in getCEsFromCE32() 241 ce0 = Collation.latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | CollationBuilder.java | 516 int ce32 = Collation.UNASSIGNED_CE32; in addRelation() local 522 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 524 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() 861 long[] newCEs, int newCEsLength, int ce32) { 863 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 864 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 866 return ce32; 870 long[] newCEs, int newCEsLength, int ce32) { 880 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); 894 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
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 338 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32() [all …]
|
D | CollationDataBuilder.java | 45 long modifyCE32(int ce32); in modifyCE32() argument 120 int ce32 = encodeCEs(ces, cesLength); in add() local 121 addCE32(prefix, s, ce32); in add() 166 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local 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() 202 cond.ce32 = ce32; in addCE32() 227 int index = addConditionalCE32(context, ce32); in addCE32() [all …]
|
D | CollationIterator.java | 249 int ce32 = (int)cAndCE32; in nextCE() local 250 int t = ce32 & 0xff; 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 & 0xff00) << 16) | (t << 8)); in nextCE() 278 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 280 return nextCEFromCE32(d, c, ce32); in nextCE() 320 int ce32 = data.getCE32(c); in previousCE() local 322 if(ce32 == Collation.FALLBACK_CE32) { in previousCE() [all …]
|
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() local 99 cne.handleCE32(start, end, ce32); in enumCnERange() 103 int ce32 = d.getCE32(c); in forCodePoint() local 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 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32() [all …]
|
D | CollationData.java | 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() 90 ce32 = ce32s[0]; in getIndirectCE32() 92 return ce32; in getIndirectCE32() 99 int getFinalCE32(int ce32) { in getFinalCE32() argument 100 if(Collation.isSpecialCE32(ce32)) { in getFinalCE32() 101 ce32 = getIndirectCE32(ce32); in getFinalCE32() [all …]
|
D | TailoredSet.java | 64 private void enumTailoredRange(int start, int end, int ce32, TailoredSet ts) { in enumTailoredRange() argument 65 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 68 ts.handleCE32(start, end, ce32); in enumTailoredRange() 74 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 75 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 76 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 77 ce32 = data.getIndirectCE32(ce32); in handleCE32() 78 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 87 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 89 if (ce32 != baseCE32) { in handleCE32() [all …]
|
D | CollationFastLatinBuilder.java | 202 int ce32 = data.getCE32(c); in getCEs() local 203 if(ce32 == Collation.FALLBACK_CE32) { in getCEs() 205 ce32 = d.getCE32(c); in getCEs() 209 if(getCEsFromCE32(d, c, ce32)) { in getCEs() 232 private boolean getCEsFromCE32(CollationData data, int c, int ce32) { in getCEsFromCE32() argument 233 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 235 if(Collation.isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 236 ce0 = Collation.ceFromCE32(ce32); in getCEsFromCE32() 238 switch(Collation.tagFromCE32(ce32)) { in getCEsFromCE32() 240 ce0 = Collation.latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | CollationBuilder.java | 512 int ce32 = Collation.UNASSIGNED_CE32; in addRelation() local 518 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 520 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() 857 long[] newCEs, int newCEsLength, int ce32) { 859 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 860 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 862 return ce32; 866 long[] newCEs, int newCEsLength, int ce32) { 876 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); 890 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); [all …]
|
/external/icu/icu4c/source/i18n/ |
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 337 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32() [all …]
|
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 258 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData() [all …]
|
D | collationiterator.cpp | 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() 273 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32() [all …]
|
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() 70 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32() 72 if(ce32 != baseCE32) { in handleCE32() [all …]
|
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() 41 ce32 = ce32s[0]; in getIndirectCE32() 43 return ce32; in getIndirectCE32() 47 CollationData::getFinalCE32(uint32_t ce32) const { in getFinalCE32() 48 if(Collation::isSpecialCE32(ce32)) { in getFinalCE32() 49 ce32 = getIndirectCE32(ce32); in getFinalCE32() [all …]
|
D | collationiterator.h | 124 uint32_t ce32 = handleNextCE32(c, errorCode); in nextCE() local 125 uint32_t t = ce32 & 0xff; in nextCE() 130 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 140 ce32 = d->getCE32(c); in nextCE() 141 t = ce32 & 0xff; in nextCE() 145 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 153 ((int64_t)(ce32 - t) << 32) | Collation::COMMON_SEC_AND_TER_CE); in nextCE() 155 return nextCEFromCE32(d, c, ce32, errorCode); in nextCE() 256 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode); 258 void appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, [all …]
|
D | collationdatabuilder.h | 58 virtual int64_t modifyCE32(uint32_t ce32) const = 0; 109 uint32_t ce32, UErrorCode &errorCode); 173 uint32_t getCE32FromOffsetCE32(UBool fromBase, UChar32 c, uint32_t ce32) const; 176 int32_t addCE32(uint32_t ce32, UErrorCode &errorCode); 177 int32_t addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode); 182 inline ConditionalCE32 *getConditionalCE32ForCE32(uint32_t ce32) const { in getConditionalCE32ForCE32() argument 183 return getConditionalCE32(Collation::indexFromCE32(ce32)); in getConditionalCE32ForCE32() 189 static inline UBool isBuilderContextCE32(uint32_t ce32) { in isBuilderContextCE32() argument 190 return Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG); in isBuilderContextCE32() 198 uint32_t copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode); [all …]
|
D | collationfastlatinbuilder.cpp | 215 uint32_t ce32 = data.getCE32(c); in getCEs() local 216 if(ce32 == Collation::FALLBACK_CE32) { in getCEs() 218 ce32 = d->getCE32(c); in getCEs() 222 if(getCEsFromCE32(*d, c, ce32, errorCode)) { in getCEs() 246 CollationFastLatinBuilder::getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32, in getCEsFromCE32() argument 249 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 251 if(Collation::isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 252 ce0 = Collation::ceFromCE32(ce32); in getCEsFromCE32() 254 switch(Collation::tagFromCE32(ce32)) { in getCEsFromCE32() 256 ce0 = Collation::latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | collationsets.h | 57 UBool handleCE32(UChar32 start, UChar32 end, uint32_t ce32); 60 void compare(UChar32 c, uint32_t ce32, uint32_t baseCE32); 65 void addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32); 110 void handleCE32(UChar32 start, UChar32 end, uint32_t ce32); 112 void handlePrefixes(UChar32 start, UChar32 end, uint32_t ce32); 113 void handleContractions(UChar32 start, UChar32 end, uint32_t ce32);
|