Lines Matching refs:Collation
216 if(ce32 == Collation::FALLBACK_CE32) { in getCEs()
229 charCEs[i][0] = ce0 = Collation::NO_CE; in getCEs()
237 charCEs[0][0] = ((int64_t)Collation::NO_CE_PRIMARY << 32) | CONTRACTION_FLAG; in getCEs()
251 if(Collation::isSimpleOrLongCE32(ce32)) { in getCEsFromCE32()
252 ce0 = Collation::ceFromCE32(ce32); in getCEsFromCE32()
254 switch(Collation::tagFromCE32(ce32)) { in getCEsFromCE32()
255 case Collation::LATIN_EXPANSION_TAG: in getCEsFromCE32()
256 ce0 = Collation::latinCE0FromCE32(ce32); in getCEsFromCE32()
257 ce1 = Collation::latinCE1FromCE32(ce32); in getCEsFromCE32()
259 case Collation::EXPANSION32_TAG: { in getCEsFromCE32()
260 const uint32_t *ce32s = data.ce32s + Collation::indexFromCE32(ce32); in getCEsFromCE32()
261 int32_t length = Collation::lengthFromCE32(ce32); in getCEsFromCE32()
263 ce0 = Collation::ceFromCE32(ce32s[0]); in getCEsFromCE32()
265 ce1 = Collation::ceFromCE32(ce32s[1]); in getCEsFromCE32()
272 case Collation::EXPANSION_TAG: { in getCEsFromCE32()
273 const int64_t *ces = data.ces + Collation::indexFromCE32(ce32); in getCEsFromCE32()
274 int32_t length = Collation::lengthFromCE32(ce32); in getCEsFromCE32()
290 case Collation::CONTRACTION_TAG: in getCEsFromCE32()
293 case Collation::OFFSET_TAG: in getCEsFromCE32()
311 uint32_t sc0 = lower32_0 & Collation::SECONDARY_AND_CASE_MASK; in getCEsFromCE32()
312 if(sc0 != Collation::COMMON_SECONDARY_CE) { return FALSE; } in getCEsFromCE32()
315 if((lower32_0 & Collation::ONLY_TERTIARY_MASK) < Collation::COMMON_WEIGHT16) { return FALSE; } in getCEsFromCE32()
330 uint32_t sc1 = lower32_1 & Collation::SECONDARY_AND_CASE_MASK; in getCEsFromCE32()
331 if(sc1 != Collation::COMMON_SECONDARY_CE) { return FALSE; } in getCEsFromCE32()
334 … if((lower32_1 & Collation::ONLY_TERTIARY_MASK) < Collation::COMMON_WEIGHT16) { return FALSE; } in getCEsFromCE32()
337 if(((ce0 | ce1) & Collation::QUATERNARY_MASK) != 0) { return FALSE; } in getCEsFromCE32()
345 const UChar *p = data.contexts + Collation::indexFromCE32(ce32); in getCEsFromContractionCE32()
349 U_ASSERT(!Collation::isContractionCE32(ce32)); in getCEsFromContractionCE32()
355 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
369 addContractionEntry(x, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
381 addContractionEntry(x, Collation::NO_CE, 0, errorCode); in getCEsFromContractionCE32()
395 ce0 = ((int64_t)Collation::NO_CE_PRIMARY << 32) | CONTRACTION_FLAG | contractionIndex; in getCEsFromContractionCE32()
413 if(ce == 0 || (uint32_t)(ce >> 32) == Collation::NO_CE_PRIMARY) { return; } in addUniqueCE()
414 ce &= ~(int64_t)Collation::CASE_MASK; // blank out case bits in addUniqueCE()
423 ce &= ~(int64_t)Collation::CASE_MASK; // blank out case bits in getMiniCE()
493 prevSecondary = Collation::COMMON_WEIGHT16; in encodeUniqueCEs()
511 } else if(s < Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
520 } else if(s == Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
535 U_ASSERT((lower32 & Collation::CASE_MASK) == 0); // blanked out in uniqueCEs in encodeUniqueCEs()
536 uint32_t t = lower32 & Collation::ONLY_TERTIARY_MASK; in encodeUniqueCEs()
537 if(t > Collation::COMMON_WEIGHT16) { in encodeUniqueCEs()
674 if(first == Collation::NO_CE) { in encodeTwoCEs()
677 U_ASSERT((uint32_t)(first >> 32) != Collation::NO_CE_PRIMARY); in encodeTwoCEs()
684 uint32_t c = (((uint32_t)first & Collation::CASE_MASK) >> (14 - 3)); in encodeTwoCEs()
694 uint32_t case1 = (uint32_t)second & Collation::CASE_MASK; in encodeTwoCEs()