Home
last modified time | relevance | path

Searched refs:Locale (Results 1 – 25 of 1721) sorted by relevance

12345678910>>...69

/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/
Dlocid.h192 class U_COMMON_API Locale : public UObject {
195 static const Locale &U_EXPORT2 getRoot(void);
197 static const Locale &U_EXPORT2 getEnglish(void);
199 static const Locale &U_EXPORT2 getFrench(void);
201 static const Locale &U_EXPORT2 getGerman(void);
203 static const Locale &U_EXPORT2 getItalian(void);
205 static const Locale &U_EXPORT2 getJapanese(void);
207 static const Locale &U_EXPORT2 getKorean(void);
209 static const Locale &U_EXPORT2 getChinese(void);
211 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
/third_party/flutter/flutter/packages/flutter_localizations/test/
Dwidgets_test.dart15 final Locale locale;
18 static Future<TestLocalizations> loadSync(Locale locale, String prefix) {
22 static Future<TestLocalizations> loadAsync(Locale locale, String prefix) {
41 bool isSupported(Locale locale) => true;
44 Future<TestLocalizations> load(Locale locale) => TestLocalizations.loadSync(locale, prefix);
63 bool isSupported(Locale locale) => true;
66 Future<TestLocalizations> load(Locale locale) => TestLocalizations.loadAsync(locale, prefix);
81 final Locale locale;
83 static Future<MoreLocalizations> loadSync(Locale locale) {
87 static Future<MoreLocalizations> loadAsync(Locale locale) {
[all …]
/third_party/icu/icu4c/source/common/unicode/
Dlocid.h195 class U_COMMON_API Locale : public UObject {
198 static const Locale &U_EXPORT2 getRoot(void);
200 static const Locale &U_EXPORT2 getEnglish(void);
202 static const Locale &U_EXPORT2 getFrench(void);
204 static const Locale &U_EXPORT2 getGerman(void);
206 static const Locale &U_EXPORT2 getItalian(void);
208 static const Locale &U_EXPORT2 getJapanese(void);
210 static const Locale &U_EXPORT2 getKorean(void);
212 static const Locale &U_EXPORT2 getChinese(void);
214 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
Dlocalematcher.h226 inline const Locale *getDesiredLocale() const { return desiredLocale; } in getDesiredLocale()
237 inline const Locale *getSupportedLocale() const { return supportedLocale; } in getSupportedLocale()
272 Locale makeResolvedLocale(UErrorCode &errorCode) const;
275 Result(const Locale *desired, const Locale *supported, in Result()
284 const Locale *desiredLocale;
285 const Locale *supportedLocale;
356 Builder &setSupportedLocales(Locale::Iterator &locales);
414 Builder &addSupportedLocale(const Locale &locale);
438 Builder &setDefaultLocale(const Locale *defaultLocale);
499 Builder &setMaxDistance(const Locale &desired, const Locale &supported);
[all …]
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dlocid.h195 class U_COMMON_API Locale : public UObject {
198 static const Locale &U_EXPORT2 getRoot(void);
200 static const Locale &U_EXPORT2 getEnglish(void);
202 static const Locale &U_EXPORT2 getFrench(void);
204 static const Locale &U_EXPORT2 getGerman(void);
206 static const Locale &U_EXPORT2 getItalian(void);
208 static const Locale &U_EXPORT2 getJapanese(void);
210 static const Locale &U_EXPORT2 getKorean(void);
212 static const Locale &U_EXPORT2 getChinese(void);
214 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
Dlocalematcher.h226 inline const Locale *getDesiredLocale() const { return desiredLocale; } in getDesiredLocale()
237 inline const Locale *getSupportedLocale() const { return supportedLocale; } in getSupportedLocale()
272 Locale makeResolvedLocale(UErrorCode &errorCode) const;
275 Result(const Locale *desired, const Locale *supported, in Result()
284 const Locale *desiredLocale;
285 const Locale *supportedLocale;
356 Builder &setSupportedLocales(Locale::Iterator &locales);
414 Builder &addSupportedLocale(const Locale &locale);
438 Builder &setDefaultLocale(const Locale *defaultLocale);
499 Builder &setMaxDistance(const Locale &desired, const Locale &supported);
[all …]
/third_party/node/deps/icu-small/source/common/unicode/
Dlocid.h195 class U_COMMON_API Locale : public UObject {
198 static const Locale &U_EXPORT2 getRoot(void);
200 static const Locale &U_EXPORT2 getEnglish(void);
202 static const Locale &U_EXPORT2 getFrench(void);
204 static const Locale &U_EXPORT2 getGerman(void);
206 static const Locale &U_EXPORT2 getItalian(void);
208 static const Locale &U_EXPORT2 getJapanese(void);
210 static const Locale &U_EXPORT2 getKorean(void);
212 static const Locale &U_EXPORT2 getChinese(void);
214 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
Dlocalematcher.h226 inline const Locale *getDesiredLocale() const { return desiredLocale; } in getDesiredLocale()
237 inline const Locale *getSupportedLocale() const { return supportedLocale; } in getSupportedLocale()
272 Locale makeResolvedLocale(UErrorCode &errorCode) const;
275 Result(const Locale *desired, const Locale *supported, in Result()
284 const Locale *desiredLocale;
285 const Locale *supportedLocale;
356 Builder &setSupportedLocales(Locale::Iterator &locales);
414 Builder &addSupportedLocale(const Locale &locale);
436 Builder &setDefaultLocale(const Locale *defaultLocale);
496 Builder &setMaxDistance(const Locale &desired, const Locale &supported);
[all …]
/third_party/flutter/engine/flutter/testing/dart/
Dlocale_test.dart10 test('Locale', () {
12 expect(const Locale('en').toLanguageTag(), 'en');
13 expect(const Locale('en'), const Locale('en', $null));
14 expect(const Locale('en').hashCode, const Locale('en', $null).hashCode);
15 expect(const Locale('en'), isNot(const Locale('en', '')));
16 expect(const Locale('en').hashCode, isNot(const Locale('en', '').hashCode));
17 expect(const Locale('en', 'US').toLanguageTag(), 'en-US');
18 expect(const Locale('en', 'US').toString(), 'en_US');
19 expect(const Locale('iw').toLanguageTag(), 'he');
20 expect(const Locale('iw', 'DD').toLanguageTag(), 'he-DE');
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dlocid.cpp61 static Locale *gLocaleCache = NULL;
67 static Locale *gDefaultLocale = NULL;
117 delete (icu::Locale *) obj; in deleteLocale()
141 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
147 gLocaleCache[eROOT] = Locale(""); in locale_init()
148 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
149 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
150 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
151 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
152 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfSampleRuleSets.java11 import java.util.Locale;
1699 public static final Locale[] sampleRuleSetLocales =
1700 { Locale.US,
1701 Locale.UK,
1702 new Locale("es", "", ""),
1703 Locale.FRANCE,
1704 new Locale("fr", "CH", ""),
1705 Locale.GERMAN,
1706 Locale.ITALIAN,
1707 new Locale("sv", "", ""),
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dlocale_test.dart10 test('Locale', () {
12 expect(const Locale('en').toString(), 'en');
13 expect(const Locale('en'), const Locale('en', $null));
14 expect(const Locale('en').hashCode, const Locale('en', $null).hashCode);
15 expect(const Locale('en'), isNot(const Locale('en', '')));
17 //expect(const Locale('en').hashCode, isNot(const Locale('en', '').hashCode));
18 expect(const Locale('en', 'US').toString(), 'en_US');
19 expect(const Locale('iw').toString(), 'he');
20 expect(const Locale('iw', 'DD').toString(), 'he_DE');
21 expect(const Locale('iw', 'DD'), const Locale('he', 'DE'));
[all …]
/third_party/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoderTest.java22 import java.util.Locale;
73 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); in testGetDescriptionForNumberWithNoDataFile()
75 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
77 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
79 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
81 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
88 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); in testGetDescriptionForNumberWithMissingPrefix()
95 geocoder.getDescriptionForNumber(NANPA_TOLL_FREE, new Locale("en", "US"))); in testGetDescriptionForNumberBelongingToMultipleCountriesIsEmpty()
100 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
102 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dloctest.cpp293 Locale testLocale(""); in TestBasicGetters()
295 … testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
298 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
321 Locale testLocale(""); in TestBasicGetters()
323 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]); in TestBasicGetters()
326 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]); in TestBasicGetters()
344 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special"); in TestBasicGetters()
365 if (Locale::getDefault() != Locale::createFromName(NULL)) in TestBasicGetters()
374 Locale bogusLang("THISISABOGUSLANGUAGE"); // Jitterbug 2864: language code too long in TestBasicGetters()
379 bogusLang=Locale("eo"); in TestBasicGetters()
[all …]
Dlocalematchertest.cpp24 const char *locString(const Locale *loc) { in locString()
100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty()
126 Locale locales[] = { "fr", "en_GB", "en" }; in testBasics()
130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
141 std::vector<Locale> locales{ "fr", "en_GB", "en" }; in testBasics()
144 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
154 Locale::RangeIterator<Locale *> iter(ARRAY_RANGE(locales)); in testBasics()
157 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics()
167 Locale *pointers[] = { locales, locales + 1, locales + 2 }; in testBasics()
172 ARRAY_RANGE(pointers), [](const Locale *p) -> const Locale & { return *p; }). in testBasics()
[all …]
Dnumbertest_api.cpp44 FRENCH_SYMBOLS(Locale::getFrench(), status), in NumberFormatterApiTest()
45 SWISS_SYMBOLS(Locale("de-CH"), status), in NumberFormatterApiTest()
46 MYANMAR_SYMBOLS(Locale("my"), status) { in NumberFormatterApiTest()
137 Locale::getEnglish(), in notationSimple()
153 Locale::getEnglish(), in notationSimple()
169 Locale::getEnglish(), in notationSimple()
181 Locale::getEnglish(), in notationScientific()
197 Locale::getEnglish(), in notationScientific()
214 Locale::getEnglish(), in notationScientific()
230 Locale::getEnglish(), in notationScientific()
[all …]
/third_party/libphonenumber/java/carrier/test/com/google/i18n/phonenumbers/
DPhoneNumberToCarrierMapperTest.java21 import java.util.Locale;
66 carrierMapper.getNameForNumber(UK_MOBILE1, Locale.ENGLISH)); in testGetNameForMobilePortableRegion()
68 carrierMapper.getNameForNumber(UK_MOBILE1, new Locale("sv", "SE"))); in testGetNameForMobilePortableRegion()
70 carrierMapper.getNameForNumber(UK_MOBILE1, Locale.FRENCH)); in testGetNameForMobilePortableRegion()
72 assertEquals("", carrierMapper.getSafeDisplayName(UK_MOBILE1, Locale.ENGLISH)); in testGetNameForMobilePortableRegion()
77 carrierMapper.getNameForNumber(AO_MOBILE1, Locale.ENGLISH)); in testGetNameForNonMobilePortableRegion()
79 carrierMapper.getSafeDisplayName(AO_MOBILE1, Locale.ENGLISH)); in testGetNameForNonMobilePortableRegion()
83 assertEquals("", carrierMapper.getNameForNumber(AO_FIXED1, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
84 assertEquals("", carrierMapper.getNameForNumber(UK_FIXED1, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
88 carrierMapper.getNameForValidNumber(AO_FIXED2, Locale.ENGLISH)); in testGetNameForFixedLineNumber()
[all …]
/third_party/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h117 const Locale testLocales[] = { in call()
118 Locale("en"), in call()
119 Locale("en_US"), in call()
120 Locale("en_AU"), in call()
121 Locale("de_DE"), in call()
122 Locale("fr"), in call()
123 Locale("ja_JP"), in call()
124 Locale("ko"), in call()
125 Locale("pt"), in call()
126 Locale("th_TH"), in call()
[all …]
/third_party/libphonenumber/cpp/test/phonenumbers/geocoding/
Dphonenumber_offline_geocoder_test.cc29 using icu::Locale;
40 const Locale kEnglishLocale = Locale("en", "GB");
41 const Locale kFrenchLocale = Locale("fr", "FR");
42 const Locale kGermanLocale = Locale("de", "DE");
43 const Locale kItalianLocale = Locale("it", "IT");
44 const Locale kKoreanLocale = Locale("ko", "KR");
45 const Locale kSimplifiedChineseLocale = Locale("zh", "CN");
111 geocoder_->GetDescriptionForNumber(BS_NUMBER1, Locale("en", "US"))); in TEST_F()
113 geocoder_->GetDescriptionForNumber(AU_NUMBER, Locale("en", "US"))); in TEST_F()
116 Locale("en", "US"))); in TEST_F()
[all …]
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DLocaleNameTest.java13 import java.util.Locale;
30 … mGetDisplayScript = Locale.class.getMethod("getDisplayScript", new Class[] {Locale.class});
39 Locale[] locales = Locale.getAvailableLocales(); in TestLanguageNames()
41 for (Locale inLocale : locales) { in TestLanguageNames()
48 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames()
49 for (Locale forLocale : locales) { in TestLanguageNames()
105 Locale[] locales = Locale.getAvailableLocales(); in TestScriptNames()
106 for (Locale inLocale : locales) { in TestScriptNames()
113 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestScriptNames()
118 Locale forLocale = forULocale.toLocale(); in TestScriptNames()
[all …]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/
DICULocaleServiceProvider.java17 import java.util.Locale;
41 private static final Locale[] SPECIAL_LOCALES = {
42 new Locale("ja", "JP", "JP"),
43 new Locale("no"),
44 new Locale("no", "NO"),
45 new Locale("no", "NO", "NY"),
46 new Locale("sr", "CS"),
47 new Locale("th", "TH", "TH"),
50 private static Map<Locale, Locale> SPECIAL_LOCALES_MAP = null;
52 private static Locale[] LOCALES = null;
[all …]
/third_party/node/deps/icu-small/source/common/
Dlocid.cpp66 static Locale *gLocaleCache = NULL;
72 static Locale *gDefaultLocale = NULL;
115 delete (icu::Locale *) obj; in deleteLocale()
139 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
145 gLocaleCache[eROOT] = Locale(""); in locale_init()
146 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
147 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
148 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
149 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
150 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dlocid.cpp66 static Locale *gLocaleCache = NULL;
72 static Locale *gDefaultLocale = NULL;
115 delete (icu::Locale *) obj; in deleteLocale()
139 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
145 gLocaleCache[eROOT] = Locale(""); in locale_init()
146 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
147 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
148 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
149 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
150 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
/third_party/icu/icu4c/source/common/
Dlocid.cpp66 static Locale *gLocaleCache = NULL;
72 static Locale *gDefaultLocale = NULL;
115 delete (icu::Locale *) obj; in deleteLocale()
139 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
145 gLocaleCache[eROOT] = Locale(""); in locale_init()
146 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
147 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
148 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
149 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
150 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
/third_party/flutter/flutter/packages/flutter_localizations/test/material/
Ddate_time_test.dart14 …izations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('pt', 'PT'));
19 …izations localizations = await GlobalMaterialLocalizations.delegate.load(const Locale('pt', 'XX'));
25 await GlobalMaterialLocalizations.delegate.load(const Locale('xx', 'XX'));
30 Future<String> formatHour(WidgetTester tester, Locale locale, TimeOfDay timeOfDay) async {
33 supportedLocales: <Locale>[locale],
47 …expect(await formatHour(tester, const Locale('en', 'US'), const TimeOfDay(hour: 10, minute: 0)), '…
48 …expect(await formatHour(tester, const Locale('en', 'US'), const TimeOfDay(hour: 20, minute: 0)), '…
52 … expect(await formatHour(tester, const Locale('de'), const TimeOfDay(hour: 9, minute: 0)), '09');
53 … expect(await formatHour(tester, const Locale('de'), const TimeOfDay(hour: 20, minute: 0)), '20');
55 …expect(await formatHour(tester, const Locale('en', 'GB'), const TimeOfDay(hour: 9, minute: 0)), '0…
[all …]

12345678910>>...69