• Home
  • Raw
  • Download

Lines Matching refs:Collation

56               ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32),  in ConditionalCE32()
60 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32()
162 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator()
189 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
200 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
258 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
260 UChar32 jamo = Collation::indexFromCE32(ce32); in getCE32FromBuilderData()
264 if(cond->builtCE32 == Collation::NO_CE32) { in getCE32FromBuilderData()
313 trie = utrie2_open(Collation::FALLBACK_CE32, Collation::FFFD_CE32, &errorCode); in initForTailoring()
321 utrie2_set32(trie, c, Collation::FALLBACK_CE32, &errorCode); in initForTailoring()
328 uint32_t hangulCE32 = Collation::makeCE32FromTagAndIndex(Collation::HANGUL_TAG, 0); in initForTailoring()
362 if(index > Collation::MAX_INDEX) { in maybeSetPrimaryRange()
366 uint32_t offsetCE32 = Collation::makeCE32FromTagAndIndex(Collation::OFFSET_TAG, index); in maybeSetPrimaryRange()
382 return Collation::incThreeBytePrimaryByOffset(primary, isCompressible, in setPrimaryRangeAndReturnNext()
387 utrie2_set32(trie, start, Collation::makeLongPrimaryCE32(primary), &errorCode); in setPrimaryRangeAndReturnNext()
389 primary = Collation::incThreeBytePrimaryByOffset(primary, isCompressible, step); in setPrimaryRangeAndReturnNext()
398 int32_t i = Collation::indexFromCE32(ce32); in getCE32FromOffsetCE32()
400 uint32_t p = Collation::getThreeBytePrimaryForOffsetData(c, dataCE); in getCE32FromOffsetCE32()
401 return Collation::makeLongPrimaryCE32(p); in getCE32FromOffsetCE32()
411 return Collation::isAssignedCE32(utrie2_get32(trie, c)); in isAssigned()
417 if(Collation::isLongPrimaryCE32(ce32)) { in getLongPrimaryIfSingleCE()
418 return Collation::primaryFromLongPrimaryCE32(ce32); in getLongPrimaryIfSingleCE()
430 if(ce32 == Collation::FALLBACK_CE32) { in getSingleCE()
434 while(Collation::isSpecialCE32(ce32)) { in getSingleCE()
435 switch(Collation::tagFromCE32(ce32)) { in getSingleCE()
436 case Collation::LATIN_EXPANSION_TAG: in getSingleCE()
437 case Collation::BUILDER_DATA_TAG: in getSingleCE()
438 case Collation::PREFIX_TAG: in getSingleCE()
439 case Collation::CONTRACTION_TAG: in getSingleCE()
440 case Collation::HANGUL_TAG: in getSingleCE()
441 case Collation::LEAD_SURROGATE_TAG: in getSingleCE()
444 case Collation::FALLBACK_TAG: in getSingleCE()
445 case Collation::RESERVED_TAG_3: in getSingleCE()
448 case Collation::LONG_PRIMARY_TAG: in getSingleCE()
449 return Collation::ceFromLongPrimaryCE32(ce32); in getSingleCE()
450 case Collation::LONG_SECONDARY_TAG: in getSingleCE()
451 return Collation::ceFromLongSecondaryCE32(ce32); in getSingleCE()
452 case Collation::EXPANSION32_TAG: in getSingleCE()
453 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
454 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
461 case Collation::EXPANSION_TAG: { in getSingleCE()
462 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
463 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
470 case Collation::DIGIT_TAG: in getSingleCE()
472 ce32 = ce32s.elementAti(Collation::indexFromCE32(ce32)); in getSingleCE()
474 case Collation::U0000_TAG: in getSingleCE()
479 case Collation::OFFSET_TAG: in getSingleCE()
482 case Collation::IMPLICIT_TAG: in getSingleCE()
483 return Collation::unassignedCEFromCodePoint(c); in getSingleCE()
486 return Collation::ceFromSimpleCE32(ce32); in getSingleCE()
515 if(index > Collation::MAX_INDEX) { in addConditionalCE32()
552 if(oldCE32 == Collation::FALLBACK_CE32) { in addCE32()
558 if(hasContext || Collation::ce32HasContext(baseCE32)) { in addCE32()
570 cond->builtCE32 = Collation::NO_CE32; in addCE32()
586 cond->builtCE32 = Collation::NO_CE32; in addCE32()
631 } else if((ce & INT64_C(0xffffffffff)) == Collation::COMMON_SEC_AND_TER_CE) { in encodeOneCEAsCE32()
633 return Collation::makeLongPrimaryCE32(p); in encodeOneCEAsCE32()
636 return Collation::makeLongSecondaryCE32(lower32); in encodeOneCEAsCE32()
638 return Collation::NO_CE32; in encodeOneCEAsCE32()
645 if(ce32 != Collation::NO_CE32) { return ce32; } in encodeOneCE()
648 if(index > Collation::MAX_INDEX) { in encodeOneCE()
652 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION_TAG, index, 1); in encodeOneCE()
659 if(cesLength < 0 || cesLength > Collation::MAX_EXPANSION_LENGTH) { in encodeCEs()
678 if((ce0 & INT64_C(0xffffffffff00ff)) == Collation::COMMON_SECONDARY_CE && in encodeCEs()
679 (ce1 & INT64_C(0xffffffff00ffffff)) == Collation::COMMON_TERTIARY_CE && in encodeCEs()
686 Collation::SPECIAL_CE32_LOW_BYTE | in encodeCEs()
687 Collation::LATIN_EXPANSION_TAG; in encodeCEs()
691 int32_t newCE32s[Collation::MAX_EXPANSION_LENGTH]; in encodeCEs()
697 if(ce32 == Collation::NO_CE32) { break; } in encodeCEs()
711 if(i > Collation::MAX_INDEX) { in encodeExpansion()
717 return Collation::makeCE32FromTagIndexAndLength( in encodeExpansion()
718 Collation::EXPANSION_TAG, i, length); in encodeExpansion()
726 if(i > Collation::MAX_INDEX) { in encodeExpansion()
733 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION_TAG, i, length); in encodeExpansion()
745 if(i > Collation::MAX_INDEX) { in encodeExpansion32()
751 return Collation::makeCE32FromTagIndexAndLength( in encodeExpansion32()
752 Collation::EXPANSION32_TAG, i, length); in encodeExpansion32()
760 if(i > Collation::MAX_INDEX) { in encodeExpansion32()
767 return Collation::makeCE32FromTagIndexAndLength(Collation::EXPANSION32_TAG, i, length); in encodeExpansion32()
774 if(!Collation::isSpecialCE32(ce32)) { return ce32; } in copyFromBaseCE32()
775 switch(Collation::tagFromCE32(ce32)) { in copyFromBaseCE32()
776 case Collation::LONG_PRIMARY_TAG: in copyFromBaseCE32()
777 case Collation::LONG_SECONDARY_TAG: in copyFromBaseCE32()
778 case Collation::LATIN_EXPANSION_TAG: in copyFromBaseCE32()
781 case Collation::EXPANSION32_TAG: { in copyFromBaseCE32()
782 const uint32_t *baseCE32s = base->ce32s + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
783 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
788 case Collation::EXPANSION_TAG: { in copyFromBaseCE32()
789 const int64_t *baseCEs = base->ces + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
790 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
794 case Collation::PREFIX_TAG: { in copyFromBaseCE32()
797 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
805 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
819 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
832 case Collation::CONTRACTION_TAG: { in copyFromBaseCE32()
834 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
845 case Collation::HANGUL_TAG: in copyFromBaseCE32()
848 case Collation::OFFSET_TAG: in copyFromBaseCE32()
851 case Collation::IMPLICIT_TAG: in copyFromBaseCE32()
852 ce32 = encodeOneCE(Collation::unassignedCEFromCodePoint(c), errorCode); in copyFromBaseCE32()
865 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyContractionsFromBaseCE32()
867 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in copyContractionsFromBaseCE32()
875 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
915 if(!Collation::isSpecialCE32(ce32)) { in copyCE32()
917 if(ce != Collation::NO_CE) { in copyCE32()
921 int32_t tag = Collation::tagFromCE32(ce32); in copyCE32()
922 if(tag == Collation::EXPANSION32_TAG) { in copyCE32()
924 srcCE32s += Collation::indexFromCE32(ce32); in copyCE32()
925 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
932 if(Collation::isSpecialCE32(ce32) || in copyCE32()
933 (ce = modifier.modifyCE32(ce32)) == Collation::NO_CE) { in copyCE32()
935 modifiedCEs[i] = Collation::ceFromCE32(ce32); in copyCE32()
940 modifiedCEs[j] = Collation::ceFromCE32(srcCE32s[j]); in copyCE32()
953 } else if(tag == Collation::EXPANSION_TAG) { in copyCE32()
955 srcCEs += Collation::indexFromCE32(ce32); in copyCE32()
956 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
963 if(ce == Collation::NO_CE) { in copyCE32()
982 } else if(tag == Collation::BUILDER_DATA_TAG) { in copyCE32()
1001 U_ASSERT(tag == Collation::LONG_PRIMARY_TAG || in copyCE32()
1002 tag == Collation::LONG_SECONDARY_TAG || in copyCE32()
1003 tag == Collation::LATIN_EXPANSION_TAG || in copyCE32()
1004 tag == Collation::HANGUL_TAG); in copyCE32()
1013 int64_t modifiedCEs[Collation::MAX_EXPANSION_LENGTH];
1022 value == Collation::UNASSIGNED_CE32 || value == Collation::FALLBACK_CE32 || in enumRangeForCopy()
1052 if(ce32 == Collation::FALLBACK_CE32) { in optimize()
1068 if(ce32 == Collation::FALLBACK_CE32) { in suppressContractions()
1070 if(Collation::ce32HasContext(ce32)) { in suppressContractions()
1095 anyJamoAssigned |= Collation::isAssignedCE32(ce32); in getJamoCE32s()
1098 if(ce32 == Collation::FALLBACK_CE32) { in getJamoCE32s()
1102 if(Collation::isSpecialCE32(ce32)) { in getJamoCE32s()
1103 switch(Collation::tagFromCE32(ce32)) { in getJamoCE32s()
1104 case Collation::LONG_PRIMARY_TAG: in getJamoCE32s()
1105 case Collation::LONG_SECONDARY_TAG: in getJamoCE32s()
1106 case Collation::LATIN_EXPANSION_TAG: in getJamoCE32s()
1109 case Collation::EXPANSION32_TAG: in getJamoCE32s()
1110 case Collation::EXPANSION_TAG: in getJamoCE32s()
1111 case Collation::PREFIX_TAG: in getJamoCE32s()
1112 case Collation::CONTRACTION_TAG: in getJamoCE32s()
1115 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1119 case Collation::IMPLICIT_TAG: in getJamoCE32s()
1122 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1125 case Collation::OFFSET_TAG: in getJamoCE32s()
1128 case Collation::FALLBACK_TAG: in getJamoCE32s()
1129 case Collation::RESERVED_TAG_3: in getJamoCE32s()
1130 case Collation::BUILDER_DATA_TAG: in getJamoCE32s()
1131 case Collation::DIGIT_TAG: in getJamoCE32s()
1132 case Collation::U0000_TAG: in getJamoCE32s()
1133 case Collation::HANGUL_TAG: in getJamoCE32s()
1134 case Collation::LEAD_SURROGATE_TAG: in getJamoCE32s()
1143 if(jamoCE32s[j] == Collation::FALLBACK_CE32) { in getJamoCE32s()
1162 if(ce32 != Collation::FALLBACK_CE32 && ce32 != Collation::UNASSIGNED_CE32) { in setDigitTags()
1165 if(index > Collation::MAX_INDEX) { in setDigitTags()
1169 ce32 = Collation::makeCE32FromTagIndexAndLength( in setDigitTags()
1170 Collation::DIGIT_TAG, index, u_charDigitValue(c)); in setDigitTags()
1181 if(value == Collation::UNASSIGNED_CE32) { in enumRangeLeadValue()
1182 value = Collation::LEAD_ALL_UNASSIGNED; in enumRangeLeadValue()
1183 } else if(value == Collation::FALLBACK_CE32) { in enumRangeLeadValue()
1184 value = Collation::LEAD_ALL_FALLBACK; in enumRangeLeadValue()
1186 *pValue = Collation::LEAD_MIXED; in enumRangeLeadValue()
1192 *pValue = Collation::LEAD_MIXED; in enumRangeLeadValue()
1207 Collation::makeCE32FromTagAndIndex(Collation::LEAD_SURROGATE_TAG, 0) | (uint32_t)value, in setLeadSurrogates()
1252 if(Collation::isSpecialCE32(jamoCE32s[i])) { in buildMappings()
1257 uint32_t hangulCE32 = Collation::makeCE32FromTagAndIndex(Collation::HANGUL_TAG, 0); in buildMappings()
1261 if(!isAnyJamoVTSpecial && !Collation::isSpecialCE32(jamoCE32s[i])) { in buildMappings()
1262 ce32 |= Collation::HANGUL_NO_SPECIAL_JAMO; in buildMappings()
1273 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::HANGUL_TAG)); in buildMappings()
1285 utrie2_set32(trie, 0, Collation::makeCE32FromTagAndIndex(Collation::U0000_TAG, 0), &errorCode); in buildMappings()
1326 getConditionalCE32ForCE32(ce32)->builtCE32 = Collation::NO_CE32; in clearContexts()
1394 flags |= Collation::CONTRACT_SINGLE_CP_NO_MATCH; in buildContext()
1404 if(cond->defaultCE32 != Collation::NO_CE32 && in buildContext()
1414 flags |= Collation::CONTRACT_NEXT_CCC; in buildContext()
1420 flags &= ~Collation::CONTRACT_NEXT_CCC; in buildContext()
1425 flags |= Collation::CONTRACT_TRAILING_CCC; in buildContext()
1433 if(index > Collation::MAX_INDEX) { in buildContext()
1437 ce32 = Collation::makeCE32FromTagAndIndex(Collation::CONTRACTION_TAG, index) | flags; in buildContext()
1453 U_ASSERT(head->defaultCE32 != Collation::NO_CE32); in buildContext()
1456 if(index > Collation::MAX_INDEX) { in buildContext()
1460 return Collation::makeCE32FromTagAndIndex(Collation::PREFIX_TAG, index); in buildContext()