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()
857 return ce32; in copyFromBaseCE32()
861 CollationDataBuilder::copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, in copyContractionsFromBaseCE32() argument
864 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyContractionsFromBaseCE32()
866 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in copyContractionsFromBaseCE32()
873 ce32 = CollationData::readCE32(p); // Default if no suffix match. in copyContractionsFromBaseCE32()
874 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
875 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyContractionsFromBaseCE32()
876 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
885 ce32 = copyFromBaseCE32(c, (uint32_t)suffixes.getValue(), TRUE, errorCode); in copyContractionsFromBaseCE32()
886 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
904 UBool copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) { in copyRangeCE32() argument
905 ce32 = copyCE32(ce32); in copyRangeCE32()
906 utrie2_setRange32(dest.trie, start, end, ce32, TRUE, &errorCode); in copyRangeCE32()
907 if(CollationDataBuilder::isBuilderContextCE32(ce32)) { in copyRangeCE32()
913 uint32_t copyCE32(uint32_t ce32) { in copyCE32() argument
914 if(!Collation::isSpecialCE32(ce32)) { in copyCE32()
915 int64_t ce = modifier.modifyCE32(ce32); in copyCE32()
917 ce32 = dest.encodeOneCE(ce, errorCode); in copyCE32()
920 int32_t tag = Collation::tagFromCE32(ce32); in copyCE32()
923 srcCE32s += Collation::indexFromCE32(ce32); in copyCE32()
924 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
929 ce32 = srcCE32s[i]; in copyCE32()
931 if(Collation::isSpecialCE32(ce32) || in copyCE32()
932 (ce = modifier.modifyCE32(ce32)) == Collation::NO_CE) { in copyCE32()
934 modifiedCEs[i] = Collation::ceFromCE32(ce32); in copyCE32()
947 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
949 ce32 = dest.encodeExpansion32( in copyCE32()
954 srcCEs += Collation::indexFromCE32(ce32); in copyCE32()
955 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
977 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
979 ce32 = dest.encodeExpansion(srcCEs, length, errorCode); in copyCE32()
983 ConditionalCE32 *cond = src.getConditionalCE32ForCE32(ce32); in copyCE32()
986 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
987 ce32 = CollationDataBuilder::makeBuilderContextCE32(destIndex); in copyCE32()
992 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
1006 return ce32; in copyCE32()
1050 uint32_t ce32 = utrie2_get32(trie, c); in optimize() local
1051 if(ce32 == Collation::FALLBACK_CE32) { in optimize()
1052 ce32 = base->getFinalCE32(base->getCE32(c)); in optimize()
1053 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in optimize()
1054 utrie2_set32(trie, c, ce32, &errorCode); in optimize()
1066 uint32_t ce32 = utrie2_get32(trie, c); in suppressContractions() local
1067 if(ce32 == Collation::FALLBACK_CE32) { in suppressContractions()
1068 ce32 = base->getFinalCE32(base->getCE32(c)); in suppressContractions()
1069 if(Collation::ce32HasContext(ce32)) { in suppressContractions()
1070 ce32 = copyFromBaseCE32(c, ce32, FALSE /* without context */, errorCode); in suppressContractions()
1071 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1073 } else if(isBuilderContextCE32(ce32)) { in suppressContractions()
1074 ce32 = getConditionalCE32ForCE32(ce32)->ce32; in suppressContractions()
1078 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1093 uint32_t ce32 = utrie2_get32(trie, jamo); in getJamoCE32s() local
1094 anyJamoAssigned |= Collation::isAssignedCE32(ce32); in getJamoCE32s()
1097 if(ce32 == Collation::FALLBACK_CE32) { in getJamoCE32s()
1099 ce32 = base->getCE32(jamo); in getJamoCE32s()
1101 if(Collation::isSpecialCE32(ce32)) { in getJamoCE32s()
1102 switch(Collation::tagFromCE32(ce32)) { in getJamoCE32s()
1114 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1121 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1125 ce32 = getCE32FromOffsetCE32(fromBase, jamo, ce32); in getJamoCE32s()
1138 jamoCE32s[j] = ce32; in getJamoCE32s()
1160 uint32_t ce32 = utrie2_get32(trie, c); in setDigitTags() local
1161 if(ce32 != Collation::FALLBACK_CE32 && ce32 != Collation::UNASSIGNED_CE32) { in setDigitTags()
1162 int32_t index = addCE32(ce32, errorCode); in setDigitTags()
1168 ce32 = Collation::makeCE32FromTagIndexAndLength( in setDigitTags()
1170 utrie2_set32(trie, c, ce32, &errorCode); in setDigitTags()
1259 uint32_t ce32 = hangulCE32; in buildMappings() local
1261 ce32 |= Collation::HANGUL_NO_SPECIAL_JAMO; in buildMappings()
1264 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1271 uint32_t ce32 = base->getCE32(c); in buildMappings() local
1272 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::HANGUL_TAG)); in buildMappings()
1274 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1323 uint32_t ce32 = utrie2_get32(trie, iter.getCodepoint()); in clearContexts() local
1324 U_ASSERT(isBuilderContextCE32(ce32)); in clearContexts()
1325 getConditionalCE32ForCE32(ce32)->builtCE32 = Collation::NO_CE32; in clearContexts()
1339 uint32_t ce32 = utrie2_get32(trie, c); in buildContexts() local
1340 if(!isBuilderContextCE32(ce32)) { in buildContexts()
1345 ConditionalCE32 *cond = getConditionalCE32ForCE32(ce32); in buildContexts()
1346 ce32 = buildContext(cond, errorCode); in buildContexts()
1347 utrie2_set32(trie, c, ce32, &errorCode); in buildContexts()
1372 uint32_t ce32; in buildContext() local
1377 ce32 = lastCond->ce32; in buildContext()
1388 emptySuffixCE32 = firstCond->ce32; in buildContext()
1426 contractionBuilder.add(suffix, (int32_t)cond->ce32, errorCode); in buildContext()
1436 ce32 = Collation::makeCE32FromTagAndIndex(Collation::CONTRACTION_TAG, index) | flags; in buildContext()
1439 firstCond->defaultCE32 = ce32; in buildContext()
1443 return ce32; in buildContext()
1448 prefixBuilder.add(prefix, (int32_t)ce32, errorCode); in buildContext()