Lines Matching refs:ce32

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()
75 uint32_t ce32; member
143 virtual uint32_t getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode);
185 uint32_t ce32 = utrie2_get32(builder.trie, c); in fetchCEs() local
187 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
189 ce32 = builder.base->getCE32(c); in fetchCEs()
193 appendCEsFromCE32(d, c, ce32, /*forward=*/ TRUE, errorCode); in fetchCEs()
255 DataBuilderCollationIterator::getCE32FromBuilderData(uint32_t ce32, UErrorCode &errorCode) { in getCE32FromBuilderData() argument
256 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
257 if((ce32 & CollationDataBuilder::IS_BUILDER_JAMO_CE32) != 0) { in getCE32FromBuilderData()
258 UChar32 jamo = Collation::indexFromCE32(ce32); in getCE32FromBuilderData()
261 ConditionalCE32 *cond = builder.getConditionalCE32ForCE32(ce32); in getCE32FromBuilderData()
395 CollationDataBuilder::getCE32FromOffsetCE32(UBool fromBase, UChar32 c, uint32_t ce32) const { in getCE32FromOffsetCE32()
396 int32_t i = Collation::indexFromCE32(ce32); in getCE32FromOffsetCE32()
414 uint32_t ce32 = utrie2_get32(trie, c); in getLongPrimaryIfSingleCE() local
415 if(Collation::isLongPrimaryCE32(ce32)) { in getLongPrimaryIfSingleCE()
416 return Collation::primaryFromLongPrimaryCE32(ce32); in getLongPrimaryIfSingleCE()
427 uint32_t ce32 = utrie2_get32(trie, c); in getSingleCE() local
428 if(ce32 == Collation::FALLBACK_CE32) { in getSingleCE()
430 ce32 = base->getCE32(c); in getSingleCE()
432 while(Collation::isSpecialCE32(ce32)) { in getSingleCE()
433 switch(Collation::tagFromCE32(ce32)) { in getSingleCE()
447 return Collation::ceFromLongPrimaryCE32(ce32); in getSingleCE()
449 return Collation::ceFromLongSecondaryCE32(ce32); in getSingleCE()
451 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
452 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
453 ce32 = fromBase ? base->ce32s[i] : ce32s.elementAti(i); in getSingleCE()
460 if(Collation::lengthFromCE32(ce32) == 1) { in getSingleCE()
461 int32_t i = Collation::indexFromCE32(ce32); in getSingleCE()
470 ce32 = ce32s.elementAti(Collation::indexFromCE32(ce32)); in getSingleCE()
475 ce32 = fromBase ? base->ce32s[0] : ce32s.elementAti(0); in getSingleCE()
478 ce32 = getCE32FromOffsetCE32(fromBase, c, ce32); in getSingleCE()
484 return Collation::ceFromSimpleCE32(ce32); in getSingleCE()
498 CollationDataBuilder::addCE32(uint32_t ce32, UErrorCode &errorCode) { in addCE32() argument
501 if(ce32 == (uint32_t)ce32s.elementAti(i)) { return i; } in addCE32()
503 ce32s.addElement((int32_t)ce32, errorCode); in addCE32()
508 CollationDataBuilder::addConditionalCE32(const UnicodeString &context, uint32_t ce32, in addConditionalCE32() argument
517 ConditionalCE32 *cond = new ConditionalCE32(context, ce32); in addConditionalCE32()
530 uint32_t ce32 = encodeCEs(ces, cesLength, errorCode); in add() local
531 addCE32(prefix, s, ce32, errorCode); in add()
536 uint32_t ce32, UErrorCode &errorCode) { in addCE32() argument
565 utrie2_set32(trie, c, ce32, &errorCode); in addCE32()
569 cond->ce32 = ce32; in addCE32()
595 int32_t index = addConditionalCE32(context, ce32, errorCode); in addCE32()
604 int32_t index = addConditionalCE32(context, ce32, errorCode); in addCE32()
611 nextCond->ce32 = ce32; in addCE32()
642 uint32_t ce32 = encodeOneCEAsCE32(ce); in encodeOneCE() local
643 if(ce32 != Collation::NO_CE32) { return ce32; } in encodeOneCE()
694 uint32_t ce32 = encodeOneCEAsCE32(ces[i]); in encodeCEs() local
695 if(ce32 == Collation::NO_CE32) { break; } in encodeCEs()
696 newCE32s[i] = (int32_t)ce32; in encodeCEs()
769 CollationDataBuilder::copyFromBaseCE32(UChar32 c, uint32_t ce32, UBool withContext, in copyFromBaseCE32() argument
772 if(!Collation::isSpecialCE32(ce32)) { return ce32; } in copyFromBaseCE32()
773 switch(Collation::tagFromCE32(ce32)) { in copyFromBaseCE32()
780 const uint32_t *baseCE32s = base->ce32s + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
781 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
782 ce32 = encodeExpansion32( in copyFromBaseCE32()
787 const int64_t *baseCEs = base->ces + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
788 int32_t length = Collation::lengthFromCE32(ce32); in copyFromBaseCE32()
789 ce32 = encodeExpansion(baseCEs, length, errorCode); in copyFromBaseCE32()
795 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
796 ce32 = CollationData::readCE32(p); // Default if no prefix match. in copyFromBaseCE32()
798 return copyFromBaseCE32(c, ce32, FALSE, errorCode); in copyFromBaseCE32()
803 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
804 index = copyContractionsFromBaseCE32(context, c, ce32, &head, errorCode); in copyFromBaseCE32()
806 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyFromBaseCE32()
807 head.next = index = addConditionalCE32(context, ce32, errorCode); in copyFromBaseCE32()
816 ce32 = (uint32_t)prefixes.getValue(); in copyFromBaseCE32()
817 if(Collation::isContractionCE32(ce32)) { in copyFromBaseCE32()
818 index = copyContractionsFromBaseCE32(context, c, ce32, cond, errorCode); in copyFromBaseCE32()
820 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyFromBaseCE32()
821 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyFromBaseCE32()
826 ce32 = makeBuilderContextCE32(head.next); in copyFromBaseCE32()
832 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyFromBaseCE32()
833 ce32 = CollationData::readCE32(p); // Default if no suffix match. in copyFromBaseCE32()
834 return copyFromBaseCE32(c, ce32, FALSE, errorCode); in copyFromBaseCE32()
838 copyContractionsFromBaseCE32(context, c, ce32, &head, errorCode); in copyFromBaseCE32()
839 ce32 = makeBuilderContextCE32(head.next); in copyFromBaseCE32()
847 ce32 = getCE32FromOffsetCE32(TRUE, c, ce32); in copyFromBaseCE32()
850 ce32 = encodeOneCE(Collation::unassignedCEFromCodePoint(c), errorCode); in copyFromBaseCE32()
856 return ce32; in copyFromBaseCE32()
860 CollationDataBuilder::copyContractionsFromBaseCE32(UnicodeString &context, UChar32 c, uint32_t ce32, in copyContractionsFromBaseCE32() argument
863 const UChar *p = base->contexts + Collation::indexFromCE32(ce32); in copyContractionsFromBaseCE32()
865 if((ce32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) != 0) { in copyContractionsFromBaseCE32()
872 ce32 = CollationData::readCE32(p); // Default if no suffix match. in copyContractionsFromBaseCE32()
873 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
874 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in copyContractionsFromBaseCE32()
875 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
884 ce32 = copyFromBaseCE32(c, (uint32_t)suffixes.getValue(), TRUE, errorCode); in copyContractionsFromBaseCE32()
885 cond->next = index = addConditionalCE32(context, ce32, errorCode); in copyContractionsFromBaseCE32()
903 UBool copyRangeCE32(UChar32 start, UChar32 end, uint32_t ce32) { in copyRangeCE32() argument
904 ce32 = copyCE32(ce32); in copyRangeCE32()
905 utrie2_setRange32(dest.trie, start, end, ce32, TRUE, &errorCode); in copyRangeCE32()
906 if(CollationDataBuilder::isBuilderContextCE32(ce32)) { in copyRangeCE32()
912 uint32_t copyCE32(uint32_t ce32) { in copyCE32() argument
913 if(!Collation::isSpecialCE32(ce32)) { in copyCE32()
914 int64_t ce = modifier.modifyCE32(ce32); in copyCE32()
916 ce32 = dest.encodeOneCE(ce, errorCode); in copyCE32()
919 int32_t tag = Collation::tagFromCE32(ce32); in copyCE32()
922 srcCE32s += Collation::indexFromCE32(ce32); in copyCE32()
923 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
928 ce32 = srcCE32s[i]; 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()
946 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
948 ce32 = dest.encodeExpansion32( in copyCE32()
953 srcCEs += Collation::indexFromCE32(ce32); in copyCE32()
954 int32_t length = Collation::lengthFromCE32(ce32); in copyCE32()
976 ce32 = dest.encodeCEs(modifiedCEs, length, errorCode); in copyCE32()
978 ce32 = dest.encodeExpansion(srcCEs, length, errorCode); in copyCE32()
982 ConditionalCE32 *cond = src.getConditionalCE32ForCE32(ce32); in copyCE32()
985 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
986 ce32 = CollationDataBuilder::makeBuilderContextCE32(destIndex); in copyCE32()
991 cond->context, copyCE32(cond->ce32), errorCode); in copyCE32()
1005 return ce32; in copyCE32()
1049 uint32_t ce32 = utrie2_get32(trie, c); in optimize() local
1050 if(ce32 == Collation::FALLBACK_CE32) { in optimize()
1051 ce32 = base->getFinalCE32(base->getCE32(c)); in optimize()
1052 ce32 = copyFromBaseCE32(c, ce32, TRUE, errorCode); in optimize()
1053 utrie2_set32(trie, c, ce32, &errorCode); in optimize()
1065 uint32_t ce32 = utrie2_get32(trie, c); in suppressContractions() local
1066 if(ce32 == Collation::FALLBACK_CE32) { in suppressContractions()
1067 ce32 = base->getFinalCE32(base->getCE32(c)); in suppressContractions()
1068 if(Collation::ce32HasContext(ce32)) { in suppressContractions()
1069 ce32 = copyFromBaseCE32(c, ce32, FALSE /* without context */, errorCode); in suppressContractions()
1070 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1072 } else if(isBuilderContextCE32(ce32)) { in suppressContractions()
1073 ce32 = getConditionalCE32ForCE32(ce32)->ce32; in suppressContractions()
1077 utrie2_set32(trie, c, ce32, &errorCode); in suppressContractions()
1092 uint32_t ce32 = utrie2_get32(trie, jamo); in getJamoCE32s() local
1093 anyJamoAssigned |= Collation::isAssignedCE32(ce32); in getJamoCE32s()
1096 if(ce32 == Collation::FALLBACK_CE32) { in getJamoCE32s()
1098 ce32 = base->getCE32(jamo); in getJamoCE32s()
1100 if(Collation::isSpecialCE32(ce32)) { in getJamoCE32s()
1101 switch(Collation::tagFromCE32(ce32)) { in getJamoCE32s()
1113 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1120 ce32 = Collation::FALLBACK_CE32; in getJamoCE32s()
1124 ce32 = getCE32FromOffsetCE32(fromBase, jamo, ce32); in getJamoCE32s()
1137 jamoCE32s[j] = ce32; in getJamoCE32s()
1159 uint32_t ce32 = utrie2_get32(trie, c); in setDigitTags() local
1160 if(ce32 != Collation::FALLBACK_CE32 && ce32 != Collation::UNASSIGNED_CE32) { in setDigitTags()
1161 int32_t index = addCE32(ce32, errorCode); in setDigitTags()
1167 ce32 = Collation::makeCE32FromTagIndexAndLength( in setDigitTags()
1169 utrie2_set32(trie, c, ce32, &errorCode); in setDigitTags()
1258 uint32_t ce32 = hangulCE32; in buildMappings() local
1260 ce32 |= Collation::HANGUL_NO_SPECIAL_JAMO; in buildMappings()
1263 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1270 uint32_t ce32 = base->getCE32(c); in buildMappings() local
1271 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::HANGUL_TAG)); in buildMappings()
1273 utrie2_setRange32(trie, c, limit - 1, ce32, TRUE, &errorCode); in buildMappings()
1322 uint32_t ce32 = utrie2_get32(trie, iter.getCodepoint()); in clearContexts() local
1323 U_ASSERT(isBuilderContextCE32(ce32)); in clearContexts()
1324 getConditionalCE32ForCE32(ce32)->builtCE32 = Collation::NO_CE32; in clearContexts()
1338 uint32_t ce32 = utrie2_get32(trie, c); in buildContexts() local
1339 if(!isBuilderContextCE32(ce32)) { in buildContexts()
1344 ConditionalCE32 *cond = getConditionalCE32ForCE32(ce32); in buildContexts()
1345 ce32 = buildContext(cond, errorCode); in buildContexts()
1346 utrie2_set32(trie, c, ce32, &errorCode); in buildContexts()
1371 uint32_t ce32; in buildContext() local
1376 ce32 = lastCond->ce32; in buildContext()
1387 emptySuffixCE32 = firstCond->ce32; in buildContext()
1425 contractionBuilder.add(suffix, (int32_t)cond->ce32, errorCode); in buildContext()
1435 ce32 = Collation::makeCE32FromTagAndIndex(Collation::CONTRACTION_TAG, index) | flags; in buildContext()
1438 firstCond->defaultCE32 = ce32; in buildContext()
1442 return ce32; in buildContext()
1447 prefixBuilder.add(prefix, (int32_t)ce32, errorCode); in buildContext()