Home | History | Annotate | Download | only in i18n

Lines Matching refs:ce32

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