Home
last modified time | relevance | path

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

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DLocaleMatcher.java358 private final Locale defaultLocale; field in LocaleMatcher
371 private ULocale defaultLocale; field in LocaleMatcher.Builder
457 public Builder setDefaultULocale(ULocale defaultLocale) { in setDefaultULocale() argument
458 this.defaultLocale = defaultLocale; in setDefaultULocale()
470 public Builder setDefaultLocale(Locale defaultLocale) { in setDefaultLocale() argument
471 this.defaultLocale = ULocale.forLocale(defaultLocale); in setDefaultLocale()
553 if (defaultLocale != null) { in toString()
554 s.append(" default=").append(defaultLocale); in toString()
605 ULocale udef = builder.defaultLocale; in LocaleMatcher()
683 defaultLocale = def; in LocaleMatcher()
[all …]
DULocale.java515 private static Locale defaultLocale = Locale.getDefault(); field in ULocale
522 defaultULocale = forLocale(defaultLocale);
535 defaultCategoryLocales[idx] = defaultLocale;
563 if (!defaultLocale.equals(currentDefault)) { in getDefault()
564 defaultLocale = currentDefault; in getDefault()
599 defaultLocale = newLocale.toLocale(); in setDefault()
600 Locale.setDefault(defaultLocale); in setDefault()
643 if (!defaultLocale.equals(currentDefault)) { in getDefault()
644 defaultLocale = currentDefault; in getDefault()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java353 private final Locale defaultLocale; field in LocaleMatcher
365 private ULocale defaultLocale; field in LocaleMatcher.Builder
455 this.defaultLocale = null; in setNoDefaultLocale()
470 public Builder setDefaultULocale(ULocale defaultLocale) { in setDefaultULocale() argument
471 this.defaultLocale = defaultLocale; in setDefaultULocale()
486 public Builder setDefaultLocale(Locale defaultLocale) { in setDefaultLocale() argument
487 this.defaultLocale = ULocale.forLocale(defaultLocale); in setDefaultLocale()
628 if (defaultLocale != null) { in toString()
629 s.append(" default=").append(defaultLocale); in toString()
680 ULocale udef = builder.defaultLocale; in LocaleMatcher()
[all …]
DULocale.java550 private static Locale defaultLocale = Locale.getDefault(); field in ULocale
557 defaultULocale = forLocale(defaultLocale);
570 defaultCategoryLocales[idx] = defaultLocale;
599 if (!defaultLocale.equals(currentDefault)) { in getDefault()
600 defaultLocale = currentDefault; in getDefault()
635 defaultLocale = newLocale.toLocale(); in setDefault()
636 Locale.setDefault(defaultLocale); in setDefault()
680 if (!defaultLocale.equals(currentDefault)) { in getDefault()
681 defaultLocale = currentDefault; in getDefault()
/third_party/skia/third_party/externals/icu/source/common/
Dlocalematcher.cpp241 LocaleMatcher::Builder &LocaleMatcher::Builder::setDefaultLocale(const Locale *defaultLocale) { in setDefaultLocale() argument
244 if (defaultLocale != nullptr) { in setDefaultLocale()
245 clone = defaultLocale->clone(); in setDefaultLocale()
368 ownedDefaultLocale(nullptr), defaultLocale(nullptr) { in LocaleMatcher()
478 defaultLocale = def; in LocaleMatcher()
517 ownedDefaultLocale(src.ownedDefaultLocale), defaultLocale(src.defaultLocale) { in LocaleMatcher()
526 src.defaultLocale = nullptr; in LocaleMatcher()
556 defaultLocale = src.defaultLocale; in operator =()
566 src.defaultLocale = nullptr; in operator =()
629 return U_SUCCESS(errorCode) && suppIndex >= 0 ? supportedLocales[suppIndex] : defaultLocale; in getBestMatch()
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocalematcher.cpp241 LocaleMatcher::Builder &LocaleMatcher::Builder::setDefaultLocale(const Locale *defaultLocale) { in setDefaultLocale() argument
244 if (defaultLocale != nullptr) { in setDefaultLocale()
245 clone = defaultLocale->clone(); in setDefaultLocale()
368 ownedDefaultLocale(nullptr), defaultLocale(nullptr) { in LocaleMatcher()
478 defaultLocale = def; in LocaleMatcher()
517 ownedDefaultLocale(src.ownedDefaultLocale), defaultLocale(src.defaultLocale) { in LocaleMatcher()
526 src.defaultLocale = nullptr; in LocaleMatcher()
556 defaultLocale = src.defaultLocale; in operator =()
566 src.defaultLocale = nullptr; in operator =()
629 return U_SUCCESS(errorCode) && suppIndex >= 0 ? supportedLocales[suppIndex] : defaultLocale; in getBestMatch()
[all …]
Duresbund.cpp466 findFirstExisting(const char* path, char* name, const char* defaultLocale, in findFirstExisting() argument
478 *isDefault = (UBool)(uprv_strncmp(name, defaultLocale, uprv_strlen(name)) == 0); in findFirstExisting()
674 const char *defaultLocale = uloc_getDefault(); in entryOpen() local
679 r = findFirstExisting(path, name, defaultLocale, &isRoot, &hasChopped, &isDefault, &intStatus); in entryOpen()
719 uprv_strcpy(name, defaultLocale); in entryOpen()
720 … r = findFirstExisting(path, name, defaultLocale, &isRoot, &hasChopped, &isDefault, &intStatus); in entryOpen()
744 … r = findFirstExisting(path, name, defaultLocale, &isRoot, &hasChopped, &isDefault, &intStatus); in entryOpen()
/third_party/icu/icu4c/source/common/
Dlocalematcher.cpp241 LocaleMatcher::Builder &LocaleMatcher::Builder::setDefaultLocale(const Locale *defaultLocale) { in setDefaultLocale() argument
244 if (defaultLocale != nullptr) { in setDefaultLocale()
245 clone = defaultLocale->clone(); in setDefaultLocale()
368 ownedDefaultLocale(nullptr), defaultLocale(nullptr) { in LocaleMatcher()
478 defaultLocale = def; in LocaleMatcher()
517 ownedDefaultLocale(src.ownedDefaultLocale), defaultLocale(src.defaultLocale) { in LocaleMatcher()
526 src.defaultLocale = nullptr; in LocaleMatcher()
556 defaultLocale = src.defaultLocale; in operator =()
566 src.defaultLocale = nullptr; in operator =()
629 return U_SUCCESS(errorCode) && suppIndex >= 0 ? supportedLocales[suppIndex] : defaultLocale; in getBestMatch()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dsvccoll.cpp160 const Locale& defaultLocale = Locale::getDefault(); in TestRegister() local
162 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
163 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) { in TestRegister()
169 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
170 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) { in TestRegister()
Dlocalematchertest.cpp564 Locale defaultLocale(test.def.data()); in dataDriven() local
565 builder.setDefaultLocale(&defaultLocale); in dataDriven()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShCompile_test.cpp57 std::locale defaultLocale; member in ShCompileTest::ScopedRestoreDefaultLocale
66 defaultLocale = std::locale(); in ScopedRestoreDefaultLocale()
71 std::locale::global(defaultLocale); in ~ScopedRestoreDefaultLocale()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DShCompile_test.cpp57 std::locale defaultLocale; member in ShCompileTest::ScopedRestoreDefaultLocale
66 defaultLocale = std::locale(); in ScopedRestoreDefaultLocale()
71 std::locale::global(defaultLocale); in ~ScopedRestoreDefaultLocale()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DListFormatterTest.java217 ULocale defaultLocale = ULocale.getDefault(ULocale.Category.FORMAT); in isDefaultLocaleEnglishLike() local
218 return defaultLocale.equals(ULocale.ENGLISH) || defaultLocale.equals(ULocale.US); in isDefaultLocaleEnglishLike()
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dlocalematcher.h438 Builder &setDefaultLocale(const Locale *defaultLocale);
708 const Locale *defaultLocale; variable
/third_party/node/deps/icu-small/source/common/unicode/
Dlocalematcher.h436 Builder &setDefaultLocale(const Locale *defaultLocale);
702 const Locale *defaultLocale; variable
/third_party/icu/icu4c/source/common/unicode/
Dlocalematcher.h438 Builder &setDefaultLocale(const Locale *defaultLocale);
708 const Locale *defaultLocale; variable
/third_party/flutter/flutter/examples/stocks/lib/i18n/
Dstock_messages_es.dart12 final _keepAnalysisHappy = Intl.defaultLocale;
Dstock_messages_en.dart12 final _keepAnalysisHappy = Intl.defaultLocale;
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DListFormatterTest.java214 ULocale defaultLocale = ULocale.getDefault(ULocale.Category.FORMAT); in isDefaultLocaleEnglishLike() local
215 return defaultLocale.equals(ULocale.ENGLISH) || defaultLocale.equals(ULocale.US); in isDefaultLocaleEnglishLike()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/
DCalendarFrame.java182 Locale defaultLocale = Locale.getDefault(); in init() local
197 thisMatch = DemoUtility.compareLocales(locales[i], defaultLocale); in init()
DCalendarCalc.java269 Locale defaultLocale = Locale.getDefault(); in buildGUI() local
283 thisMatch = DemoUtility.compareLocales(locales[i], defaultLocale); in buildGUI()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DICUResourceBundleTest.java951 ULocale defaultLocale = ULocale.getDefault(); in TestJavaULocaleBundleLoading() local
952 if(!defaultBundle.getULocale().equals(defaultLocale)){ in TestJavaULocaleBundleLoading()
963 ULocale.setDefault(defaultLocale); in TestJavaULocaleBundleLoading()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DICUResourceBundleTest.java948 ULocale defaultLocale = ULocale.getDefault(); in TestJavaULocaleBundleLoading() local
949 if(!defaultBundle.getULocale().equals(defaultLocale)){ in TestJavaULocaleBundleLoading()
960 ULocale.setDefault(defaultLocale); in TestJavaULocaleBundleLoading()
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestFmwk.java51 private final static Locale defaultLocale = Locale.US; field in TestFmwk
79 Locale.setDefault(defaultLocale); in testInitialize()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/
DTestFmwk.java52 private final static Locale defaultLocale = Locale.US; field in TestFmwk
80 Locale.setDefault(defaultLocale); in testInitialize()

12