Searched refs:LocaleDistance (Results 1 – 12 of 12) sorted by relevance
25 class LocaleDistance final : public UMemory {27 static const LocaleDistance *getSingleton(UErrorCode &errorCode);54 LocaleDistance(const LocaleDistanceData &data);55 LocaleDistance(const LocaleDistance &other) = delete;56 LocaleDistance &operator=(const LocaleDistance &other) = delete;
47 LocaleDistance *gLocaleDistance = nullptr;59 void U_CALLCONV LocaleDistance::initLocaleDistance(UErrorCode &errorCode) { in initLocaleDistance()72 gLocaleDistance = new LocaleDistance(data); in initLocaleDistance()80 const LocaleDistance *LocaleDistance::getSingleton(UErrorCode &errorCode) { in getSingleton()82 umtx_initOnce(gInitOnce, &LocaleDistance::initLocaleDistance, errorCode); in getSingleton()86 LocaleDistance::LocaleDistance(const LocaleDistanceData &data) : in LocaleDistance() function in LocaleDistance107 int32_t LocaleDistance::getBestIndexAndDistance( in getBestIndexAndDistance()210 int32_t LocaleDistance::getDesSuppScriptDistance( in getDesSuppScriptDistance()233 int32_t LocaleDistance::getRegionPartitionsDistance( in getRegionPartitionsDistance()307 int32_t LocaleDistance::getFallbackRegionDistance(BytesTrie &iter, uint64_t startState) { in getFallbackRegionDistance()[all …]
327 localeDistance(*LocaleDistance::getSingleton(errorCode)), in LocaleMatcher()
16 import com.ibm.icu.impl.locale.LocaleDistance;32 private LocaleDistance localeDistance = LocaleDistance.INSTANCE;53 LocaleDistance.Data built = LocaleDistanceBuilder.build(); in testLoadedDataSameAsBuiltFromScratch()54 LocaleDistance.Data loaded = LocaleDistance.Data.load(); in testLoadedDataSameAsBuiltFromScratch()
17 import android.icu.impl.locale.LocaleDistance;35 private LocaleDistance localeDistance = LocaleDistance.INSTANCE;56 LocaleDistance.Data built = LocaleDistanceBuilder.build(); in testLoadedDataSameAsBuiltFromScratch()57 LocaleDistance.Data loaded = LocaleDistance.Data.load(); in testLoadedDataSameAsBuiltFromScratch()
29 import android.icu.impl.locale.LocaleDistance;159 bytes[length++] = (byte) (c | LocaleDistance.END_OF_SUBTAG); in addSubtag()363 if (next.nodeDistance == distances[LocaleDistance.IX_DEF_SCRIPT_DISTANCE]) { in prune()367 nodeDistance |= LocaleDistance.DISTANCE_SKIP_SCRIPT; in prune()372 if (next.nodeDistance == distances[LocaleDistance.IX_DEF_REGION_DISTANCE]) { in prune()405 if (nodeDistance >= 0 && (nodeDistance & LocaleDistance.DISTANCE_SKIP_SCRIPT) != 0) { in toTrie()484 public static LocaleDistance.Data build() { in build()592 int[] distances = new int[LocaleDistance.IX_LIMIT]; in build()594 distances[LocaleDistance.IX_DEF_LANG_DISTANCE] = node.nodeDistance; in build()596 distances[LocaleDistance.IX_DEF_SCRIPT_DISTANCE] = node.nodeDistance; in build()[all …]
28 import com.ibm.icu.impl.locale.LocaleDistance;156 bytes[length++] = (byte) (c | LocaleDistance.END_OF_SUBTAG); in addSubtag()360 if (next.nodeDistance == distances[LocaleDistance.IX_DEF_SCRIPT_DISTANCE]) { in prune()364 nodeDistance |= LocaleDistance.DISTANCE_SKIP_SCRIPT; in prune()369 if (next.nodeDistance == distances[LocaleDistance.IX_DEF_REGION_DISTANCE]) { in prune()402 if (nodeDistance >= 0 && (nodeDistance & LocaleDistance.DISTANCE_SKIP_SCRIPT) != 0) { in toTrie()481 public static LocaleDistance.Data build() { in build()589 int[] distances = new int[LocaleDistance.IX_LIMIT]; in build()591 distances[LocaleDistance.IX_DEF_LANG_DISTANCE] = node.nodeDistance; in build()593 distances[LocaleDistance.IX_DEF_SCRIPT_DISTANCE] = node.nodeDistance; in build()[all …]
22 import android.icu.impl.locale.LocaleDistance;556 LocaleDistance.INSTANCE.getDefaultScriptDistance() : builder.thresholdDistance; in LocaleMatcher()629 } else if (LocaleDistance.INSTANCE.isParadigmLSR(lsr)) { in LocaleMatcher()656 LocaleDistance.INSTANCE.getDefaultDemotionPerDesiredLocale(); // null or REGION in LocaleMatcher()919 int bestIndexAndDistance = LocaleDistance.INSTANCE.getBestIndexAndDistance( in getBestSuppIndex()969 int distance = LocaleDistance.INSTANCE.getBestIndexAndDistance( in match()
21 import com.ibm.icu.impl.locale.LocaleDistance;581 LocaleDistance.INSTANCE.getDefaultScriptDistance() : builder.thresholdDistance; in LocaleMatcher()654 } else if (LocaleDistance.INSTANCE.isParadigmLSR(lsr)) { in LocaleMatcher()681 LocaleDistance.INSTANCE.getDefaultDemotionPerDesiredLocale(); // null or REGION in LocaleMatcher()953 int bestIndexAndDistance = LocaleDistance.INSTANCE.getBestIndexAndDistance( in getBestSuppIndex()1003 int distance = LocaleDistance.INSTANCE.getBestIndexAndDistance( in match()
25 public class LocaleDistance { class153 public static final LocaleDistance INSTANCE = new LocaleDistance(Data.load());155 private LocaleDistance(Data data) { in LocaleDistance() method in LocaleDistance
27 public class LocaleDistance { class158 public static final LocaleDistance INSTANCE = new LocaleDistance(Data.load());160 private LocaleDistance(Data data) { in LocaleDistance() method in LocaleDistance
102 class LocaleDistance; variable580 const LocaleDistance &localeDistance;