• Home
  • Raw
  • Download

Lines Matching refs:ce32

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()
77 uint32_t ce32; member
145 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode);
187 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local
189 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
191 ce32 = builder.base->getCE32(c); in fetchCEs()
195 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); in fetchCEs()
257 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument
258 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
259 if((ce32 & CollationDataBuilder::IS_BUILDER_JAMO_CE32) != 0) { in getCE32FromBuilderData()
260 UChar32 jamo = Collation::indexFromCE32(ce32); in getCE32FromBuilderData()
263 ConditionalCE32 *cond = builder.getConditionalCE32ForCE32(ce32); in getCE32FromBuilderData()
397 CollationDataBuilder::getCE32FromOffsetCE32(UBool fromBase, UChar32 c, uint32_t ce32) const { in getCE32FromOffsetCE32()
398 int32_t i = Collation::indexFromCE32(ce32); in getCE32FromOffsetCE32()
416 uint32_t ce32 = utrie2_get32(trie, c); in getLongPrimaryIfSingleCE() local
417 if(Collation::isLongPrimaryCE32(ce32)) { in getLongPrimaryIfSingleCE()
418 return Collation::primaryFromLongPrimaryCE32(ce32); in getLongPrimaryIfSingleCE()
429 uint32_t ce32 = utrie2_get32(trie, c); in getSingleCE() local
430 if(ce32 == Collation::FALLBACK_CE32) { in getSingleCE()
432 ce32 = base->getCE32(c); in getSingleCE()
434 while(Collation::isSpecialCE32(ce32)) { in getSingleCE()
435 switch(Collation::tagFromCE32(ce32)) { in getSingleCE()
449 return Collation::ceFromLongPrimaryCE32(ce32); in getSingleCE()
451 return Collation::ceFromLongSecondaryCE32(ce32); in getSingleCE()
453 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
454 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
455 ce32 = fromBase ? base->ce32s[i] : ce32s.elementAti(i); in getSingleCE()
462 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
463 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
472 ce32 = ce32s.elementAti(Collation::indexFromCE32(ce32)); in getSingleCE()
477 ce32 = fromBase ? base->ce32s[0] : ce32s.elementAti(0); in getSingleCE()
480 ce32 = getCE32FromOffsetCE32(fromBase, c, ce32); in getSingleCE()
486 return Collation::ceFromSimpleCE32(ce32); in getSingleCE()
500 CollationDataBuilder::addCE32(uint32_t ce32, UErrorCode &errorCode) { in addCE32() argument
503 if(ce32 == (uint32_t)ce32s.elementAti(i)) { return i; } in addCE32()
505 ce32s.addElement((int32_t)ce32, errorCode); in addCE32()
510 CollationDataBuilder::addConditionalCE32(const UnicodeString &context, uint32_t ce32, in addConditionalCE32() argument
519 ConditionalCE32 *cond = new ConditionalCE32(context, ce32); in addConditionalCE32()
532 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add() local
533 addCE32(prefix, s, ce32, errorCode); in add()
538 uint32_t ce32, UErrorCode &errorCode) { in addCE32() argument
567 utrie2_set32(trie, c, ce32, &errorCode); in addCE32()
571 cond->ce32 = ce32; in addCE32()
597 int32_t index = addConditionalCE32(context, ce32, errorCode); in addCE32()
606 int32_t index = addConditionalCE32(context, ce32, errorCode); in addCE32()
613 nextCond->ce32 = ce32; in addCE32()
644 uint32_t ce32 = encodeOneCEAsCE32(ce); in encodeOneCE() local
645 if(ce32 != Collation::NO_CE32) { return ce32; } in encodeOneCE()
696 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local
697 if(ce32 == Collation::NO_CE32) { break; } in encodeCEs()
698 newCE32s[i] = (int32_t)ce32; in encodeCEs()
771 CollationDataBuilder::copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, in copyFromBaseCE32() argument
774 if(!Collation::isSpecialCE32(ce32)) { return ce32; } in copyFromBaseCE32()
775 switch(Collation::tagFromCE32(ce32)) { in copyFromBaseCE32()
782 const uint32_t *baseCE32s = base->ce32s + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
783 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
784 ce32 = encodeExpansion32( in copyFromBaseCE32()
789 const int64_t *baseCEs = base->ces + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
790 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
791 ce32 = encodeExpansion(baseCEs, length, errorCode); in copyFromBaseCE32()
797 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
798 ce32 = CollationData::readCE32(p); // Default if no prefix match. in copyFromBaseCE32()
800 return copyFromBaseCE32(c, ce32, FALSE, errorCode); in copyFromBaseCE32()
805 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
806 index = copyContractionsFromBaseCE32(context, c, ce32, &head, errorCode); in copyFromBaseCE32()
808 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyFromBaseCE32()
809 head.next = index = addConditionalCE32(context, ce32, errorCode); in copyFromBaseCE32()
818 ce32 = (uint32_t)prefixes.getValue(); in copyFromBaseCE32()
819 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
820 index = copyContractionsFromBaseCE32(context, c, ce32, cond, errorCode); in copyFromBaseCE32()
822 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyFromBaseCE32()
823 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyFromBaseCE32()
828 ce32 = makeBuilderContextCE32(head.next); in copyFromBaseCE32()
834 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
835 ce32 = CollationData::readCE32(p); // Default if no suffix match. in copyFromBaseCE32()
836 return copyFromBaseCE32(c, ce32, FALSE, errorCode); in copyFromBaseCE32()
840 copyContractionsFromBaseCE32(context, c, ce32, &head, errorCode); in copyFromBaseCE32()
841 ce32 = makeBuilderContextCE32(head.next); in copyFromBaseCE32()
849 ce32 = getCE32FromOffsetCE32(TRUE, c, ce32); in copyFromBaseCE32()
852 ce32 = encodeOneCE(Collation::unassignedCEFromCodePoint(c), errorCode); in copyFromBaseCE32()
858 return ce32; in copyFromBaseCE32()
862 CollationDataBuilder::copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, in copyContractionsFromBaseCE32() argument
865 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyContractionsFromBaseCE32()
867 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in copyContractionsFromBaseCE32()
874 ce32 = CollationData::readCE32(p); // Default if no suffix match. in copyContractionsFromBaseCE32()
875 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
876 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyContractionsFromBaseCE32()
877 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
886 ce32 = copyFromBaseCE32(c, (uint32_t)suffixes.getValue(), TRUE, errorCode); in copyContractionsFromBaseCE32()
887 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
905 UBool copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) { in copyRangeCE32() argument
906 ce32 = copyCE32(ce32); in copyRangeCE32()
907 utrie2_setRange32(dest.trie, start, end, ce32, TRUE, &errorCode); in copyRangeCE32()
908 if(CollationDataBuilder::isBuilderContextCE32(ce32)) { in copyRangeCE32()
914 uint32_t copyCE32(uint32_t ce32) { in copyCE32() argument
915 if(!Collation::isSpecialCE32(ce32)) { in copyCE32()
916 int64_t ce = modifier.modifyCE32(ce32); in copyCE32()
918 ce32 = dest.encodeOneCE(ce, errorCode); in copyCE32()
921 int32_t tag = Collation::tagFromCE32(ce32); in copyCE32()
924 srcCE32s += Collation::indexFromCE32(ce32); in copyCE32()
925 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
930 ce32 = srcCE32s[i]; 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()
948 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
950 ce32 = dest.encodeExpansion32( in copyCE32()
955 srcCEs += Collation::indexFromCE32(ce32); in copyCE32()
956 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
978 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
980 ce32 = dest.encodeExpansion(srcCEs, length, errorCode); in copyCE32()
984 ConditionalCE32 *cond = src.getConditionalCE32ForCE32(ce32); in copyCE32()
987 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
988 ce32 = CollationDataBuilder::makeBuilderContextCE32(destIndex); in copyCE32()
993 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
1007 return ce32; in copyCE32()
1051 uint32_t ce32 = utrie2_get32(trie, c); in optimize() local
1052 if(ce32 == Collation::FALLBACK_CE32) { in optimize()
1053 ce32 = base->getFinalCE32(base->getCE32(c)); in optimize()
1054 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in optimize()
1055 utrie2_set32(trie, c, ce32, &errorCode); in optimize()
1067 uint32_t ce32 = utrie2_get32(trie, c); in suppressContractions() local
1068 if(ce32 == Collation::FALLBACK_CE32) { in suppressContractions()
1069 ce32 = base->getFinalCE32(base->getCE32(c)); in suppressContractions()
1070 if(Collation::ce32HasContext(ce32)) { in suppressContractions()
1071 ce32 = copyFromBaseCE32(c, ce32, FALSE /* without context */, errorCode); in suppressContractions()
1072 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1074 } else if(isBuilderContextCE32(ce32)) { in suppressContractions()
1075 ce32 = getConditionalCE32ForCE32(ce32)->ce32; in suppressContractions()
1079 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1094 uint32_t ce32 = utrie2_get32(trie, jamo); in getJamoCE32s() local
1095 anyJamoAssigned |= Collation::isAssignedCE32(ce32); in getJamoCE32s()
1098 if(ce32 == Collation::FALLBACK_CE32) { in getJamoCE32s()
1100 ce32 = base->getCE32(jamo); in getJamoCE32s()
1102 if(Collation::isSpecialCE32(ce32)) { in getJamoCE32s()
1103 switch(Collation::tagFromCE32(ce32)) { in getJamoCE32s()
1115 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1122 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1126 ce32 = getCE32FromOffsetCE32(fromBase, jamo, ce32); in getJamoCE32s()
1139 jamoCE32s[j] = ce32; in getJamoCE32s()
1161 uint32_t ce32 = utrie2_get32(trie, c); in setDigitTags() local
1162 if(ce32 != Collation::FALLBACK_CE32 && ce32 != Collation::UNASSIGNED_CE32) { in setDigitTags()
1163 int32_t index = addCE32(ce32, errorCode); in setDigitTags()
1169 ce32 = Collation::makeCE32FromTagIndexAndLength( in setDigitTags()
1171 utrie2_set32(trie, c, ce32, &errorCode); in setDigitTags()
1260 uint32_t ce32 = hangulCE32; in buildMappings() local
1262 ce32 |= Collation::HANGUL_NO_SPECIAL_JAMO; in buildMappings()
1265 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1272 uint32_t ce32 = base->getCE32(c); in buildMappings() local
1273 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::HANGUL_TAG)); in buildMappings()
1275 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1324 uint32_t ce32 = utrie2_get32(trie, iter.getCodepoint()); in clearContexts() local
1325 U_ASSERT(isBuilderContextCE32(ce32)); in clearContexts()
1326 getConditionalCE32ForCE32(ce32)->builtCE32 = Collation::NO_CE32; in clearContexts()
1340 uint32_t ce32 = utrie2_get32(trie, c); in buildContexts() local
1341 if(!isBuilderContextCE32(ce32)) { in buildContexts()
1346 ConditionalCE32 *cond = getConditionalCE32ForCE32(ce32); in buildContexts()
1347 ce32 = buildContext(cond, errorCode); in buildContexts()
1348 utrie2_set32(trie, c, ce32, &errorCode); in buildContexts()
1373 uint32_t ce32; in buildContext() local
1378 ce32 = lastCond->ce32; in buildContext()
1389 emptySuffixCE32 = firstCond->ce32; in buildContext()
1427 contractionBuilder.add(suffix, (int32_t)cond->ce32, errorCode); in buildContext()
1437 ce32 = Collation::makeCE32FromTagAndIndex(Collation::CONTRACTION_TAG, index) | flags; in buildContext()
1440 firstCond->defaultCE32 = ce32; in buildContext()
1444 return ce32; in buildContext()
1449 prefixBuilder.add(prefix, (int32_t)ce32, errorCode); in buildContext()