Lines Matching refs:Collation

214         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()
258 const uint32_t *ce32s = data.ce32s + Collation::indexFromCE32(ce32); in getCEsFromCE32()
259 int32_t length = Collation::lengthFromCE32(ce32); in getCEsFromCE32()
261 ce0 = Collation::ceFromCE32(ce32s[0]); in getCEsFromCE32()
263 ce1 = Collation::ceFromCE32(ce32s[1]); in getCEsFromCE32()
270 case Collation::EXPANSION_TAG: { in getCEsFromCE32()
271 const int64_t *ces = data.ces + Collation::indexFromCE32(ce32); in getCEsFromCE32()
272 int32_t length = Collation::lengthFromCE32(ce32); in getCEsFromCE32()
288 case Collation::CONTRACTION_TAG: in getCEsFromCE32()
291 case Collation::OFFSET_TAG: in getCEsFromCE32()
309 uint32_t sc0 = lower32_0 & Collation::SECONDARY_AND_CASE_MASK; in getCEsFromCE32()
310 if(sc0 != Collation::COMMON_SECONDARY_CE) { return FALSE; } in getCEsFromCE32()
313 if((lower32_0 & Collation::ONLY_TERTIARY_MASK) < Collation::COMMON_WEIGHT16) { return FALSE; } in getCEsFromCE32()
328 uint32_t sc1 = lower32_1 & Collation::SECONDARY_AND_CASE_MASK; in getCEsFromCE32()
329 if(sc1 != Collation::COMMON_SECONDARY_CE) { return FALSE; } in getCEsFromCE32()
332 … if((lower32_1 & Collation::ONLY_TERTIARY_MASK) < Collation::COMMON_WEIGHT16) { return FALSE; } in getCEsFromCE32()
335 if(((ce0 | ce1) & Collation::QUATERNARY_MASK) != 0) { return FALSE; } in getCEsFromCE32()
343 const UChar *p = data.contexts + Collation::indexFromCE32(ce32); in getCEsFromContractionCE32()
347 U_ASSERT(!Collation::isContractionCE32(ce32)); in getCEsFromContractionCE32()
353 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
367 addContractionEntry(x, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
379 addContractionEntry(x, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
393 ce0 = ((int64_t)Collation::NO_CE_PRIMARY << 32) | CONTRACTION_FLAG | contractionIndex; in getCEsFromContractionCE32()
411 if(ce == 0 || (uint32_t)(ce >> 32) == Collation::NO_CE_PRIMARY) { return; } in addUniqueCE()
412 ce &= ~(int64_t)Collation::CASE_MASK; // blank out case bits in addUniqueCE()
421 ce &= ~(int64_t)Collation::CASE_MASK; // blank out case bits in getMiniCE()
491 prevSecondary = Collation::COMMON_WEIGHT16; in encodeUniqueCEs()
509 } else if(s < Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
518 } else if(s == Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
533 U_ASSERT((lower32 & Collation::CASE_MASK) == 0); // blanked out in uniqueCEs in encodeUniqueCEs()
534 uint32_t t = lower32 & Collation::ONLY_TERTIARY_MASK; in encodeUniqueCEs()
535 if(t > Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
672 if(first == Collation::NO_CE) { in encodeTwoCEs()
675 U_ASSERT((uint32_t)(first >> 32) != Collation::NO_CE_PRIMARY); in encodeTwoCEs()
682 uint32_t c = (((uint32_t)first & Collation::CASE_MASK) >> (14 - 3)); in encodeTwoCEs()
692 uint32_t case1 = (uint32_t)second & Collation::CASE_MASK; in encodeTwoCEs()