Lines Matching refs:ce32
237 CollationIterator::nextCEFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in nextCEFromCE32() argument
240 appendCEsFromCE32(d, c, ce32, TRUE, errorCode); in nextCEFromCE32()
249 CollationIterator::appendCEsFromCE32(const CollationData *d, UChar32 c, uint32_t ce32, in appendCEsFromCE32() argument
251 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
252 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32()
261 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32()
265 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32()
266 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32()
271 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
272 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
281 const int64_t *ces = d->ces + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
282 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
291 ce32 = getCE32FromBuilderData(ce32, errorCode); in appendCEsFromCE32()
293 if(ce32 == Collation::FALLBACK_CE32) { in appendCEsFromCE32()
295 ce32 = d->getCE32(c); in appendCEsFromCE32()
300 ce32 = getCE32FromPrefix(d, ce32, errorCode); in appendCEsFromCE32()
304 const UChar *p = d->contexts + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
309 ce32 = defaultCE32; in appendCEsFromCE32()
319 ce32 = defaultCE32; in appendCEsFromCE32()
321 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
326 ce32 = defaultCE32; in appendCEsFromCE32()
333 ce32 = defaultCE32; in appendCEsFromCE32()
335 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
340 ce32 = defaultCE32; in appendCEsFromCE32()
344 ce32 = nextCE32FromContraction(d, ce32, p + 2, defaultCE32, nextCp, errorCode); in appendCEsFromCE32()
345 if(ce32 == Collation::NO_CE32) { in appendCEsFromCE32()
354 appendNumericCEs(ce32, forward, errorCode); in appendCEsFromCE32()
358 ce32 = d->ce32s[Collation::indexFromCE32(ce32)]; in appendCEsFromCE32()
369 ce32 = d->ce32s[0]; in appendCEsFromCE32()
379 if((ce32 & Collation::HANGUL_NO_SPECIAL_JAMO) != 0) { in appendCEsFromCE32()
401 ce32 = jamoCE32s[39 + t]; in appendCEsFromCE32()
412 ce32 &= Collation::LEAD_TYPE_MASK; in appendCEsFromCE32()
413 if(ce32 == Collation::LEAD_ALL_UNASSIGNED) { in appendCEsFromCE32()
414 ce32 = Collation::UNASSIGNED_CE32; // unassigned-implicit in appendCEsFromCE32()
415 } else if(ce32 == Collation::LEAD_ALL_FALLBACK || in appendCEsFromCE32()
416 (ce32 = d->getCE32FromSupplementary(c)) == Collation::FALLBACK_CE32) { in appendCEsFromCE32()
419 ce32 = d->getCE32FromSupplementary(c); in appendCEsFromCE32()
423 ce32 = Collation::UNASSIGNED_CE32; in appendCEsFromCE32()
429 ceBuffer.append(d->getCEFromOffsetCE32(c, ce32), errorCode); in appendCEsFromCE32()
434 ce32 = Collation::FFFD_CE32; in appendCEsFromCE32()
442 ceBuffer.append(Collation::ceFromSimpleCE32(ce32), errorCode); in appendCEsFromCE32()
446 CollationIterator::getCE32FromPrefix(const CollationData *d, uint32_t ce32, in getCE32FromPrefix() argument
448 const UChar *p = d->contexts + Collation::indexFromCE32(ce32); in getCE32FromPrefix()
449 ce32 = CollationData::readCE32(p); // Default if no prefix match. in getCE32FromPrefix()
460 ce32 = (uint32_t)prefixes.getValue(); in getCE32FromPrefix()
465 return ce32; in getCE32FromPrefix()
489 const UChar *p, uint32_t ce32, UChar32 c, in nextCE32FromContraction() argument
507 ce32 = (uint32_t)suffixes.getValue(); in nextCE32FromContraction()
509 return ce32; in nextCE32FromContraction()
535 d, suffixes, ce32, lookAhead, c, errorCode); in nextCE32FromContraction()
551 return ce32; in nextCE32FromContraction()
556 const CollationData *d, UCharsTrie &suffixes, uint32_t ce32, in nextCE32FromDiscontiguousContraction() argument
584 return ce32; in nextCE32FromDiscontiguousContraction()
592 return ce32; in nextCE32FromDiscontiguousContraction()
633 ce32 = (uint32_t)suffixes.getValue(); in nextCE32FromDiscontiguousContraction()
662 appendCEsFromCE32(d, c, ce32, TRUE, errorCode); in nextCE32FromDiscontiguousContraction()
667 ce32 = getDataCE32(c); in nextCE32FromDiscontiguousContraction()
668 if(ce32 == Collation::FALLBACK_CE32) { in nextCE32FromDiscontiguousContraction()
670 ce32 = d->getCE32(c); in nextCE32FromDiscontiguousContraction()
679 ce32 = Collation::NO_CE32; // Signal to the caller that the result is in the ceBuffer. in nextCE32FromDiscontiguousContraction()
681 return ce32; in nextCE32FromDiscontiguousContraction()
685 CollationIterator::appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) { in appendNumericCEs() argument
690 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
695 ce32 = data->getCE32(c); in appendNumericCEs()
696 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
697 ce32 = data->base->getCE32(c); in appendNumericCEs()
699 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
707 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
711 ce32 = data->getCE32(c); in appendNumericCEs()
712 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
713 ce32 = data->base->getCE32(c); in appendNumericCEs()
715 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
854 uint32_t ce32 = data->getCE32(c); in previousCE() local
856 if(ce32 == Collation::FALLBACK_CE32) { in previousCE()
858 ce32 = d->getCE32(c); in previousCE()
862 if(Collation::isSimpleOrLongCE32(ce32)) { in previousCE()
863 return Collation::ceFromCE32(ce32); in previousCE()
865 appendCEsFromCE32(d, c, ce32, FALSE, errorCode); in previousCE()