Lines Matching refs:Collation
54 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32()
58 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32()
160 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator()
187 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
198 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
256 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
258 UChar32 jamo = Collation::indexFromCE32(ce32); in getCE32FromBuilderData()
262 if(cond->builtCE32 == Collation::NO_CE32) { in getCE32FromBuilderData()
311 trie = utrie2_open(Collation::FALLBACK_CE32, Collation::FFFD_CE32, &errorCode); in initForTailoring()
319 utrie2_set32(trie, c, Collation::FALLBACK_CE32, &errorCode); in initForTailoring()
326 uint32_t hangulCE32 = Collation::makeCE32FromTagAndIndex(Collation::HANGUL_TAG, 0); in initForTailoring()
360 if(index > Collation::MAX_INDEX) { in maybeSetPrimaryRange()
364 uint32_t offsetCE32 = Collation::makeCE32FromTagAndIndex(Collation::OFFSET_TAG, index); in maybeSetPrimaryRange()
380 return Collation::incThreeBytePrimaryByOffset(primary, isCompressible, in setPrimaryRangeAndReturnNext()
385 utrie2_set32(trie, start, Collation::makeLongPrimaryCE32(primary), &errorCode); in setPrimaryRangeAndReturnNext()
387 primary = Collation::incThreeBytePrimaryByOffset(primary, isCompressible, step); in setPrimaryRangeAndReturnNext()
396 int32_t i = Collation::indexFromCE32(ce32); in getCE32FromOffsetCE32()
398 uint32_t p = Collation::getThreeBytePrimaryForOffsetData(c, dataCE); in getCE32FromOffsetCE32()
399 return Collation::makeLongPrimaryCE32(p); in getCE32FromOffsetCE32()
409 return Collation::isAssignedCE32(utrie2_get32(trie, c)); in isAssigned()
415 if(Collation::isLongPrimaryCE32(ce32)) { in getLongPrimaryIfSingleCE()
416 return Collation::primaryFromLongPrimaryCE32(ce32); in getLongPrimaryIfSingleCE()
428 if(ce32 == Collation::FALLBACK_CE32) { in getSingleCE()
432 while(Collation::isSpecialCE32(ce32)) { in getSingleCE()
433 switch(Collation::tagFromCE32(ce32)) { in getSingleCE()
434 case Collation::LATIN_EXPANSION_TAG: in getSingleCE()
435 case Collation::BUILDER_DATA_TAG: in getSingleCE()
436 case Collation::PREFIX_TAG: in getSingleCE()
437 case Collation::CONTRACTION_TAG: in getSingleCE()
438 case Collation::HANGUL_TAG: in getSingleCE()
439 case Collation::LEAD_SURROGATE_TAG: in getSingleCE()
442 case Collation::FALLBACK_TAG: in getSingleCE()
443 case Collation::RESERVED_TAG_3: in getSingleCE()
446 case Collation::LONG_PRIMARY_TAG: in getSingleCE()
447 return Collation::ceFromLongPrimaryCE32(ce32); in getSingleCE()
448 case Collation::LONG_SECONDARY_TAG: in getSingleCE()
449 return Collation::ceFromLongSecondaryCE32(ce32); in getSingleCE()
450 case Collation::EXPANSION32_TAG: in getSingleCE()
451 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
452 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
459 case Collation::EXPANSION_TAG: { in getSingleCE()
460 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
461 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
468 case Collation::DIGIT_TAG: in getSingleCE()
470 ce32 = ce32s.elementAti(Collation::indexFromCE32(ce32)); in getSingleCE()
472 case Collation::U0000_TAG: in getSingleCE()
477 case Collation::OFFSET_TAG: in getSingleCE()
480 case Collation::IMPLICIT_TAG: in getSingleCE()
481 return Collation::unassignedCEFromCodePoint(c); in getSingleCE()
484 return Collation::ceFromSimpleCE32(ce32); in getSingleCE()
513 if(index > Collation::MAX_INDEX) { in addConditionalCE32()
550 if(oldCE32 == Collation::FALLBACK_CE32) { in addCE32()
556 if(hasContext || Collation::ce32HasContext(baseCE32)) { in addCE32()
568 cond->builtCE32 = Collation::NO_CE32; in addCE32()
584 cond->builtCE32 = Collation::NO_CE32; in addCE32()
629 } else if((ce & INT64_C(0xffffffffff)) == Collation::COMMON_SEC_AND_TER_CE) { in encodeOneCEAsCE32()
631 return Collation::makeLongPrimaryCE32(p); in encodeOneCEAsCE32()
634 return Collation::makeLongSecondaryCE32(lower32); in encodeOneCEAsCE32()
636 return Collation::NO_CE32; in encodeOneCEAsCE32()
643 if(ce32 != Collation::NO_CE32) { return ce32; } in encodeOneCE()
646 if(index > Collation::MAX_INDEX) { in encodeOneCE()
650 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION_TAG, index, 1); in encodeOneCE()
657 if(cesLength < 0 || cesLength > Collation::MAX_EXPANSION_LENGTH) { in encodeCEs()
676 if((ce0 & INT64_C(0xffffffffff00ff)) == Collation::COMMON_SECONDARY_CE && in encodeCEs()
677 (ce1 & INT64_C(0xffffffff00ffffff)) == Collation::COMMON_TERTIARY_CE && in encodeCEs()
684 Collation::SPECIAL_CE32_LOW_BYTE | in encodeCEs()
685 Collation::LATIN_EXPANSION_TAG; in encodeCEs()
689 int32_t newCE32s[Collation::MAX_EXPANSION_LENGTH]; in encodeCEs()
695 if(ce32 == Collation::NO_CE32) { break; } in encodeCEs()
709 if(i > Collation::MAX_INDEX) { in encodeExpansion()
715 return Collation::makeCE32FromTagIndexAndLength( in encodeExpansion()
716 Collation::EXPANSION_TAG, i, length); in encodeExpansion()
724 if(i > Collation::MAX_INDEX) { in encodeExpansion()
731 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION_TAG, i, length); in encodeExpansion()
743 if(i > Collation::MAX_INDEX) { in encodeExpansion32()
749 return Collation::makeCE32FromTagIndexAndLength( in encodeExpansion32()
750 Collation::EXPANSION32_TAG, i, length); in encodeExpansion32()
758 if(i > Collation::MAX_INDEX) { in encodeExpansion32()
765 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION32_TAG, i, length); in encodeExpansion32()
772 if(!Collation::isSpecialCE32(ce32)) { return ce32; } in copyFromBaseCE32()
773 switch(Collation::tagFromCE32(ce32)) { in copyFromBaseCE32()
774 case Collation::LONG_PRIMARY_TAG: in copyFromBaseCE32()
775 case Collation::LONG_SECONDARY_TAG: in copyFromBaseCE32()
776 case Collation::LATIN_EXPANSION_TAG: in copyFromBaseCE32()
779 case Collation::EXPANSION32_TAG: { in copyFromBaseCE32()
780 const uint32_t *baseCE32s = base->ce32s + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
781 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
786 case Collation::EXPANSION_TAG: { in copyFromBaseCE32()
787 const int64_t *baseCEs = base->ces + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
788 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
792 case Collation::PREFIX_TAG: { in copyFromBaseCE32()
795 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
803 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
817 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
830 case Collation::CONTRACTION_TAG: { in copyFromBaseCE32()
832 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
843 case Collation::HANGUL_TAG: in copyFromBaseCE32()
846 case Collation::OFFSET_TAG: in copyFromBaseCE32()
849 case Collation::IMPLICIT_TAG: in copyFromBaseCE32()
850 ce32 = encodeOneCE(Collation::unassignedCEFromCodePoint(c), errorCode); in copyFromBaseCE32()
863 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyContractionsFromBaseCE32()
865 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in copyContractionsFromBaseCE32()
873 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
913 if(!Collation::isSpecialCE32(ce32)) { in copyCE32()
915 if(ce != Collation::NO_CE) { in copyCE32()
919 int32_t tag = Collation::tagFromCE32(ce32); in copyCE32()
920 if(tag == Collation::EXPANSION32_TAG) { in copyCE32()
922 srcCE32s += Collation::indexFromCE32(ce32); in copyCE32()
923 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
930 if(Collation::isSpecialCE32(ce32) || in copyCE32()
931 (ce = modifier.modifyCE32(ce32)) == Collation::NO_CE) { in copyCE32()
933 modifiedCEs[i] = Collation::ceFromCE32(ce32); in copyCE32()
938 modifiedCEs[j] = Collation::ceFromCE32(srcCE32s[j]); in copyCE32()
951 } else if(tag == Collation::EXPANSION_TAG) { in copyCE32()
953 srcCEs += Collation::indexFromCE32(ce32); in copyCE32()
954 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
961 if(ce == Collation::NO_CE) { in copyCE32()
980 } else if(tag == Collation::BUILDER_DATA_TAG) { in copyCE32()
999 U_ASSERT(tag == Collation::LONG_PRIMARY_TAG || in copyCE32()
1000 tag == Collation::LONG_SECONDARY_TAG || in copyCE32()
1001 tag == Collation::LATIN_EXPANSION_TAG || in copyCE32()
1002 tag == Collation::HANGUL_TAG); in copyCE32()
1011 int64_t modifiedCEs[Collation::MAX_EXPANSION_LENGTH];
1020 value == Collation::UNASSIGNED_CE32 || value == Collation::FALLBACK_CE32 || in enumRangeForCopy()
1050 if(ce32 == Collation::FALLBACK_CE32) { in optimize()
1066 if(ce32 == Collation::FALLBACK_CE32) { in suppressContractions()
1068 if(Collation::ce32HasContext(ce32)) { in suppressContractions()
1093 anyJamoAssigned |= Collation::isAssignedCE32(ce32); in getJamoCE32s()
1096 if(ce32 == Collation::FALLBACK_CE32) { in getJamoCE32s()
1100 if(Collation::isSpecialCE32(ce32)) { in getJamoCE32s()
1101 switch(Collation::tagFromCE32(ce32)) { in getJamoCE32s()
1102 case Collation::LONG_PRIMARY_TAG: in getJamoCE32s()
1103 case Collation::LONG_SECONDARY_TAG: in getJamoCE32s()
1104 case Collation::LATIN_EXPANSION_TAG: in getJamoCE32s()
1107 case Collation::EXPANSION32_TAG: in getJamoCE32s()
1108 case Collation::EXPANSION_TAG: in getJamoCE32s()
1109 case Collation::PREFIX_TAG: in getJamoCE32s()
1110 case Collation::CONTRACTION_TAG: in getJamoCE32s()
1113 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1117 case Collation::IMPLICIT_TAG: in getJamoCE32s()
1120 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1123 case Collation::OFFSET_TAG: in getJamoCE32s()
1126 case Collation::FALLBACK_TAG: in getJamoCE32s()
1127 case Collation::RESERVED_TAG_3: in getJamoCE32s()
1128 case Collation::BUILDER_DATA_TAG: in getJamoCE32s()
1129 case Collation::DIGIT_TAG: in getJamoCE32s()
1130 case Collation::U0000_TAG: in getJamoCE32s()
1131 case Collation::HANGUL_TAG: in getJamoCE32s()
1132 case Collation::LEAD_SURROGATE_TAG: in getJamoCE32s()
1141 if(jamoCE32s[j] == Collation::FALLBACK_CE32) { in getJamoCE32s()
1160 if(ce32 != Collation::FALLBACK_CE32 && ce32 != Collation::UNASSIGNED_CE32) { in setDigitTags()
1163 if(index > Collation::MAX_INDEX) { in setDigitTags()
1167 ce32 = Collation::makeCE32FromTagIndexAndLength( in setDigitTags()
1168 Collation::DIGIT_TAG, index, u_charDigitValue(c)); in setDigitTags()
1179 if(value == Collation::UNASSIGNED_CE32) { in enumRangeLeadValue()
1180 value = Collation::LEAD_ALL_UNASSIGNED; in enumRangeLeadValue()
1181 } else if(value == Collation::FALLBACK_CE32) { in enumRangeLeadValue()
1182 value = Collation::LEAD_ALL_FALLBACK; in enumRangeLeadValue()
1184 *pValue = Collation::LEAD_MIXED; in enumRangeLeadValue()
1190 *pValue = Collation::LEAD_MIXED; in enumRangeLeadValue()
1205 Collation::makeCE32FromTagAndIndex(Collation::LEAD_SURROGATE_TAG, 0) | (uint32_t)value, in setLeadSurrogates()
1250 if(Collation::isSpecialCE32(jamoCE32s[i])) { in buildMappings()
1255 uint32_t hangulCE32 = Collation::makeCE32FromTagAndIndex(Collation::HANGUL_TAG, 0); in buildMappings()
1259 if(!isAnyJamoVTSpecial && !Collation::isSpecialCE32(jamoCE32s[i])) { in buildMappings()
1260 ce32 |= Collation::HANGUL_NO_SPECIAL_JAMO; in buildMappings()
1271 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::HANGUL_TAG)); in buildMappings()
1283 utrie2_set32(trie, 0, Collation::makeCE32FromTagAndIndex(Collation::U0000_TAG, 0), &errorCode); in buildMappings()
1324 getConditionalCE32ForCE32(ce32)->builtCE32 = Collation::NO_CE32; in clearContexts()
1392 flags |= Collation::CONTRACT_SINGLE_CP_NO_MATCH; in buildContext()
1402 if(cond->defaultCE32 != Collation::NO_CE32 && in buildContext()
1412 flags |= Collation::CONTRACT_NEXT_CCC; in buildContext()
1418 flags &= ~Collation::CONTRACT_NEXT_CCC; in buildContext()
1423 flags |= Collation::CONTRACT_TRAILING_CCC; in buildContext()
1431 if(index > Collation::MAX_INDEX) { in buildContext()
1435 ce32 = Collation::makeCE32FromTagAndIndex(Collation::CONTRACTION_TAG, index) | flags; in buildContext()
1451 U_ASSERT(head->defaultCE32 != Collation::NO_CE32); in buildContext()
1454 if(index > Collation::MAX_INDEX) { in buildContext()
1458 return Collation::makeCE32FromTagAndIndex(Collation::PREFIX_TAG, index); in buildContext()