Lines Matching refs:ce32
239 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument
242 appendCEsFromCE32(d, c, ce32, true, errorCode); in nextCEFromCE32()
251 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument
253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
260 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32()
263 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32()
267 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32()
268 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32()
273 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
274 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
283 const int64_t *ces = d->ces + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
284 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
293 ce32 = getCE32FromBuilderData(ce32, errorCode); in appendCEsFromCE32()
295 if(ce32 == Collation::FALLBACK_CE32) { in appendCEsFromCE32()
297 ce32 = d->getCE32(c); in appendCEsFromCE32()
302 ce32 = getCE32FromPrefix(d, ce32, errorCode); in appendCEsFromCE32()
306 const char16_t *p = d->contexts + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
311 ce32 = defaultCE32; in appendCEsFromCE32()
321 ce32 = defaultCE32; in appendCEsFromCE32()
323 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
328 ce32 = defaultCE32; in appendCEsFromCE32()
335 ce32 = defaultCE32; in appendCEsFromCE32()
337 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
342 ce32 = defaultCE32; in appendCEsFromCE32()
346 ce32 = nextCE32FromContraction(d, ce32, p + 2, defaultCE32, nextCp, errorCode); in appendCEsFromCE32()
347 if(ce32 == Collation::NO_CE32) { in appendCEsFromCE32()
356 appendNumericCEs(ce32, forward, errorCode); in appendCEsFromCE32()
360 ce32 = d->ce32s[Collation::indexFromCE32(ce32)]; in appendCEsFromCE32()
371 ce32 = d->ce32s[0]; in appendCEsFromCE32()
381 if((ce32 & Collation::HANGUL_NO_SPECIAL_JAMO) != 0) { in appendCEsFromCE32()
403 ce32 = jamoCE32s[39 + t]; in appendCEsFromCE32()
414 ce32 &= Collation::LEAD_TYPE_MASK; in appendCEsFromCE32()
415 if(ce32 == Collation::LEAD_ALL_UNASSIGNED) { in appendCEsFromCE32()
416 ce32 = Collation::UNASSIGNED_CE32; // unassigned-implicit in appendCEsFromCE32()
417 } else if(ce32 == Collation::LEAD_ALL_FALLBACK || in appendCEsFromCE32()
418 (ce32 = d->getCE32FromSupplementary(c)) == Collation::FALLBACK_CE32) { in appendCEsFromCE32()
421 ce32 = d->getCE32FromSupplementary(c); in appendCEsFromCE32()
425 ce32 = Collation::UNASSIGNED_CE32; in appendCEsFromCE32()
431 ceBuffer.append(d->getCEFromOffsetCE32(c, ce32), errorCode); in appendCEsFromCE32()
436 ce32 = Collation::FFFD_CE32; in appendCEsFromCE32()
444 ceBuffer.append(Collation::ceFromSimpleCE32(ce32), errorCode); in appendCEsFromCE32()
448 CollationIterator::getCE32FromPrefix(const CollationData *d, uint32_t ce32, in getCE32FromPrefix() argument
450 const char16_t *p = d->contexts + Collation::indexFromCE32(ce32); in getCE32FromPrefix()
451 ce32 = CollationData::readCE32(p); // Default if no prefix match. in getCE32FromPrefix()
462 ce32 = (uint32_t)prefixes.getValue(); in getCE32FromPrefix()
467 return ce32; in getCE32FromPrefix()
491 const char16_t *p, uint32_t ce32, UChar32 c, in nextCE32FromContraction() argument
509 ce32 = (uint32_t)suffixes.getValue(); in nextCE32FromContraction()
511 return ce32; in nextCE32FromContraction()
537 d, suffixes, ce32, lookAhead, c, errorCode); in nextCE32FromContraction()
553 return ce32; in nextCE32FromContraction()
558 const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, in nextCE32FromDiscontiguousContraction() argument
586 return ce32; in nextCE32FromDiscontiguousContraction()
594 return ce32; in nextCE32FromDiscontiguousContraction()
635 ce32 = (uint32_t)suffixes.getValue(); in nextCE32FromDiscontiguousContraction()
664 appendCEsFromCE32(d, c, ce32, true, errorCode); in nextCE32FromDiscontiguousContraction()
669 ce32 = getDataCE32(c); in nextCE32FromDiscontiguousContraction()
670 if(ce32 == Collation::FALLBACK_CE32) { in nextCE32FromDiscontiguousContraction()
672 ce32 = d->getCE32(c); in nextCE32FromDiscontiguousContraction()
681 ce32 = Collation::NO_CE32; // Signal to the caller that the result is in the ceBuffer. in nextCE32FromDiscontiguousContraction()
683 return ce32; in nextCE32FromDiscontiguousContraction()
687 CollationIterator::appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) { in appendNumericCEs() argument
692 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
697 ce32 = data->getCE32(c); in appendNumericCEs()
698 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
699 ce32 = data->base->getCE32(c); in appendNumericCEs()
701 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
709 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
713 ce32 = data->getCE32(c); in appendNumericCEs()
714 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
715 ce32 = data->base->getCE32(c); in appendNumericCEs()
717 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
856 uint32_t ce32 = data->getCE32(c); in previousCE() local
858 if(ce32 == Collation::FALLBACK_CE32) { in previousCE()
860 ce32 = d->getCE32(c); in previousCE()
864 if(Collation::isSimpleOrLongCE32(ce32)) { in previousCE()
865 return Collation::ceFromCE32(ce32); in previousCE()
867 appendCEsFromCE32(d, c, ce32, false, errorCode); in previousCE()