Home
last modified time | relevance | path

Searched refs:LocaleDistance (Results 1 – 12 of 12) sorted by relevance

/external/icu/icu4c/source/common/
Dlocdistance.h25 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;
Dlocdistance.cpp47 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 LocaleDistance
107 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 …]
Dlocalematcher.cpp327 localeDistance(*LocaleDistance::getSingleton(errorCode)), in LocaleMatcher()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleDistanceTest.java16 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()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleDistanceTest.java17 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()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/tool/locale/
DLocaleDistanceBuilder.java29 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 …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLocaleDistanceBuilder.java28 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 …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocaleMatcher.java22 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()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java21 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()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleDistance.java25 public class LocaleDistance { class
153 public static final LocaleDistance INSTANCE = new LocaleDistance(Data.load());
155 private LocaleDistance(Data data) { in LocaleDistance() method in LocaleDistance
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleDistance.java27 public class LocaleDistance { class
158 public static final LocaleDistance INSTANCE = new LocaleDistance(Data.load());
160 private LocaleDistance(Data data) { in LocaleDistance() method in LocaleDistance
/external/icu/icu4c/source/common/unicode/
Dlocalematcher.h102 class LocaleDistance; variable
580 const LocaleDistance &localeDistance;