Lines Matching refs:Collation
199 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) { in fetchCEs()
209 return (c < 0) ? Collation::FALLBACK_CE32 : data->getCE32(c); in handleNextCE32()
246 return Collation::NO_CE_PRIMARY; in nextCEFromCE32()
253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
255 case Collation::FALLBACK_TAG: in appendCEsFromCE32()
256 case Collation::RESERVED_TAG_3: in appendCEsFromCE32()
259 case Collation::LONG_PRIMARY_TAG: in appendCEsFromCE32()
260 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode); in appendCEsFromCE32()
262 case Collation::LONG_SECONDARY_TAG: in appendCEsFromCE32()
263 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode); in appendCEsFromCE32()
265 case Collation::LATIN_EXPANSION_TAG: in appendCEsFromCE32()
267 ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32)); in appendCEsFromCE32()
268 ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32)); in appendCEsFromCE32()
272 case Collation::EXPANSION32_TAG: { in appendCEsFromCE32()
273 const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
274 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
277 ceBuffer.appendUnsafe(Collation::ceFromCE32(*ce32s++)); in appendCEsFromCE32()
282 case Collation::EXPANSION_TAG: { in appendCEsFromCE32()
283 const int64_t *ces = d->ces + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
284 int32_t length = Collation::lengthFromCE32(ce32); in appendCEsFromCE32()
292 case Collation::BUILDER_DATA_TAG: in appendCEsFromCE32()
295 if(ce32 == Collation::FALLBACK_CE32) { in appendCEsFromCE32()
300 case Collation::PREFIX_TAG: in appendCEsFromCE32()
305 case Collation::CONTRACTION_TAG: { in appendCEsFromCE32()
306 const UChar *p = d->contexts + Collation::indexFromCE32(ce32); in appendCEsFromCE32()
323 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
337 } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 && in appendCEsFromCE32()
347 if(ce32 == Collation::NO_CE32) { in appendCEsFromCE32()
354 case Collation::DIGIT_TAG: in appendCEsFromCE32()
360 ce32 = d->ce32s[Collation::indexFromCE32(ce32)]; in appendCEsFromCE32()
363 case Collation::U0000_TAG: in appendCEsFromCE32()
367 ceBuffer.append(Collation::NO_CE, errorCode); in appendCEsFromCE32()
374 case Collation::HANGUL_TAG: { in appendCEsFromCE32()
381 if((ce32 & Collation::HANGUL_NO_SPECIAL_JAMO) != 0) { in appendCEsFromCE32()
385 ceBuffer.set(ceBuffer.length, Collation::ceFromCE32(jamoCE32s[c])); in appendCEsFromCE32()
386 ceBuffer.set(ceBuffer.length + 1, Collation::ceFromCE32(jamoCE32s[19 + v])); in appendCEsFromCE32()
389 ceBuffer.appendUnsafe(Collation::ceFromCE32(jamoCE32s[39 + t])); in appendCEsFromCE32()
408 case Collation::LEAD_SURROGATE_TAG: { 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()
425 ce32 = Collation::UNASSIGNED_CE32; in appendCEsFromCE32()
429 case Collation::OFFSET_TAG: in appendCEsFromCE32()
433 case Collation::IMPLICIT_TAG: in appendCEsFromCE32()
436 ce32 = Collation::FFFD_CE32; in appendCEsFromCE32()
439 ceBuffer.append(Collation::unassignedCEFromCodePoint(c), errorCode); in appendCEsFromCE32()
444 ceBuffer.append(Collation::ceFromSimpleCE32(ce32), errorCode); in appendCEsFromCE32()
450 const UChar *p = d->contexts + Collation::indexFromCE32(ce32); in getCE32FromPrefix()
518 if((contractionCE32 & Collation::CONTRACT_TRAILING_CCC) != 0 && in nextCE32FromContraction()
521 ((contractionCE32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) == 0 || in nextCE32FromContraction()
670 if(ce32 == Collation::FALLBACK_CE32) { in nextCE32FromDiscontiguousContraction()
681 ce32 = Collation::NO_CE32; // Signal to the caller that the result is in the ceBuffer. in nextCE32FromDiscontiguousContraction()
692 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
698 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
701 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
709 char digit = Collation::digitFromCE32(ce32); in appendNumericCEs()
714 if(ce32 == Collation::FALLBACK_CE32) { in appendNumericCEs()
717 if(!Collation::hasCE32Tag(ce32, Collation::DIGIT_TAG)) { in appendNumericCEs()
766 ceBuffer.append(Collation::makeCE(primary), errorCode); in appendNumericSegmentCEs()
776 ceBuffer.append(Collation::makeCE(primary), errorCode); in appendNumericSegmentCEs()
789 ceBuffer.append(Collation::makeCE(primary), errorCode); in appendNumericSegmentCEs()
827 ceBuffer.append(Collation::makeCE(primary), errorCode); in appendNumericSegmentCEs()
838 ceBuffer.append(Collation::makeCE(primary), errorCode); in appendNumericSegmentCEs()
850 if(c < 0) { return Collation::NO_CE; } in previousCE()
858 if(ce32 == Collation::FALLBACK_CE32) { in previousCE()
864 if(Collation::isSimpleOrLongCE32(ce32)) { in previousCE()
865 return Collation::ceFromCE32(ce32); in previousCE()
879 return Collation::NO_CE_PRIMARY; in previousCE()
922 U_ASSERT(U_FAILURE(errorCode) || ceBuffer.get(ceBuffer.length - 1) != Collation::NO_CE); in previousCEUnsafe()
949 return Collation::NO_CE_PRIMARY; in previousCEUnsafe()