Lines Matching refs:Collation
36 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange()
58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32()
59 if(Collation::isSpecialCE32(ce32)) { in handleCE32()
61 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32()
70 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32()
84 if(Collation::isPrefixCE32(ce32)) { in compare()
85 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in compare()
87 if(Collation::isPrefixCE32(baseCE32)) { in compare()
88 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
94 } else if(Collation::isPrefixCE32(baseCE32)) { in compare()
95 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
100 if(Collation::isContractionCE32(ce32)) { in compare()
101 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in compare()
102 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in compare()
103 ce32 = Collation::NO_CE32; in compare()
107 if(Collation::isContractionCE32(baseCE32)) { in compare()
108 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
109 if((baseCE32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in compare()
110 baseCE32 = Collation::NO_CE32; in compare()
118 } else if(Collation::isContractionCE32(baseCE32)) { in compare()
119 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
125 if(Collation::isSpecialCE32(ce32)) { in compare()
126 tag = Collation::tagFromCE32(ce32); in compare()
127 U_ASSERT(tag != Collation::PREFIX_TAG); in compare()
128 U_ASSERT(tag != Collation::CONTRACTION_TAG); in compare()
133 U_ASSERT(tag != Collation::OFFSET_TAG); in compare()
138 if(Collation::isSpecialCE32(baseCE32)) { in compare()
139 baseTag = Collation::tagFromCE32(baseCE32); in compare()
140 U_ASSERT(baseTag != Collation::PREFIX_TAG); in compare()
141 U_ASSERT(baseTag != Collation::CONTRACTION_TAG); in compare()
147 if(baseTag == Collation::OFFSET_TAG) { in compare()
153 if(!Collation::isLongPrimaryCE32(ce32)) { in compare()
157 int64_t dataCE = baseData->ces[Collation::indexFromCE32(baseCE32)]; in compare()
158 uint32_t p = Collation::getThreeBytePrimaryForOffsetData(c, dataCE); in compare()
159 if(Collation::primaryFromLongPrimaryCE32(ce32) != p) { in compare()
170 if(tag == Collation::EXPANSION32_TAG) { in compare()
171 const uint32_t *ce32s = data->ce32s + Collation::indexFromCE32(ce32); in compare()
172 int32_t length = Collation::lengthFromCE32(ce32); in compare()
174 const uint32_t *baseCE32s = baseData->ce32s + Collation::indexFromCE32(baseCE32); in compare()
175 int32_t baseLength = Collation::lengthFromCE32(baseCE32); in compare()
187 } else if(tag == Collation::EXPANSION_TAG) { in compare()
188 const int64_t *ces = data->ces + Collation::indexFromCE32(ce32); in compare()
189 int32_t length = Collation::lengthFromCE32(ce32); in compare()
191 const int64_t *baseCEs = baseData->ces + Collation::indexFromCE32(baseCE32); in compare()
192 int32_t baseLength = Collation::lengthFromCE32(baseCE32); in compare()
204 } else if(tag == Collation::HANGUL_TAG) { in compare()
320 if(Collation::isContractionCE32(ce32)) { in addPrefix()
321 const UChar *p = d->contexts + Collation::indexFromCE32(ce32); in addPrefix()
367 if(ce32 == Collation::FALLBACK_CE32) { in enumCnERange()
418 if(ce32 == Collation::FALLBACK_CE32) { in forCodePoint()
430 if((ce32 & 0xff) < Collation::SPECIAL_CE32_LOW_BYTE) { in handleCE32()
433 sink->handleCE(Collation::ceFromSimpleCE32(ce32)); in handleCE32()
437 switch(Collation::tagFromCE32(ce32)) { in handleCE32()
438 case Collation::FALLBACK_TAG: in handleCE32()
440 case Collation::RESERVED_TAG_3: in handleCE32()
441 case Collation::BUILDER_DATA_TAG: in handleCE32()
442 case Collation::LEAD_SURROGATE_TAG: in handleCE32()
445 case Collation::LONG_PRIMARY_TAG: in handleCE32()
447 sink->handleCE(Collation::ceFromLongPrimaryCE32(ce32)); in handleCE32()
450 case Collation::LONG_SECONDARY_TAG: in handleCE32()
452 sink->handleCE(Collation::ceFromLongSecondaryCE32(ce32)); in handleCE32()
455 case Collation::LATIN_EXPANSION_TAG: in handleCE32()
457 ces[0] = Collation::latinCE0FromCE32(ce32); in handleCE32()
458 ces[1] = Collation::latinCE1FromCE32(ce32); in handleCE32()
467 case Collation::EXPANSION32_TAG: in handleCE32()
469 const uint32_t *ce32s = data->ce32s + Collation::indexFromCE32(ce32); in handleCE32()
470 int32_t length = Collation::lengthFromCE32(ce32); in handleCE32()
472 ces[i] = Collation::ceFromCE32(*ce32s++); in handleCE32()
482 case Collation::EXPANSION_TAG: in handleCE32()
484 int32_t length = Collation::lengthFromCE32(ce32); in handleCE32()
485 sink->handleExpansion(data->ces + Collation::indexFromCE32(ce32), length); in handleCE32()
493 case Collation::PREFIX_TAG: in handleCE32()
496 case Collation::CONTRACTION_TAG: in handleCE32()
499 case Collation::DIGIT_TAG: in handleCE32()
501 ce32 = data->ce32s[Collation::indexFromCE32(ce32)]; in handleCE32()
503 case Collation::U0000_TAG: in handleCE32()
508 case Collation::HANGUL_TAG: in handleCE32()
520 U_ASSERT(length >= 2 && iter.getCE(length - 1) == Collation::NO_CE); in handleCE32()
530 case Collation::OFFSET_TAG: in handleCE32()
533 case Collation::IMPLICIT_TAG: in handleCE32()
543 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in handlePrefixes()
562 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in handleContractions()
563 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in handleContractions()
570 U_ASSERT(!Collation::isContractionCE32(ce32)); in handleContractions()