Home
last modified time | relevance | path

Searched refs:ULocale (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DULocaleTest.java15 import com.ibm.icu.util.ULocale;
16 import com.ibm.icu.util.ULocale.Category;
23 private ULocale longULocale;
36 longULocale = new ULocale(longULocaleName); in setUp()
37 sampleLocale = new ULocale(sampleName).toLocale(); in setUp()
44 ULocale obj = ULocale.GERMANY; in testHashCode()
45 ULocale eq = new ULocale("de_DE"); in testHashCode()
46 ULocale neq = new ULocale("de_DE_FRENCH"); in testHashCode()
55 assertEquals(ULocale.GERMANY, ULocale.forLocale(Locale.GERMANY)); in testForLocale()
62 assertEquals(ULocale.GERMAN, new ULocale("de")); in testULocaleString()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleAliasTest.java29 import android.icu.util.ULocale;
36 private static final ULocale[][] _LOCALES = {
38 {new ULocale("en", "RH"), new ULocale("en", "ZW")},
39 {new ULocale("in"), new ULocale("id")},
40 {new ULocale("in", "ID"), new ULocale("id", "ID")},
41 {new ULocale("iw"), new ULocale("he")},
42 {new ULocale("iw", "IL"), new ULocale("he", "IL")},
43 {new ULocale("ji"), new ULocale("yi")},
45 {new ULocale("en", "BU"), new ULocale("en", "MM")},
46 {new ULocale("en", "DY"), new ULocale("en", "BJ")},
[all …]
DLocaleAliasCollationTest.java21 import android.icu.util.ULocale;
27 private static final ULocale[][] _LOCALES = {
28 {new ULocale("en", "RH"), new ULocale("en", "ZW")},
29 {new ULocale("in"), new ULocale("id")},
30 {new ULocale("in", "ID"), new ULocale("id", "ID")},
31 {new ULocale("iw"), new ULocale("he")},
32 {new ULocale("iw", "IL"), new ULocale("he", "IL")},
33 {new ULocale("ji"), new ULocale("yi")},
35 {new ULocale("en", "BU"), new ULocale("en", "MM")},
36 {new ULocale("en", "DY"), new ULocale("en", "BJ")},
[all …]
DULocaleTest.java48 import android.icu.util.ULocale;
49 import android.icu.util.ULocale.Builder;
50 import android.icu.util.ULocale.Category;
51 import android.icu.util.ULocale.Minimize;
89 public Object create(ULocale req) { in TestCalendar()
128 public Object create(ULocale req) { in TestDateFormat()
143 ULocale locale; in TestNumberFormat()
144 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat()
150 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat()
158 public Object create(ULocale req) { in TestNumberFormat()
[all …]
DLocaleMatcherTest.java27 import android.icu.util.ULocale;
41 private static final ULocale ZH_MO = new ULocale("zh_MO");
42 private static final ULocale ZH_HK = new ULocale("zh_HK");
88 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
90 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
122 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese()
123 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese()
159 .add(ULocale.ENGLISH) in testOverrideData()
160 .add(ULocale.FRENCH) in testOverrideData()
161 .add(ULocale.UK) in testOverrideData()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleAliasTest.java28 import com.ibm.icu.util.ULocale;
33 private static final ULocale[][] _LOCALES = {
35 {new ULocale("en", "RH"), new ULocale("en", "ZW")},
36 {new ULocale("in"), new ULocale("id")},
37 {new ULocale("in", "ID"), new ULocale("id", "ID")},
38 {new ULocale("iw"), new ULocale("he")},
39 {new ULocale("iw", "IL"), new ULocale("he", "IL")},
40 {new ULocale("ji"), new ULocale("yi")},
42 {new ULocale("en", "BU"), new ULocale("en", "MM")},
43 {new ULocale("en", "DY"), new ULocale("en", "BJ")},
[all …]
DULocaleTest.java47 import com.ibm.icu.util.ULocale;
48 import com.ibm.icu.util.ULocale.Builder;
49 import com.ibm.icu.util.ULocale.Category;
50 import com.ibm.icu.util.ULocale.Minimize;
86 public Object create(ULocale req) { in TestCalendar()
125 public Object create(ULocale req) { in TestDateFormat()
140 ULocale locale; in TestNumberFormat()
141 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat()
147 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat()
155 public Object create(ULocale req) { in TestNumberFormat()
[all …]
DLocaleMatcherTest.java26 import com.ibm.icu.util.ULocale;
38 private static final ULocale ZH_MO = new ULocale("zh_MO");
39 private static final ULocale ZH_HK = new ULocale("zh_HK");
85 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
87 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
119 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese()
120 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese()
156 .add(ULocale.ENGLISH) in testOverrideData()
157 .add(ULocale.FRENCH) in testOverrideData()
158 .add(ULocale.UK) in testOverrideData()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/
DLocaleAliasCollationTest.java20 import com.ibm.icu.util.ULocale;
24 private static final ULocale[][] _LOCALES = {
25 {new ULocale("en", "RH"), new ULocale("en", "ZW")},
26 {new ULocale("in"), new ULocale("id")},
27 {new ULocale("in", "ID"), new ULocale("id", "ID")},
28 {new ULocale("iw"), new ULocale("he")},
29 {new ULocale("iw", "IL"), new ULocale("he", "IL")},
30 {new ULocale("ji"), new ULocale("yi")},
32 {new ULocale("en", "BU"), new ULocale("en", "MM")},
33 {new ULocale("en", "DY"), new ULocale("en", "BJ")},
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DXLocaleMatcher.java19 import com.ibm.icu.util.ULocale;
27 private static final ULocale UND_LOCALE = new ULocale("und");
38 …private final Map<LSR, Collection<ULocale>> supportedLanguages; // the locales in the collection a…
39 private final Set<ULocale> exactSupportedLocales; // the locales in the collection are ordered!
40 private final ULocale defaultLanguage;
43 private Set<ULocale> supportedLanguagesList;
46 private ULocale defaultLanguage;
64 public Builder setSupportedLocales(Set<ULocale> languagePriorityList) { in setSupportedLocales()
101 public Builder setDefaultLanguage(ULocale defaultLanguage) { in setDefaultLanguage()
141 public XLocaleMatcher(Set<ULocale> supportedLocales) { in XLocaleMatcher()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXLocaleMatcher.java20 import com.ibm.icu.util.ULocale;
28 private static final ULocale UND_LOCALE = new ULocale("und");
42 …private final Map<LSR, Set<ULocale>> supportedLanguages; // the locales in the collection are orde…
43 private final Set<ULocale> exactSupportedLocales; // the locales in the collection are ordered!
44 private final ULocale defaultLanguage;
47 private Set<ULocale> supportedLanguagesList;
50 private ULocale defaultLanguage;
65 public Builder setSupportedLocales(Set<ULocale> languagePriorityList) { in setSupportedLocales()
66 Set<ULocale> temp = new LinkedHashSet<ULocale>(); // maintain order in setSupportedLocales()
103 public Builder setDefaultLanguage(ULocale defaultLanguage) { in setDefaultLanguage()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXLocaleMatcher.java21 import android.icu.util.ULocale;
30 private static final ULocale UND_LOCALE = new ULocale("und");
44 …private final Map<LSR, Set<ULocale>> supportedLanguages; // the locales in the collection are orde…
45 private final Set<ULocale> exactSupportedLocales; // the locales in the collection are ordered!
46 private final ULocale defaultLanguage;
52 private Set<ULocale> supportedLanguagesList;
55 private ULocale defaultLanguage;
70 public Builder setSupportedLocales(Set<ULocale> languagePriorityList) { in setSupportedLocales()
71 Set<ULocale> temp = new LinkedHashSet<ULocale>(); // maintain order in setSupportedLocales()
108 public Builder setDefaultLanguage(ULocale defaultLanguage) { in setDefaultLanguage()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java59 import android.icu.util.ULocale;
78 ULocale.ENGLISH, in notationSimple()
93 ULocale.ENGLISH, in notationSimple()
108 ULocale.ENGLISH, in notationSimple()
119 ULocale.ENGLISH, in notationScientific()
134 ULocale.ENGLISH, in notationScientific()
149 ULocale.ENGLISH, in notationScientific()
164 ULocale.ENGLISH, in notationScientific()
179 ULocale.ENGLISH, in notationScientific()
190 ULocale.ENGLISH, in notationCompact()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java58 import com.ibm.icu.util.ULocale;
75 ULocale.ENGLISH, in notationSimple()
90 ULocale.ENGLISH, in notationSimple()
105 ULocale.ENGLISH, in notationSimple()
116 ULocale.ENGLISH, in notationScientific()
131 ULocale.ENGLISH, in notationScientific()
146 ULocale.ENGLISH, in notationScientific()
161 ULocale.ENGLISH, in notationScientific()
176 ULocale.ENGLISH, in notationScientific()
187 ULocale.ENGLISH, in notationCompact()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DLocaleMatcherTest.java17 import com.ibm.icu.util.ULocale;
27 private static final ULocale ZH_MO = new ULocale("zh_MO");
28 private static final ULocale ZH_HK = new ULocale("zh_HK");
77 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
79 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser()
110 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese()
111 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese()
144 .add(ULocale.ENGLISH) in testOverrideData()
145 .add(ULocale.FRENCH) in testOverrideData()
146 .add(ULocale.UK) in testOverrideData()
[all …]
DLanguageInfoTest.java16 import com.ibm.icu.util.ULocale;
21 static Map<ULocale, ULocale> FALLBACKS = new LinkedHashMap<>();
87 .add(ULocale.FRENCH).add(ULocale.UK).add(ULocale.ENGLISH) in testBasics()
91 assertEquals("UK in FR, UK, EN", ULocale.UK, in testBasics()
92 matcher.getBestMatch(ULocale.UK)); in testBasics()
93 assertEquals("US in FR, UK, EN", ULocale.ENGLISH, in testBasics()
94 matcher.getBestMatch(ULocale.US)); in testBasics()
95 assertEquals("FR in FR, UK, EN", ULocale.FRENCH, in testBasics()
96 matcher.getBestMatch(ULocale.FRANCE)); in testBasics()
97 assertEquals("JA in FR, UK, EN", ULocale.FRENCH, in testBasics()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationServiceTest.java30 import android.icu.util.ULocale;
39 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
40 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
43 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
44 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
50 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
51 if (!test.getLocale(ULocale.VALID_LOCALE).equals(ULocale.GERMAN)) { in TestRegister()
52 errln("Collation from Germany is really " + test.getLocale(ULocale.VALID_LOCALE)); in TestRegister()
58 ncol = Collator.getInstance(ULocale.US); in TestRegister()
64 ULocale fu_FU = new ULocale("fu_FU_FOO"); in TestRegister()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationServiceTest.java29 import com.ibm.icu.util.ULocale;
36 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister()
37 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister()
40 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister()
41 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister()
47 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister()
48 if (!test.getLocale(ULocale.VALID_LOCALE).equals(ULocale.GERMAN)) { in TestRegister()
49 errln("Collation from Germany is really " + test.getLocale(ULocale.VALID_LOCALE)); in TestRegister()
55 ncol = Collator.getInstance(ULocale.US); in TestRegister()
61 ULocale fu_FU = new ULocale("fu_FU_FOO"); in TestRegister()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java100 public final class ULocale implements Serializable, Comparable<ULocale> { class
114 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH);
119 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH);
124 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN);
129 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN);
134 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE);
139 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN);
144 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE);
172 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans");
178 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant");
[all …]
DLocaleMatcher.java66 private static final ULocale UNKNOWN_LOCALE = new ULocale("und");
77 private final ULocale defaultLanguage;
130 for (final ULocale language : languagePriorityList) { in LocaleMatcher()
134 Iterator<ULocale> it = languagePriorityList.iterator(); in LocaleMatcher()
151 …public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { in match()
163 public ULocale canonicalize(ULocale ulocale) { in canonicalize()
172 return new ULocale( in canonicalize()
187 public ULocale getBestMatch(LocalePriorityList languageList) { in getBestMatch()
189 ULocale bestTableMatch = null; in getBestMatch()
192 for (final ULocale language : languageList) { in getBestMatch()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java113 public final class ULocale implements Serializable, Comparable<ULocale> { class
128 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH);
134 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH);
140 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN);
146 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN);
152 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE);
158 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN);
164 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE);
193 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans");
200 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant");
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java41 import android.icu.util.ULocale;
371 CompactDecimalFormat.getInstance(ULocale.ENGLISH, CompactStyle.SHORT); in TestDefaultSignificantDigits()
381 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator()
393 checkLocale(ULocale.ENGLISH, CompactStyle.SHORT, EnglishTestData); in TestEnglishShort()
405 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort()
410 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong()
415 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort()
420 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong()
425 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative()
430 checkLocale(ULocale.JAPANESE, CompactStyle.SHORT, JapaneseTestData); in TestJapaneseShort()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBreakIterator.java22 import android.icu.util.ULocale;
565 return getWordInstance(ULocale.getDefault()); in getWordInstance()
577 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance()
587 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
601 return getLineInstance(ULocale.getDefault()); in getLineInstance()
614 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance()
625 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
639 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance()
652 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance()
663 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBreakIterator.java21 import com.ibm.icu.util.ULocale;
599 return getWordInstance(ULocale.getDefault()); in getWordInstance()
612 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance()
623 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
638 return getLineInstance(ULocale.getDefault()); in getLineInstance()
652 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance()
664 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
679 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance()
693 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance()
705 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java105 public final class ULocale implements Serializable { class
113 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH);
119 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH);
125 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN);
131 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN);
137 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE);
143 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN);
149 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE);
155 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans", Locale.CHINESE);
161 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant", Locale.CHINESE);
[all …]

12345678910>>...28