Home
last modified time | relevance | path

Searched refs:Collation (Results 1 – 25 of 55) sorted by relevance

123

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataBuilder.java74 trie = new Trie2Writable(Collation.FALLBACK_CE32, Collation.FFFD_CE32); in initForTailoring()
82 trie.set(c, Collation.FALLBACK_CE32); in initForTailoring()
89 int hangulCE32 = Collation.makeCE32FromTagAndIndex(Collation.HANGUL_TAG, 0); in initForTailoring()
114 return Collation.isAssignedCE32(trie.get(c)); in isAssigned()
129 if(cesLength < 0 || cesLength > Collation.MAX_EXPANSION_LENGTH) { in encodeCEs()
146 if((ce0 & 0xffffffffff00ffL) == Collation.COMMON_SECONDARY_CE && in encodeCEs()
147 (ce1 & 0xffffffff00ffffffL) == Collation.COMMON_TERTIARY_CE && in encodeCEs()
154 Collation.SPECIAL_CE32_LOW_BYTE | in encodeCEs()
155 Collation.LATIN_EXPANSION_TAG; in encodeCEs()
159 int[] newCE32s = new int[Collation.MAX_EXPANSION_LENGTH]; // TODO: instance field? in encodeCEs()
[all …]
DCollationCompare.java36 if (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary()
52 … } while (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary()
60 … if (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary()
76 … } while (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary()
86 return (leftPrimary < rightPrimary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary()
88 if (leftPrimary == Collation.NO_CE_PRIMARY) { in compareUpToQuaternary()
112 … return (leftSecondary < rightSecondary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary()
114 if (leftSecondary == Collation.NO_CE_WEIGHT16) { in compareUpToQuaternary()
127 while ((p = left.getCE(leftLimit) >>> 32) > Collation.MERGE_SEPARATOR_PRIMARY in compareUpToQuaternary()
132 while ((p = right.getCE(rightLimit) >>> 32) > Collation.MERGE_SEPARATOR_PRIMARY in compareUpToQuaternary()
[all …]
DCollationKeys.java263 private static final int SEC_COMMON_LOW = Collation.COMMON_BYTE;
281 private static final int TER_ONLY_COMMON_LOW = Collation.COMMON_BYTE;
287 private static final int TER_LOWER_FIRST_COMMON_LOW = Collation.COMMON_BYTE;
293 private static final int TER_UPPER_FIRST_COMMON_LOW = Collation.COMMON_BYTE + 0x80;
336 levels |= Collation.CASE_LEVEL_FLAG; in writeSortKeyUpToQuaternary()
355 SortKeyLevel cases = getSortKeyLevel(levels, Collation.CASE_LEVEL_FLAG); in writeSortKeyUpToQuaternary()
356 SortKeyLevel secondaries = getSortKeyLevel(levels, Collation.SECONDARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary()
357 SortKeyLevel tertiaries = getSortKeyLevel(levels, Collation.TERTIARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary()
358 SortKeyLevel quaternaries = getSortKeyLevel(levels, Collation.QUATERNARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary()
374 if (p < variableTop && p > Collation.MERGE_SEPARATOR_PRIMARY) { in writeSortKeyUpToQuaternary()
[all …]
DTailoredSet.java62 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange()
72 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32()
73 if (Collation.isSpecialCE32(ce32)) { in handleCE32()
75 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32()
84 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32()
96 if (Collation.isPrefixCE32(ce32)) { in compare()
97 int dataIndex = Collation.indexFromCE32(ce32); in compare()
99 if (Collation.isPrefixCE32(baseCE32)) { in compare()
100 int baseIndex = Collation.indexFromCE32(baseCE32); in compare()
106 } else if (Collation.isPrefixCE32(baseCE32)) { in compare()
[all …]
DCollationIterator.java243 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE()
252 if(t == Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE()
254 return ceBuffer.set(cesIndex++, Collation.NO_CE); in nextCE()
259 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE()
267 if(t == Collation.LONG_PRIMARY_CE32_LOW_BYTE) { in nextCE()
270 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE()
280 while(nextCE() != Collation.NO_CE) { in fetchCEs()
306 if(c < 0) { return Collation.NO_CE; } in previousCE()
314 if(ce32 == Collation.FALLBACK_CE32) { in previousCE()
320 if(Collation.isSimpleOrLongCE32(ce32)) { in previousCE()
[all …]
DContractionsAndExpansions.java33 private long[] ces = new long[Collation.MAX_EXPANSION_LENGTH];
77 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange()
102 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint()
112 if ((ce32 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32()
115 sink.handleCE(Collation.ceFromSimpleCE32(ce32)); in handleCE32()
119 switch (Collation.tagFromCE32(ce32)) { in handleCE32()
120 case Collation.FALLBACK_TAG: in handleCE32()
122 case Collation.RESERVED_TAG_3: in handleCE32()
123 case Collation.BUILDER_DATA_TAG: in handleCE32()
124 case Collation.LEAD_SURROGATE_TAG: in handleCE32()
[all …]
DCollationData.java51 Collation.hasCE32Tag(getCE32(c), Collation.DIGIT_TAG); in isDigit()
79 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32()
80 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32()
81 if(tag == Collation.DIGIT_TAG) { in getIndirectCE32()
83 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32()
84 } else if(tag == Collation.LEAD_SURROGATE_TAG) { in getIndirectCE32()
85 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32()
86 } else if(tag == Collation.U0000_TAG) { in getIndirectCE32()
98 if(Collation.isSpecialCE32(ce32)) { in getFinalCE32()
108 long dataCE = ces[Collation.indexFromCE32(ce32)]; in getCEFromOffsetCE32()
[all …]
DCollationFastLatinBuilder.java201 if(ce32 == Collation.FALLBACK_CE32) { in getCEs()
214 charCEs[i][0] = ce0 = Collation.NO_CE; in getCEs()
222 charCEs[0][0] = (Collation.NO_CE_PRIMARY << 32) | CONTRACTION_FLAG; in getCEs()
233 if(Collation.isSimpleOrLongCE32(ce32)) { in getCEsFromCE32()
234 ce0 = Collation.ceFromCE32(ce32); in getCEsFromCE32()
236 switch(Collation.tagFromCE32(ce32)) { in getCEsFromCE32()
237 case Collation.LATIN_EXPANSION_TAG: in getCEsFromCE32()
238 ce0 = Collation.latinCE0FromCE32(ce32); in getCEsFromCE32()
239 ce1 = Collation.latinCE1FromCE32(ce32); in getCEsFromCE32()
241 case Collation.EXPANSION32_TAG: { in getCEsFromCE32()
[all …]
DCollationRootElements.java139 return Collation.makeCE(getFirstPrimary()); in getFirstPrimaryCE()
160 secTer = Collation.COMMON_SEC_AND_TER_CE; in lastCEWithPrimaryBefore()
177 secTer = Collation.COMMON_SEC_AND_TER_CE; in lastCEWithPrimaryBefore()
209 return (p << 32) | Collation.COMMON_SEC_AND_TER_CE; in firstCEWithPrimaryAtLeast()
239 return Collation.decTwoBytePrimaryByOneStep(p, isCompressible, step); in getPrimaryBefore()
241 return Collation.decThreeBytePrimaryByOneStep(p, isCompressible, step); in getPrimaryBefore()
256 previousSec = Collation.BEFORE_WEIGHT16; in getSecondaryBefore()
271 assert((t & ~Collation.ONLY_TERTIARY_MASK) == 0); in getTertiaryBefore()
282 previousTer = Collation.BEFORE_WEIGHT16; in getTertiaryBefore()
287 previousTer = Collation.BEFORE_WEIGHT16; in getTertiaryBefore()
[all …]
DCollationBuilder.java110 assert((ces[0] & Collation.CASE_AND_QUATERNARY_MASK) == 0); in addReset()
115 if(cesLength > Collation.MAX_EXPANSION_LENGTH) { in addReset()
150 if(p == Collation.FIRST_TRAILING_PRIMARY) { in addReset()
183 assert(weight16 > Collation.BEFORE_WEIGHT16); in addReset()
195 assert(weight16 >= Collation.COMMON_WEIGHT16 || i == previousIndex); in addReset()
200 previousWeight16 = Collation.COMMON_WEIGHT16; in addReset()
242 t = Collation.COMMON_WEIGHT16; // Stronger node with implied common weight. in getWeight16Before()
249 return Collation.BEFORE_WEIGHT16; in getWeight16Before()
255 s = Collation.COMMON_WEIGHT16; // Stronger node with implied common weight. in getWeight16Before()
262 return Collation.BEFORE_WEIGHT16; in getWeight16Before()
[all …]
DCollationFastLatin.java382 return (leftPrimary < rightPrimary) ? Collation.LESS : Collation.GREATER; in compareUTF16()
469 return (leftSecondary < rightSecondary) ? Collation.LESS : Collation.GREATER; in compareUTF16()
527 return (leftCase < rightCase) ? Collation.LESS : Collation.GREATER; in compareUTF16()
529 return (leftCase < rightCase) ? Collation.GREATER : Collation.LESS; in compareUTF16()
537 if(CollationSettings.getStrength(options) <= Collator.SECONDARY) { return Collation.EQUAL; } in compareUTF16()
600 return (leftTertiary < rightTertiary) ? Collation.LESS : Collation.GREATER; in compareUTF16()
606 if(CollationSettings.getStrength(options) <= Collator.TERTIARY) { return Collation.EQUAL; } in compareUTF16()
655 return (leftQuaternary < rightQuaternary) ? Collation.LESS : Collation.GREATER; in compareUTF16()
661 return Collation.EQUAL; in compareUTF16()
/external/icu/icu4c/source/i18n/
Dcollationsets.cpp34 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange()
56 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32()
57 if(Collation::isSpecialCE32(ce32)) { in handleCE32()
59 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32()
68 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32()
82 if(Collation::isPrefixCE32(ce32)) { in compare()
83 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in compare()
85 if(Collation::isPrefixCE32(baseCE32)) { in compare()
86 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
92 } else if(Collation::isPrefixCE32(baseCE32)) { in compare()
[all …]
Dcollationdatabuilder.cpp54 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()
160 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator()
187 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
198 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
256 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
258 UChar32 jamo = Collation::indexFromCE32(ce32); in getCE32FromBuilderData()
262 if(cond->builtCE32 == Collation::NO_CE32) { in getCE32FromBuilderData()
311 trie = utrie2_open(Collation::FALLBACK_CE32, Collation::FFFD_CE32, &errorCode); in initForTailoring()
319 utrie2_set32(trie, c, Collation::FALLBACK_CE32, &errorCode); in initForTailoring()
[all …]
Dcollationdata.cpp30 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32()
31 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32()
32 if(tag == Collation::DIGIT_TAG) { in getIndirectCE32()
34 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32()
35 } else if(tag == Collation::LEAD_SURROGATE_TAG) { in getIndirectCE32()
36 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32()
37 } else if(tag == Collation::U0000_TAG) { in getIndirectCE32()
46 if(Collation::isSpecialCE32(ce32)) { in getFinalCE32()
58 if(ce32 == Collation::FALLBACK_CE32) { in getSingleCE()
64 while(Collation::isSpecialCE32(ce32)) { in getSingleCE()
[all …]
Dcollationiterator.cpp197 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) { in fetchCEs()
207 return (c < 0) ? Collation::FALLBACK_CE32 : data->getCE32(c); in handleNextCE32()
244 return Collation::NO_CE_PRIMARY; in nextCEFromCE32()
251 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
252 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
253 case Collation::FALLBACK_TAG: in appendCEsFromCE32()
254 case Collation::RESERVED_TAG_3: in appendCEsFromCE32()
257 case Collation::LONG_PRIMARY_TAG: in appendCEsFromCE32()
258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32()
260 case Collation::LONG_SECONDARY_TAG: in appendCEsFromCE32()
[all …]
Dcollationkeys.cpp204 CollationKeys::LevelCallback::needToWrite(Collation::Level /*level*/) { return TRUE; } in needToWrite()
228 Collation::Level minLevel, LevelCallback &callback, in writeSortKeyUpToQuaternary()
236 levels |= Collation::CASE_LEVEL_FLAG; in writeSortKeyUpToQuaternary()
271 if(p < variableTop && p > Collation::MERGE_SEPARATOR_PRIMARY) { in writeSortKeyUpToQuaternary()
285 if((levels & Collation::QUATERNARY_LEVEL_FLAG) != 0) { in writeSortKeyUpToQuaternary()
300 } while(p < variableTop && p > Collation::MERGE_SEPARATOR_PRIMARY); in writeSortKeyUpToQuaternary()
306 if(p > Collation::NO_CE_PRIMARY && (levels & Collation::PRIMARY_LEVEL_FLAG) != 0) { in writeSortKeyUpToQuaternary()
318 if(p1 > Collation::MERGE_SEPARATOR_BYTE) { in writeSortKeyUpToQuaternary()
319 sink.Append(Collation::PRIMARY_COMPRESSION_LOW_BYTE); in writeSortKeyUpToQuaternary()
322 sink.Append(Collation::PRIMARY_COMPRESSION_HIGH_BYTE); in writeSortKeyUpToQuaternary()
[all …]
Dcollationfastlatinbuilder.cpp214 if(ce32 == Collation::FALLBACK_CE32) { in getCEs()
227 charCEs[i][0] = ce0 = Collation::NO_CE; in getCEs()
235 charCEs[0][0] = ((int64_t)Collation::NO_CE_PRIMARY << 32) | CONTRACTION_FLAG; in getCEs()
249 if(Collation::isSimpleOrLongCE32(ce32)) { in getCEsFromCE32()
250 ce0 = Collation::ceFromCE32(ce32); in getCEsFromCE32()
252 switch(Collation::tagFromCE32(ce32)) { in getCEsFromCE32()
253 case Collation::LATIN_EXPANSION_TAG: in getCEsFromCE32()
254 ce0 = Collation::latinCE0FromCE32(ce32); in getCEsFromCE32()
255 ce1 = Collation::latinCE1FromCE32(ce32); in getCEsFromCE32()
257 case Collation::EXPANSION32_TAG: { in getCEsFromCE32()
[all …]
Dcollationcompare.cpp50 if(leftPrimary < variableTop && leftPrimary > Collation::MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary()
67 leftPrimary > Collation::MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary()
75 if(rightPrimary < variableTop && rightPrimary > Collation::MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary()
92 rightPrimary > Collation::MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary()
104 if(leftPrimary == Collation::NO_CE_PRIMARY) { break; } in compareUpToQuaternary()
129 if(leftSecondary == Collation::NO_CE_WEIGHT16) { break; } in compareUpToQuaternary()
141 Collation::MERGE_SEPARATOR_PRIMARY || in compareUpToQuaternary()
147 Collation::MERGE_SEPARATOR_PRIMARY || in compareUpToQuaternary()
176 if(p == Collation::NO_CE_PRIMARY) { break; } in compareUpToQuaternary()
246 if((leftLower32 >> 16) == Collation::NO_CE_WEIGHT16) { break; } in compareUpToQuaternary()
[all …]
Dcollation.cpp24 const uint8_t Collation::LEVEL_SEPARATOR_BYTE;
25 const uint8_t Collation::MERGE_SEPARATOR_BYTE;
26 const uint32_t Collation::ONLY_TERTIARY_MASK;
27 const uint32_t Collation::CASE_AND_TERTIARY_MASK;
31 Collation::incTwoBytePrimaryByOffset(uint32_t basePrimary, UBool isCompressible, int32_t offset) { in incTwoBytePrimaryByOffset()
50 Collation::incThreeBytePrimaryByOffset(uint32_t basePrimary, UBool isCompressible, int32_t offset) { in incThreeBytePrimaryByOffset()
72 Collation::decTwoBytePrimaryByOneStep(uint32_t basePrimary, UBool isCompressible, int32_t step) { in decTwoBytePrimaryByOneStep()
94 Collation::decThreeBytePrimaryByOneStep(uint32_t basePrimary, UBool isCompressible, int32_t step) { in decThreeBytePrimaryByOneStep()
122 Collation::getThreeBytePrimaryForOffsetData(UChar32 c, int64_t dataCE) { in getThreeBytePrimaryForOffsetData()
127 return Collation::incThreeBytePrimaryByOffset(p, isCompressible, offset); in getThreeBytePrimaryForOffsetData()
[all …]
Dcollationrootelements.cpp37 secTer = Collation::COMMON_SEC_AND_TER_CE; in lastCEWithPrimaryBefore()
54 secTer = Collation::COMMON_SEC_AND_TER_CE; in lastCEWithPrimaryBefore()
83 return ((int64_t)p << 32) | Collation::COMMON_SEC_AND_TER_CE; in firstCEWithPrimaryAtLeast()
110 return Collation::decTwoBytePrimaryByOneStep(p, isCompressible, step); in getPrimaryBefore()
112 return Collation::decThreeBytePrimaryByOneStep(p, isCompressible, step); in getPrimaryBefore()
127 previousSec = Collation::BEFORE_WEIGHT16; in getSecondaryBefore()
142 U_ASSERT((t & ~Collation::ONLY_TERTIARY_MASK) == 0); in getTertiaryBefore()
152 previousTer = Collation::BEFORE_WEIGHT16; in getTertiaryBefore()
157 previousTer = Collation::BEFORE_WEIGHT16; in getTertiaryBefore()
178 return Collation::incTwoBytePrimaryByOffset(p, isCompressible, step); in getPrimaryAfter()
[all …]
Dcollationbuilder.cpp300 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset()
309 if(cesLength > Collation::MAX_EXPANSION_LENGTH) { in addReset()
348 if(p == Collation::FIRST_TRAILING_PRIMARY) { in addReset()
385 U_ASSERT(weight16 > Collation::BEFORE_WEIGHT16); in addReset()
397 U_ASSERT(weight16 >= Collation::COMMON_WEIGHT16 || i == previousIndex); in addReset()
402 previousWeight16 = Collation::COMMON_WEIGHT16; in addReset()
445 t = Collation::COMMON_WEIGHT16; // Stronger node with implied common weight. in getWeight16Before()
452 return Collation::BEFORE_WEIGHT16; in getWeight16Before()
458 s = Collation::COMMON_WEIGHT16; // Stronger node with implied common weight. in getWeight16Before()
465 return Collation::BEFORE_WEIGHT16; in getWeight16Before()
[all …]
Dcollationkeys.h98 virtual UBool needToWrite(Collation::Level level);
112 Collation::Level minLevel, LevelCallback &callback,
120 static const uint32_t SEC_COMMON_LOW = Collation::COMMON_BYTE;
137 static const uint32_t TER_ONLY_COMMON_LOW = Collation::COMMON_BYTE;
143 static const uint32_t TER_LOWER_FIRST_COMMON_LOW = Collation::COMMON_BYTE;
149 static const uint32_t TER_UPPER_FIRST_COMMON_LOW = Collation::COMMON_BYTE + 0x80;
Dcollationiterator.h119 return Collation::NO_CE; in nextCE()
124 if(t < Collation::SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE()
133 if(t == Collation::SPECIAL_CE32_LOW_BYTE) { in nextCE()
135 return ceBuffer.set(cesIndex++, Collation::NO_CE); in nextCE()
140 if(t < Collation::SPECIAL_CE32_LOW_BYTE) { in nextCE()
148 if(t == Collation::LONG_PRIMARY_CE32_LOW_BYTE) { in nextCE()
151 ((int64_t)(ce32 - t) << 32) | Collation::COMMON_SEC_AND_TER_CE); in nextCE()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationTest.java22 import com.ibm.icu.impl.coll.Collation;
284 long expected = Collation.makeCE(Collation.MERGE_SEPARATOR_PRIMARY); in TestMinMax()
290 expected = Collation.makeCE(Collation.MAX_PRIMARY); in TestMinMax()
336 if (ce == Collation.NO_CE || ce2 != Collation.NO_CE) { in TestImplicits()
342 if ((ce & 0xffffffffL) != Collation.COMMON_SEC_AND_TER_CE) { in TestImplicits()
458 return (pos < length) ? cp[pos++] : Collation.SENTINEL_CP; in next()
462 return (pos > 0) ? cp[--pos] : Collation.SENTINEL_CP; in previous()
675 long c = (ctq & Collation.CASE_MASK) >>> 14; in isValidCE()
676 long t = ctq & Collation.ONLY_TERTIARY_MASK; in isValidCE()
679 long q = ctq & Collation.QUATERNARY_MASK; in isValidCE()
[all …]
/external/icu/icu4c/source/test/intltest/
Dcollationtest.cpp102 Collation::Level parseRelationAndString(UnicodeString &s, IcuTestErrorCode &errorCode);
121 UCollationResult expectedOrder, Collation::Level expectedLevel,
177 int64_t expected = Collation::makeCE(Collation::MERGE_SEPARATOR_PRIMARY); in TestMinMax()
183 expected = Collation::makeCE(Collation::MAX_PRIMARY); in TestMinMax()
242 if(ce == Collation::NO_CE || ce2 != Collation::NO_CE) { in TestImplicits()
246 if((ce & 0xffffffff) != Collation::COMMON_SEC_AND_TER_CE) { in TestImplicits()
283 if(ce1 == Collation::NO_CE) { break; } in TestNulTerminated()
602 uint32_t c = (ctq & Collation::CASE_MASK) >> 14; in isValidCE()
603 uint32_t t = ctq & Collation::ONLY_TERTIARY_MASK; in isValidCE()
606 uint32_t q = ctq & Collation::QUATERNARY_MASK; in isValidCE()
[all …]

123