/external/icu/android_icu4j/src/main/java/android/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 | 44 long modifyCE32(int ce32); in modifyCE32() argument 119 int ce32 = encodeCEs(ces, cesLength); in add() local 120 addCE32(prefix, s, ce32); in add() 165 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local 166 if(ce32 == Collation.NO_CE32) { break; } in encodeCEs() 167 newCE32s[i] = ce32; in encodeCEs() 172 void addCE32(CharSequence prefix, CharSequence s, int ce32) { in addCE32() argument 197 trie.set(c, ce32); in addCE32() 201 cond.ce32 = ce32; in addCE32() 226 int index = addConditionalCE32(context, ce32); in addCE32() [all …]
|
D | CollationIterator.java | 243 int ce32 = (int)cAndCE32; in nextCE() local 244 int t = ce32 & 0xff; in nextCE() 249 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 259 ce32 = d.getCE32(c); in nextCE() 260 t = ce32 & 0xff; in nextCE() 264 … ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 272 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 274 return nextCEFromCE32(d, c, ce32); in nextCE() 314 int ce32 = data.getCE32(c); in previousCE() local 316 if(ce32 == Collation.FALLBACK_CE32) { in previousCE() [all …]
|
D | ContractionsAndExpansions.java | 75 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { in enumCnERange() argument 81 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 98 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32); in enumCnERange() local 101 cne.handleCE32(start, end, ce32); in enumCnERange() 105 int ce32 = d.getCE32(c); in forCodePoint() local 106 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 108 ce32 = d.getCE32(c); in forCodePoint() 111 handleCE32(c, c, ce32); in forCodePoint() 114 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 116 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 | 63 private void enumTailoredRange(int start, int end, int ce32, TailoredSet ts) { in enumTailoredRange() argument 64 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 67 ts.handleCE32(start, end, ce32); in enumTailoredRange() 73 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 74 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 75 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 76 ce32 = data.getIndirectCE32(ce32); in handleCE32() 77 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 86 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 88 if (ce32 != baseCE32) { in handleCE32() [all …]
|
D | CollationFastLatinBuilder.java | 201 int ce32 = data.getCE32(c); in getCEs() local 202 if(ce32 == Collation.FALLBACK_CE32) { in getCEs() 204 ce32 = d.getCE32(c); in getCEs() 208 if(getCEsFromCE32(d, c, ce32)) { in getCEs() 231 private boolean getCEsFromCE32(CollationData data, int c, int ce32) { in getCEsFromCE32() argument 232 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 234 if(Collation.isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 235 ce0 = Collation.ceFromCE32(ce32); in getCEsFromCE32() 237 switch(Collation.tagFromCE32(ce32)) { in getCEsFromCE32() 239 ce0 = Collation.latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | CollationBuilder.java | 513 int ce32 = Collation.UNASSIGNED_CE32; in addRelation() local 519 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 521 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() 858 long[] newCEs, int newCEsLength, int ce32) { 860 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 861 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 863 return ce32; 867 long[] newCEs, int newCEsLength, int ce32) { 877 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); 891 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | Collation.java | 276 static boolean isAssignedCE32(int ce32) { in isAssignedCE32() argument 277 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 312 static long primaryFromLongPrimaryCE32(int ce32) { in primaryFromLongPrimaryCE32() argument 313 return (long)ce32 & 0xffffff00L; in primaryFromLongPrimaryCE32() 315 static long ceFromLongPrimaryCE32(int ce32) { in ceFromLongPrimaryCE32() argument 316 return ((long)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 322 static long ceFromLongSecondaryCE32(int ce32) { in ceFromLongSecondaryCE32() argument 323 return (long)ce32 & 0xffffff00L; in ceFromLongSecondaryCE32() 335 static boolean isSpecialCE32(int ce32) { in isSpecialCE32() argument 336 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32() [all …]
|
D | CollationDataBuilder.java | 43 long modifyCE32(int ce32); in modifyCE32() argument 118 int ce32 = encodeCEs(ces, cesLength); in add() local 119 addCE32(prefix, s, ce32); in add() 164 int ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local 165 if(ce32 == Collation.NO_CE32) { break; } in encodeCEs() 166 newCE32s[i] = ce32; in encodeCEs() 171 void addCE32(CharSequence prefix, CharSequence s, int ce32) { in addCE32() argument 196 trie.set(c, ce32); in addCE32() 200 cond.ce32 = ce32; in addCE32() 225 int index = addConditionalCE32(context, ce32); in addCE32() [all …]
|
D | CollationIterator.java | 241 int ce32 = (int)cAndCE32; in nextCE() local 242 int t = ce32 & 0xff; in nextCE() 247 ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 257 ce32 = d.getCE32(c); in nextCE() 258 t = ce32 & 0xff; in nextCE() 262 … ((long)(ce32 & 0xffff0000) << 32) | ((long)(ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 270 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 272 return nextCEFromCE32(d, c, ce32); in nextCE() 312 int ce32 = data.getCE32(c); in previousCE() local 314 if(ce32 == Collation.FALLBACK_CE32) { in previousCE() [all …]
|
D | ContractionsAndExpansions.java | 71 private void enumCnERange(int start, int end, int ce32, ContractionsAndExpansions cne) { in enumCnERange() argument 77 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 94 cne.handleCE32(cne.ranges.getRangeStart(i), cne.ranges.getRangeEnd(i), ce32); in enumCnERange() local 97 cne.handleCE32(start, end, ce32); in enumCnERange() 101 int ce32 = d.getCE32(c); in forCodePoint() local 102 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 104 ce32 = d.getCE32(c); in forCodePoint() 107 handleCE32(c, c, ce32); in forCodePoint() 110 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 112 if ((ce32 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32() [all …]
|
D | CollationData.java | 78 int getIndirectCE32(int ce32) { in getIndirectCE32() argument 79 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32() 80 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32() 83 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32() 85 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32() 88 ce32 = ce32s[0]; in getIndirectCE32() 90 return ce32; in getIndirectCE32() 97 int getFinalCE32(int ce32) { in getFinalCE32() argument 98 if(Collation.isSpecialCE32(ce32)) { in getFinalCE32() 99 ce32 = getIndirectCE32(ce32); in getFinalCE32() [all …]
|
D | TailoredSet.java | 61 private void enumTailoredRange(int start, int end, int ce32, TailoredSet ts) { in enumTailoredRange() argument 62 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 65 ts.handleCE32(start, end, ce32); in enumTailoredRange() 71 private void handleCE32(int start, int end, int ce32) { in handleCE32() argument 72 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 73 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 74 ce32 = data.getIndirectCE32(ce32); in handleCE32() 75 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 84 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 86 if (ce32 != baseCE32) { in handleCE32() [all …]
|
D | CollationFastLatinBuilder.java | 200 int ce32 = data.getCE32(c); in getCEs() local 201 if(ce32 == Collation.FALLBACK_CE32) { in getCEs() 203 ce32 = d.getCE32(c); in getCEs() 207 if(getCEsFromCE32(d, c, ce32)) { in getCEs() 230 private boolean getCEsFromCE32(CollationData data, int c, int ce32) { in getCEsFromCE32() argument 231 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 233 if(Collation.isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 234 ce0 = Collation.ceFromCE32(ce32); in getCEsFromCE32() 236 switch(Collation.tagFromCE32(ce32)) { in getCEsFromCE32() 238 ce0 = Collation.latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | CollationBuilder.java | 509 int ce32 = Collation.UNASSIGNED_CE32; in addRelation() local 515 ce32 = addIfDifferent(prefix, str, ces, cesLength, ce32); in addRelation() 517 addWithClosure(nfdPrefix, nfdString, ces, cesLength, ce32); in addRelation() 854 long[] newCEs, int newCEsLength, int ce32) { 856 ce32 = addIfDifferent(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 857 ce32 = addOnlyClosure(nfdPrefix, nfdString, newCEs, newCEsLength, ce32); 859 return ce32; 863 long[] newCEs, int newCEsLength, int ce32) { 873 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); 887 ce32 = addIfDifferent(prefix, str, newCEs, newCEsLength, ce32); [all …]
|
/external/icu/icu4c/source/i18n/ |
D | collation.h | 275 static UBool isAssignedCE32(uint32_t ce32) { in isAssignedCE32() argument 276 return ce32 != FALLBACK_CE32 && ce32 != UNASSIGNED_CE32; in isAssignedCE32() 311 static inline uint32_t primaryFromLongPrimaryCE32(uint32_t ce32) { in primaryFromLongPrimaryCE32() argument 312 return ce32 & 0xffffff00; in primaryFromLongPrimaryCE32() 314 static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) { in ceFromLongPrimaryCE32() argument 315 return ((int64_t)(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE; in ceFromLongPrimaryCE32() 321 static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) { in ceFromLongSecondaryCE32() argument 322 return ce32 & 0xffffff00; in ceFromLongSecondaryCE32() 334 static inline UBool isSpecialCE32(uint32_t ce32) { in isSpecialCE32() argument 335 return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE; in isSpecialCE32() [all …]
|
D | collationdatabuilder.cpp | 54 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 58 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 75 uint32_t ce32; member 143 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode); 185 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local 187 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs() 189 ce32 = builder.base->getCE32(c); in fetchCEs() 193 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); in fetchCEs() 255 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument 256 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData() [all …]
|
D | collationiterator.cpp | 237 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument 240 appendCEsFromCE32(d, c, ce32, TRUE, errorCode); in nextCEFromCE32() 249 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument 251 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32() 252 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32() 258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32() 261 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32() 265 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32() 266 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32() 271 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32() [all …]
|
D | collationsets.cpp | 33 enumTailoredRange(const void *context, UChar32 start, UChar32 end, uint32_t ce32) { in enumTailoredRange() argument 34 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange() 38 return ts->handleCE32(start, end, ce32); in enumTailoredRange() 55 TailoredSet::handleCE32(UChar32 start, UChar32 end, uint32_t ce32) { in handleCE32() argument 56 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 57 if(Collation::isSpecialCE32(ce32)) { in handleCE32() 58 ce32 = data->getIndirectCE32(ce32); in handleCE32() 59 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32() 68 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32() 70 if(ce32 != baseCE32) { in handleCE32() [all …]
|
D | collationdata.cpp | 29 CollationData::getIndirectCE32(uint32_t ce32) const { in getIndirectCE32() 30 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 31 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32() 34 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32() 36 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32() 39 ce32 = ce32s[0]; in getIndirectCE32() 41 return ce32; in getIndirectCE32() 45 CollationData::getFinalCE32(uint32_t ce32) const { in getFinalCE32() 46 if(Collation::isSpecialCE32(ce32)) { in getFinalCE32() 47 ce32 = getIndirectCE32(ce32); in getFinalCE32() [all …]
|
D | collationiterator.h | 122 uint32_t ce32 = handleNextCE32(c, errorCode); in nextCE() local 123 uint32_t t = ce32 & 0xff; in nextCE() 128 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 138 ce32 = d->getCE32(c); in nextCE() 139 t = ce32 & 0xff; in nextCE() 143 ((int64_t)(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8)); in nextCE() 151 ((int64_t)(ce32 - t) << 32) | Collation::COMMON_SEC_AND_TER_CE); in nextCE() 153 return nextCEFromCE32(d, c, ce32, errorCode); in nextCE() 254 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode); 256 void appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, [all …]
|
D | collationdatabuilder.h | 56 virtual int64_t modifyCE32(uint32_t ce32) const = 0; 107 uint32_t ce32, UErrorCode &errorCode); 171 uint32_t getCE32FromOffsetCE32(UBool fromBase, UChar32 c, uint32_t ce32) const; 174 int32_t addCE32(uint32_t ce32, UErrorCode &errorCode); 175 int32_t addConditionalCE32(const UnicodeString &context, uint32_t ce32, UErrorCode &errorCode); 180 inline ConditionalCE32 *getConditionalCE32ForCE32(uint32_t ce32) const { in getConditionalCE32ForCE32() argument 181 return getConditionalCE32(Collation::indexFromCE32(ce32)); in getConditionalCE32ForCE32() 187 static inline UBool isBuilderContextCE32(uint32_t ce32) { in isBuilderContextCE32() argument 188 return Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG); in isBuilderContextCE32() 196 uint32_t copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, UErrorCode &errorCode); [all …]
|
D | collationfastlatinbuilder.cpp | 213 uint32_t ce32 = data.getCE32(c); in getCEs() local 214 if(ce32 == Collation::FALLBACK_CE32) { in getCEs() 216 ce32 = d->getCE32(c); in getCEs() 220 if(getCEsFromCE32(*d, c, ce32, errorCode)) { in getCEs() 244 CollationFastLatinBuilder::getCEsFromCE32(const CollationData &data, UChar32 c, uint32_t ce32, in getCEsFromCE32() argument 247 ce32 = data.getFinalCE32(ce32); in getCEsFromCE32() 249 if(Collation::isSimpleOrLongCE32(ce32)) { in getCEsFromCE32() 250 ce0 = Collation::ceFromCE32(ce32); in getCEsFromCE32() 252 switch(Collation::tagFromCE32(ce32)) { in getCEsFromCE32() 254 ce0 = Collation::latinCE0FromCE32(ce32); in getCEsFromCE32() [all …]
|
D | collationsets.h | 55 UBool handleCE32(UChar32 start, UChar32 end, uint32_t ce32); 58 void compare(UChar32 c, uint32_t ce32, uint32_t baseCE32); 63 void addPrefix(const CollationData *d, const UnicodeString &pfx, UChar32 c, uint32_t ce32); 108 void handleCE32(UChar32 start, UChar32 end, uint32_t ce32); 110 void handlePrefixes(UChar32 start, UChar32 end, uint32_t ce32); 111 void handleContractions(UChar32 start, UChar32 end, uint32_t ce32);
|