/third_party/icu/icu4c/source/test/intltest/ |
D | localematchertest.cpp | 24 const char *locString(const Locale *loc) { in locString() function 101 assertEquals("getBestMatch(fr)", "(null)", locString(best)); in testEmpty() 103 assertEquals("getBestMatchResult(fr).des", "(null)", locString(result.getDesiredLocale())); in testEmpty() 106 "(null)", locString(result.getSupportedLocale())); in testEmpty() 131 assertEquals("fromRange.getBestMatch(en_GB)", "en_GB", locString(best)); in testBasics() 133 assertEquals("fromRange.getBestMatch(en_US)", "en", locString(best)); in testBasics() 135 assertEquals("fromRange.getBestMatch(fr_FR)", "fr", locString(best)); in testBasics() 137 assertEquals("fromRange.getBestMatch(ja_JP)", "fr", locString(best)); in testBasics() 145 assertEquals("fromRange.getBestMatch(en_GB)", "en_GB", locString(best)); in testBasics() 147 assertEquals("fromRange.getBestMatch(en_US)", "en", locString(best)); in testBasics() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 172 private static final String locString(ULocale loc) { in locString() method in LocaleMatcherTest 186 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testSupportedDefault() 188 assertEquals("getBestMatch(en_US)", "en", locString(best)); in testSupportedDefault() 190 assertEquals("getBestMatch(fr_FR)", "fr", locString(best)); in testSupportedDefault() 192 assertEquals("getBestMatch(ja_JP)", "en_GB", locString(best)); in testSupportedDefault() 195 "en_GB", locString(result.getSupportedULocale())); in testSupportedDefault() 210 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testUnsupportedDefault() 212 assertEquals("getBestMatch(en_US)", "en", locString(best)); in testUnsupportedDefault() 214 assertEquals("getBestMatch(fr_FR)", "fr", locString(best)); in testUnsupportedDefault() 216 assertEquals("getBestMatch(ja_JP)", "de", locString(best)); in testUnsupportedDefault() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 175 private static final String locString(ULocale loc) { in locString() method in LocaleMatcherTest 189 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testSupportedDefault() 191 assertEquals("getBestMatch(en_US)", "en", locString(best)); in testSupportedDefault() 193 assertEquals("getBestMatch(fr_FR)", "fr", locString(best)); in testSupportedDefault() 195 assertEquals("getBestMatch(ja_JP)", "en_GB", locString(best)); in testSupportedDefault() 198 "en_GB", locString(result.getSupportedULocale())); in testSupportedDefault() 213 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testUnsupportedDefault() 215 assertEquals("getBestMatch(en_US)", "en", locString(best)); in testUnsupportedDefault() 217 assertEquals("getBestMatch(fr_FR)", "fr", locString(best)); in testUnsupportedDefault() 219 assertEquals("getBestMatch(ja_JP)", "de", locString(best)); in testUnsupportedDefault() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | localematcher.cpp | 757 const char *locString; in acceptLanguage() local 758 while ((locString = uenum_next(&supportedLocales, nullptr, &errorCode)) != nullptr) { in acceptLanguage() 759 Locale loc(locString); in acceptLanguage()
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | localematcher.cpp | 775 const char *locString; in acceptLanguage() local 776 while ((locString = uenum_next(&supportedLocales, nullptr, &errorCode)) != nullptr) { in acceptLanguage() 777 Locale loc(locString); in acceptLanguage()
|
/third_party/icu/icu4c/source/common/ |
D | localematcher.cpp | 757 const char *locString; in acceptLanguage() local 758 while ((locString = uenum_next(&supportedLocales, nullptr, &errorCode)) != nullptr) { in acceptLanguage() 759 Locale loc(locString); in acceptLanguage()
|