Home
last modified time | relevance | path

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

12345678910>>...30

/external/icu/icu4c/source/common/unicode/
Dlocid.h185 class U_COMMON_API Locale : public UObject {
188 static const Locale &U_EXPORT2 getRoot(void);
190 static const Locale &U_EXPORT2 getEnglish(void);
192 static const Locale &U_EXPORT2 getFrench(void);
194 static const Locale &U_EXPORT2 getGerman(void);
196 static const Locale &U_EXPORT2 getItalian(void);
198 static const Locale &U_EXPORT2 getJapanese(void);
200 static const Locale &U_EXPORT2 getKorean(void);
202 static const Locale &U_EXPORT2 getChinese(void);
204 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
[all …]
Dbrkiter.h359 createWordInstance(const Locale& where, UErrorCode& status);
383 createLineInstance(const Locale& where, UErrorCode& status);
405 createCharacterInstance(const Locale& where, UErrorCode& status);
426 createSentenceInstance(const Locale& where, UErrorCode& status);
451 createTitleInstance(const Locale& where, UErrorCode& status);
462 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
473 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
474 const Locale& displayLocale,
485 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
540 const Locale& locale,
[all …]
/external/icu/icu4c/source/common/
Dlocid.cpp52 static Locale *gLocaleCache = NULL;
58 static Locale *gDefaultLocale = NULL;
102 delete (icu::Locale *) obj; in deleteLocale()
126 gLocaleCache = new Locale[(int)eMAX_LOCALES]; in locale_init()
132 gLocaleCache[eROOT] = Locale(""); in locale_init()
133 gLocaleCache[eENGLISH] = Locale("en"); in locale_init()
134 gLocaleCache[eFRENCH] = Locale("fr"); in locale_init()
135 gLocaleCache[eGERMAN] = Locale("de"); in locale_init()
136 gLocaleCache[eITALIAN] = Locale("it"); in locale_init()
137 gLocaleCache[eJAPANESE] = Locale("ja"); in locale_init()
[all …]
Dservloc.h132 virtual Locale& canonicalLocale(Locale& result) const;
137 virtual Locale& currentLocale(Locale& result) const;
254 …virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString…
261 …virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCo…
313 const Locale& locale,
401 …virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCo…
426 Locale fallbackLocale;
463 UObject* get(const Locale& locale, UErrorCode& status) const;
469 UObject* get(const Locale& locale, int32_t kind, UErrorCode& status) const;
475 UObject* get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const;
[all …]
/external/libphonenumber/geocoder/test/com/google/i18n/phonenumbers/geocoding/
DPhoneNumberOfflineGeocoderTest.java22 import java.util.Locale;
71 geocoder.getDescriptionForNumber(US_NUMBER1, Locale.SIMPLIFIED_CHINESE)); in testGetDescriptionForNumberWithNoDataFile()
73 geocoder.getDescriptionForNumber(BS_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
75 geocoder.getDescriptionForNumber(AU_NUMBER, new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
77 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
79 new Locale("en", "US"))); in testGetDescriptionForNumberWithNoDataFile()
86 geocoder.getDescriptionForNumber(US_NUMBER4, new Locale("en", "US"))); in testGetDescriptionForNumberWithMissingPrefix()
93 geocoder.getDescriptionForNumber(NANPA_TOLL_FREE, new Locale("en", "US"))); in testGetDescriptionForNumberBelongingToMultipleCountriesIsEmpty()
98 geocoder.getDescriptionForNumber(US_NUMBER1, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
100 geocoder.getDescriptionForNumber(US_NUMBER2, new Locale("en", "US"))); in testGetDescriptionForNumber_en_US()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/
DICULocaleServiceProvider.java15 import java.util.Locale;
39 private static final Locale[] SPECIAL_LOCALES = {
40 new Locale("ja", "JP", "JP"),
41 new Locale("no"),
42 new Locale("no", "NO"),
43 new Locale("no", "NO", "NY"),
44 new Locale("sr", "CS"),
45 new Locale("th", "TH", "TH"),
48 private static Map<Locale, Locale> SPECIAL_LOCALES_MAP = null;
50 private static Locale[] LOCALES = null;
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DLocaleNameTest.java11 import java.util.Locale;
27 … mGetDisplayScript = Locale.class.getMethod("getDisplayScript", new Class[] {Locale.class});
35 Locale[] locales = Locale.getAvailableLocales(); in TestLanguageNames()
37 for (Locale inLocale : locales) { in TestLanguageNames()
44 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestLanguageNames()
45 for (Locale forLocale : locales) { in TestLanguageNames()
100 Locale[] locales = Locale.getAvailableLocales(); in TestScriptNames()
101 for (Locale inLocale : locales) { in TestScriptNames()
108 Locale inLocaleICU = TestUtil.toICUExtendedLocale(inLocale); in TestScriptNames()
113 Locale forLocale = forULocale.toLocale(); in TestScriptNames()
[all …]
DDateFormatSymbolsTest.java10 import java.util.Locale;
24 for (Locale loc : DateFormatSymbols.getAvailableLocales()) { in TestGetInstance()
42 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestGetInstance()
63 Locale[] TEST_LOCALES = { in TestICUEquivalent()
64 new Locale("en", "US"), in TestICUEquivalent()
65 new Locale("es", "ES"), in TestICUEquivalent()
66 new Locale("ja", "JP", "JP"), in TestICUEquivalent()
67 new Locale("th", "TH"), in TestICUEquivalent()
70 for (Locale loc : TEST_LOCALES) { in TestICUEquivalent()
71 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in TestICUEquivalent()
[all …]
DDateFormatTest.java13 import java.util.Locale;
29 for (Locale loc : DateFormat.getAvailableLocales()) { in TestGetInstance()
40 private void checkGetInstance(int dstyle, int tstyle, Locale loc) { in checkGetInstance()
54 Locale iculoc = TestUtil.toICUExtendedLocale(loc); in checkGetInstance()
69 private DateFormat getJDKInstance(int dstyle, int tstyle, Locale loc, String[] methodName) { in getJDKInstance()
88 …private com.ibm.icu.text.DateFormat getICUInstance(int dstyle, int tstyle, Locale loc, String[] me… in getICUInstance()
112 Locale[] TEST_LOCALES = { in TestICUEquivalent()
113 new Locale("en", "US"), in TestICUEquivalent()
114 new Locale("it", "IT"), in TestICUEquivalent()
115 new Locale("iw", "IL"), in TestICUEquivalent()
[all …]
/external/libphonenumber/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 …]
/external/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h114 const Locale testLocales[] = { in call()
115 Locale("en"), in call()
116 Locale("en_US"), in call()
117 Locale("en_AU"), in call()
118 Locale("de_DE"), in call()
119 Locale("fr"), in call()
120 Locale("ja_JP"), in call()
121 Locale("ko"), in call()
122 Locale("pt"), in call()
123 Locale("th_TH"), in call()
[all …]
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp236 Locale testLocale(""); in TestBasicGetters()
238 … testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
241 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]); in TestBasicGetters()
264 Locale testLocale(""); in TestBasicGetters()
266 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]); in TestBasicGetters()
269 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]); in TestBasicGetters()
287 Locale test8 = Locale::createFromName("x-klingon-latn-zx.utf32be@special"); in TestBasicGetters()
308 if (Locale::getDefault() != Locale::createFromName(NULL)) in TestBasicGetters()
317 Locale bogusLang("THISISABOGUSLANGUAGE"); // Jitterbug 2864: language code too long in TestBasicGetters()
322 bogusLang=Locale("eo"); in TestBasicGetters()
[all …]
Dsvccoll.cpp35 const Locale& FR = Locale::getFrance(); in TestRegister()
36 const Locale& US = Locale::getUS(); in TestRegister()
37 const Locale US_FOO("en", "US", "FOO"); in TestRegister()
64 Locale loc = ncol->getLocale(ULOC_REQUESTED_LOCALE, status); in TestRegister()
96 Locale fu_FU_FOO("fu", "FU", "FOO"); in TestRegister()
97 Locale fu_FU("fu", "FU", ""); in TestRegister()
157 const Locale& defaultLocale = Locale::getDefault(); in TestRegister()
159 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
160 ((defaultLocale == Locale::getChinese()) && displayName != zh_fuFU)) { in TestRegister()
166 …((defaultLocale == Locale::getKorean() && defaultLocale == Locale::getJapanese()) && displayName =… in TestRegister()
[all …]
Dtzfmttst.cpp132 const Locale testLocales[] = { in TestTimeZoneRoundTrip()
133 Locale("en"), in TestTimeZoneRoundTrip()
134 Locale("en_CA"), in TestTimeZoneRoundTrip()
135 Locale("fr"), in TestTimeZoneRoundTrip()
136 Locale("zh_Hant") in TestTimeZoneRoundTrip()
139 const Locale *LOCALES; in TestTimeZoneRoundTrip()
144 nLocales = sizeof(testLocales)/sizeof(Locale); in TestTimeZoneRoundTrip()
146 LOCALES = Locale::getAvailableLocales(nLocales); in TestTimeZoneRoundTrip()
376 const Locale* locales; // Static
611 const Locale *LOCALES; in TestTimeRoundTrip()
[all …]
Dtmsgfmt.cpp77 Locale locale[] = { in testBug3()
78 Locale("ar", "", ""), in testBug3()
79 Locale("be", "", ""), in testBug3()
80 Locale("bg", "", ""), in testBug3()
81 Locale("ca", "", ""), in testBug3()
82 Locale("cs", "", ""), in testBug3()
83 Locale("da", "", ""), in testBug3()
84 Locale("de", "", ""), in testBug3()
85 Locale("de", "AT", ""), in testBug3()
86 Locale("de", "CH", ""), in testBug3()
[all …]
Daliastst.cpp59 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestCalendar()
60 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestCalendar()
91 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestDateFormat()
92 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestDateFormat()
125 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestCollation()
126 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestCollation()
136 Locale l1 = c1->getLocale(ULOC_VALID_LOCALE, status); in TestCollation()
137 Locale l2 = c2->getLocale(ULOC_VALID_LOCALE, status); in TestCollation()
156 Locale oldLoc(_LOCALE_ALIAS[i][0]); in TestULocale()
157 Locale newLoc(_LOCALE_ALIAS[i][1]); in TestULocale()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/
DMathRuntimeException.java26 import java.util.Locale;
135 private static String buildMessage(final Locale locale, final Localizable pattern, in buildMessage()
179 public String getMessage(final Locale locale) { in getMessage()
189 return getMessage(Locale.US); in getMessage()
195 return getMessage(Locale.getDefault()); in getLocalizedMessage()
253 return buildMessage(Locale.US, pattern, arguments); in createArithmeticException()
259 return buildMessage(Locale.getDefault(), pattern, arguments); in createArithmeticException()
297 return buildMessage(Locale.US, pattern, arguments); in createArrayIndexOutOfBoundsException()
303 return buildMessage(Locale.getDefault(), pattern, arguments); in createArrayIndexOutOfBoundsException()
341 return buildMessage(Locale.US, pattern, arguments);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java11 import java.util.Locale;
23 Locale thailand_locale = new Locale("th", "TH", ""); in TestRegUnreg()
24 Locale foo_locale = new Locale("fu", "FU", "FOO"); in TestRegUnreg()
25 BreakIterator jwbi = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
26 BreakIterator uwbi = BreakIterator.getWordInstance(Locale.US); in TestRegUnreg()
27 BreakIterator usbi = BreakIterator.getSentenceInstance(Locale.US); in TestRegUnreg()
29 BreakIterator rwbi = BreakIterator.getWordInstance(new Locale("", "", "")); in TestRegUnreg()
39 Object key1 = BreakIterator.registerInstance(sbi, Locale.US, BreakIterator.KIND_WORD); in TestRegUnreg()
40 …Object key2 = BreakIterator.registerInstance((BreakIterator)twbi.clone(), Locale.US, BreakIterator… in TestRegUnreg()
43 BreakIterator test0 = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTest.java26 import java.util.Locale;
90 … DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US); in Test4052408()
170 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
299 Locale saveLocale = Locale.getDefault(); in Test4065240()
303 Locale curLocale = new Locale("de", "DE"); in Test4065240()
304 Locale.setDefault(curLocale); in Test4065240()
343 Locale.setDefault(saveLocale); in Test4065240()
400 DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US); in Test4073003()
442 Locale locales[] = { in Test4100302()
443 Locale.CANADA, Locale.CANADA_FRENCH, Locale.CHINA, in Test4100302()
[all …]
DRbnfRoundTripTest.java9 import java.util.Locale;
33 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
44 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
55 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
66 = new RuleBasedNumberFormat(Locale.FRANCE, in TestFrenchSpelloutRT()
77 = new RuleBasedNumberFormat(new Locale("fr", "CH", in TestSwissFrenchSpelloutRT()
88 = new RuleBasedNumberFormat(Locale.ITALIAN, in TestItalianSpelloutRT()
99 = new RuleBasedNumberFormat(Locale.GERMANY, in TestGermanSpelloutRT()
110 = new RuleBasedNumberFormat(new Locale("sv", "SE", in TestSwedishSpelloutRT()
121 = new RuleBasedNumberFormat(new Locale("nl", "NL", in TestDutchSpelloutRT()
[all …]
DRBNFParseTest.java9 import java.util.Locale;
83 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
130 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
132 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
147 Locale.setDefault(Locale.FRANCE); in TestLenientParse()
148 logln("Default locale:" + Locale.getDefault()); in TestLenientParse()
153 Locale.setDefault(Locale.US); in TestLenientParse()
154 logln("Default locale:" + Locale.getDefault()); in TestLenientParse()
/external/messageformat/javatests/com/android/messageformat/
DSimpleMessageFormatTest.java10 import java.util.Locale;
17 Locale.US, "Going to {place} and back", "place", "Germany")); in testBasic()
23 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "female")); in testSelect()
25 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "male")); in testSelect()
27 MessageFormat.formatNamedArgs(Locale.US, msg, "gender", "unknown")); in testSelect()
33 Locale sr = new Locale("sr"); in testPlural()
51 Locale ja = Locale.JAPANESE; // always "other" in testSelectAndPlural()
69 Locale en = Locale.ENGLISH; in testSelectOrdinal()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java18 import java.util.Locale;
38 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
115 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
129 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
153 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
271 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
288 Locale oldDefault = Locale.getDefault(); in Test4058613()
289 Locale.setDefault(new Locale("ko", "")); in Test4058613()
293 c = Collator.getInstance(new Locale("en", "US")); in Test4058613()
297 Locale.setDefault(oldDefault); in Test4058613()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DLocaleUtility.java12 import java.util.Locale;
23 public static Locale getLocaleFromName(String name) { in getLocaleFromName()
43 return new Locale(language, country, variant); in getLocaleFromName()
65 public static boolean isFallbackOf(Locale parent, Locale child) { in isFallbackOf()
115 public static Locale fallback(Locale loc) { in fallback()
130 return new Locale(parts[0], parts[1], parts[2]); in fallback()
/external/nist-sip/java/gov/nist/javax/sip/header/
DContentLanguage.java31 import java.util.Locale;
92 protected Locale locale;
134 … this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) ); in setLanguageTag()
136 this.locale = new Locale(languageTag); in setLanguageTag()
148 public Locale getContentLanguage() { in getContentLanguage()
160 public void setContentLanguage(Locale language) { in setContentLanguage()
167 retval.locale = (Locale) this.locale.clone(); in clone()

12345678910>>...30