Home
last modified time | relevance | path

Searched refs:LocaleMatcher (Results 1 – 25 of 32) sorted by relevance

12

/third_party/icu/icu4c/source/common/
Dlocalematcher.cpp54 LocaleMatcher::Result::Result(LocaleMatcher::Result &&src) U_NOEXCEPT : in Result()
67 LocaleMatcher::Result::~Result() { in ~Result()
73 LocaleMatcher::Result &LocaleMatcher::Result::operator=(LocaleMatcher::Result &&src) U_NOEXCEPT { in operator =()
90 Locale LocaleMatcher::Result::makeResolvedLocale(UErrorCode &errorCode) const { in makeResolvedLocale()
125 LocaleMatcher::Builder::Builder(LocaleMatcher::Builder &&src) U_NOEXCEPT : in Builder()
138 LocaleMatcher::Builder::~Builder() { in ~Builder()
145 LocaleMatcher::Builder &LocaleMatcher::Builder::operator=(LocaleMatcher::Builder &&src) U_NOEXCEPT { in operator =()
162 void LocaleMatcher::Builder::clearSupportedLocales() { in clearSupportedLocales()
168 bool LocaleMatcher::Builder::ensureSupportedLocaleVector() { in ensureSupportedLocaleVector()
180 LocaleMatcher::Builder &LocaleMatcher::Builder::setSupportedLocalesFromListString( in setSupportedLocalesFromListString()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocalematcher.cpp54 LocaleMatcher::Result::Result(LocaleMatcher::Result &&src) U_NOEXCEPT : in Result()
67 LocaleMatcher::Result::~Result() { in ~Result()
73 LocaleMatcher::Result &LocaleMatcher::Result::operator=(LocaleMatcher::Result &&src) U_NOEXCEPT { in operator =()
90 Locale LocaleMatcher::Result::makeResolvedLocale(UErrorCode &errorCode) const { in makeResolvedLocale()
125 LocaleMatcher::Builder::Builder(LocaleMatcher::Builder &&src) U_NOEXCEPT : in Builder()
138 LocaleMatcher::Builder::~Builder() { in ~Builder()
145 LocaleMatcher::Builder &LocaleMatcher::Builder::operator=(LocaleMatcher::Builder &&src) U_NOEXCEPT { in operator =()
162 void LocaleMatcher::Builder::clearSupportedLocales() { in clearSupportedLocales()
168 bool LocaleMatcher::Builder::ensureSupportedLocaleVector() { in ensureSupportedLocaleVector()
180 LocaleMatcher::Builder &LocaleMatcher::Builder::setSupportedLocalesFromListString( in setSupportedLocalesFromListString()
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocalematcher.cpp54 LocaleMatcher::Result::Result(LocaleMatcher::Result &&src) U_NOEXCEPT : in Result()
67 LocaleMatcher::Result::~Result() { in ~Result()
73 LocaleMatcher::Result &LocaleMatcher::Result::operator=(LocaleMatcher::Result &&src) U_NOEXCEPT { in operator =()
90 Locale LocaleMatcher::Result::makeResolvedLocale(UErrorCode &errorCode) const { in makeResolvedLocale()
125 LocaleMatcher::Builder::Builder(LocaleMatcher::Builder &&src) U_NOEXCEPT : in Builder()
138 LocaleMatcher::Builder::~Builder() { in ~Builder()
145 LocaleMatcher::Builder &LocaleMatcher::Builder::operator=(LocaleMatcher::Builder &&src) U_NOEXCEPT { in operator =()
162 void LocaleMatcher::Builder::clearSupportedLocales() { in clearSupportedLocales()
168 bool LocaleMatcher::Builder::ensureSupportedLocaleVector() { in ensureSupportedLocaleVector()
180 LocaleMatcher::Builder &LocaleMatcher::Builder::setSupportedLocalesFromListString( in setSupportedLocalesFromListString()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleMatcherTest.java31 import ohos.global.icu.util.LocaleMatcher;
32 import ohos.global.icu.util.LocaleMatcher.FavorSubtag;
51 private LocaleMatcher newLocaleMatcher(LocalePriorityList build) { in newLocaleMatcher()
52 return new LocaleMatcher(build); in newLocaleMatcher()
55 private LocaleMatcher newLocaleMatcher(String string) { in newLocaleMatcher()
56 return new LocaleMatcher(LocalePriorityList.add(string).build()); in newLocaleMatcher()
82 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
90 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese()
104 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB()
114 final LocaleMatcher matcher = newLocaleMatcher(lpl); in testFallbacks()
[all …]
DLocaleDistanceTest.java18 import ohos.global.icu.util.LocaleMatcher;
19 import ohos.global.icu.util.LocaleMatcher.FavorSubtag;
73 final LocaleMatcher oldLocaleMatcher = new LocaleMatcher(""); in testTiming()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java30 import com.ibm.icu.util.LocaleMatcher;
31 import com.ibm.icu.util.LocaleMatcher.FavorSubtag;
48 private LocaleMatcher newLocaleMatcher(LocalePriorityList build) { in newLocaleMatcher()
49 return new LocaleMatcher(build); in newLocaleMatcher()
52 private LocaleMatcher newLocaleMatcher(String string) { in newLocaleMatcher()
53 return new LocaleMatcher(LocalePriorityList.add(string).build()); in newLocaleMatcher()
79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser()
87 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese()
101 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB()
111 final LocaleMatcher matcher = newLocaleMatcher(lpl); in testFallbacks()
[all …]
DLocaleDistanceTest.java17 import com.ibm.icu.util.LocaleMatcher;
18 import com.ibm.icu.util.LocaleMatcher.FavorSubtag;
70 final LocaleMatcher oldLocaleMatcher = new LocaleMatcher(""); in testTiming()
/third_party/icu/icu4c/source/test/intltest/
Dlocalematchertest.cpp99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty()
102 LocaleMatcher::Result result = matcher.getBestMatchResult("fr", errorCode); in testEmpty()
115 LocaleMatcher::Builder builder; in testCopyErrorTo()
128 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
142 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
155 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
170 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
184 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
199 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
216 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics()
[all …]
/third_party/node/deps/icu-small/source/common/unicode/
Dlocalematcher.h184 class U_COMMON_API LocaleMatcher : public UMemory {
290 friend class LocaleMatcher; variable
520 LocaleMatcher build(UErrorCode &errorCode) const;
523 friend class LocaleMatcher;
551 LocaleMatcher(LocaleMatcher &&src) U_NOEXCEPT;
557 ~LocaleMatcher();
567 LocaleMatcher &operator=(LocaleMatcher &&src) U_NOEXCEPT;
675 LocaleMatcher(const Builder &builder, UErrorCode &errorCode);
676 LocaleMatcher(const LocaleMatcher &other) = delete;
677 LocaleMatcher &operator=(const LocaleMatcher &other) = delete;
Dlocalebuilder.h292 friend class LocaleMatcher::Result;
/third_party/icu/icu4c/source/common/unicode/
Dlocalematcher.h184 class U_COMMON_API LocaleMatcher : public UMemory {
290 friend class LocaleMatcher; variable
524 LocaleMatcher build(UErrorCode &errorCode) const;
527 friend class LocaleMatcher;
555 LocaleMatcher(LocaleMatcher &&src) U_NOEXCEPT;
561 ~LocaleMatcher();
571 LocaleMatcher &operator=(LocaleMatcher &&src) U_NOEXCEPT;
681 LocaleMatcher(const Builder &builder, UErrorCode &errorCode);
682 LocaleMatcher(const LocaleMatcher &other) = delete;
683 LocaleMatcher &operator=(const LocaleMatcher &other) = delete;
Dlocalebuilder.h294 friend class LocaleMatcher::Result;
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dlocalematcher.h184 class U_COMMON_API LocaleMatcher : public UMemory {
290 friend class LocaleMatcher; variable
524 LocaleMatcher build(UErrorCode &errorCode) const;
527 friend class LocaleMatcher;
555 LocaleMatcher(LocaleMatcher &&src) U_NOEXCEPT;
561 ~LocaleMatcher();
571 LocaleMatcher &operator=(LocaleMatcher &&src) U_NOEXCEPT;
681 LocaleMatcher(const Builder &builder, UErrorCode &errorCode);
682 LocaleMatcher(const LocaleMatcher &other) = delete;
683 LocaleMatcher &operator=(const LocaleMatcher &other) = delete;
Dlocalebuilder.h294 friend class LocaleMatcher::Result;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleDistance.java18 import com.ibm.icu.util.LocaleMatcher;
19 import com.ibm.icu.util.LocaleMatcher.FavorSubtag;
215 shiftDistance(50), FavorSubtag.LANGUAGE, LocaleMatcher.Direction.WITH_ONE_WAY); in LocaleDistance()
233 shiftDistance(threshold), favorSubtag, LocaleMatcher.Direction.WITH_ONE_WAY); in testOnlyDistance()
246 int shiftedThreshold, FavorSubtag favorSubtag, LocaleMatcher.Direction direction) { in getBestIndexAndDistance()
350 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
363 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
371 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLocaleDistance.java19 import ohos.global.icu.util.LocaleMatcher;
20 import ohos.global.icu.util.LocaleMatcher.FavorSubtag;
220 shiftDistance(50), FavorSubtag.LANGUAGE, LocaleMatcher.Direction.WITH_ONE_WAY); in LocaleDistance()
238 shiftDistance(threshold), favorSubtag, LocaleMatcher.Direction.WITH_ONE_WAY); in testOnlyDistance()
251 int shiftedThreshold, FavorSubtag favorSubtag, LocaleMatcher.Direction direction) { in getBestIndexAndDistance()
355 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
368 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
376 if (direction != LocaleMatcher.Direction.ONLY_TWO_WAY || in getBestIndexAndDistance()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DLocaleMatcher.java66 public final class LocaleMatcher { class
539 public LocaleMatcher build() { in build()
540 return new LocaleMatcher(this); in build()
585 public LocaleMatcher(LocalePriorityList supportedLocales) { in LocaleMatcher() method in LocaleMatcher
598 public LocaleMatcher(String supportedLocales) { in LocaleMatcher() method in LocaleMatcher
602 private LocaleMatcher(Builder builder) { in LocaleMatcher() method in LocaleMatcher
DULocale.java2036 LocaleMatcher.Builder builder = LocaleMatcher.builder(); in acceptLanguage()
2040 LocaleMatcher matcher = builder.build(); in acceptLanguage()
2041 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in acceptLanguage()
2075 LocaleMatcher.Builder builder = LocaleMatcher.builder(); in acceptLanguage()
2079 LocaleMatcher matcher = builder.build(); in acceptLanguage()
2080 LocaleMatcher.Result result; in acceptLanguage()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java65 public final class LocaleMatcher { class
614 public LocaleMatcher build() { in build()
615 return new LocaleMatcher(this); in build()
661 public LocaleMatcher(LocalePriorityList supportedLocales) { in LocaleMatcher() method in LocaleMatcher
675 public LocaleMatcher(String supportedLocales) { in LocaleMatcher() method in LocaleMatcher
679 private LocaleMatcher(Builder builder) { in LocaleMatcher() method in LocaleMatcher
DULocale.java2538 LocaleMatcher.Builder builder = LocaleMatcher.builder(); in acceptLanguage()
2542 LocaleMatcher matcher = builder.build(); in acceptLanguage()
2543 LocaleMatcher.Result result = matcher.getBestMatchResult(desired); in acceptLanguage()
2578 LocaleMatcher.Builder builder = LocaleMatcher.builder(); in acceptLanguage()
2582 LocaleMatcher matcher = builder.build(); in acceptLanguage()
2583 LocaleMatcher.Result result; in acceptLanguage()
/third_party/icu/icu4j/tools/build/
Dicu4j69.api3.gz
Dicu4j68.api3.gz
Dicu4j67.api3.gz
Dicu4j65.api3.gz
/third_party/icu/icu4j/
Dcoverage-exclusion.txt1064 com/ibm/icu/util/LocaleMatcher#getBestMatch:([Lcom/ibm/icu/util/ULocale;)Lcom/ibm/icu/util/ULocale;
1065 com/ibm/icu/util/LocaleMatcher$LanguageMatcherData#addDistance:(Ljava/lang/String;Ljava/lang/String…
1066 …icu/util/LocaleMatcher$LanguageMatcherData#addDistance:(Ljava/lang/String;Ljava/lang/String;ILjava…
1067 com/ibm/icu/util/LocaleMatcher$Level#valueOf:(Ljava/lang/String;)Lcom/ibm/icu/util/LocaleMatcher$Le…
1068 com/ibm/icu/util/LocaleMatcher$ScoreData#isFrozen:()Z

12