/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | ULocaleTest.java | 15 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleAliasTest.java | 28 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 …]
|
D | ULocaleTest.java | 49 import com.ibm.icu.util.ULocale; 50 import com.ibm.icu.util.ULocale.Builder; 51 import com.ibm.icu.util.ULocale.Category; 52 import com.ibm.icu.util.ULocale.Minimize; 88 public Object create(ULocale req) { in TestCalendar() 127 public Object create(ULocale req) { in TestDateFormat() 142 ULocale locale; in TestNumberFormat() 143 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat() 149 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat() 157 public Object create(ULocale req) { in TestNumberFormat() [all …]
|
D | LocaleMatcherTest.java | 33 import com.ibm.icu.util.ULocale; 45 private static final ULocale ZH_MO = new ULocale("zh_MO"); 46 private static final ULocale ZH_HK = new ULocale("zh_HK"); 80 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 82 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 88 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese() 89 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese() 119 add(ULocale.FRENCH).add(ULocale.UK).add(ULocale.ENGLISH). in testBasics() 123 assertEquals(ULocale.UK, matcher.getBestMatch(ULocale.UK)); in testBasics() 124 assertEquals(ULocale.ENGLISH, matcher.getBestMatch(ULocale.US)); in testBasics() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleAliasTest.java | 29 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 …]
|
D | LocaleAliasCollationTest.java | 21 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 …]
|
D | ULocaleTest.java | 50 import android.icu.util.ULocale; 51 import android.icu.util.ULocale.Builder; 52 import android.icu.util.ULocale.Category; 53 import android.icu.util.ULocale.Minimize; 91 public Object create(ULocale req) { in TestCalendar() 130 public Object create(ULocale req) { in TestDateFormat() 145 ULocale locale; in TestNumberFormat() 146 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat() 152 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat() 160 public Object create(ULocale req) { in TestNumberFormat() [all …]
|
D | LocaleMatcherTest.java | 34 import android.icu.util.ULocale; 48 private static final ULocale ZH_MO = new ULocale("zh_MO"); 49 private static final ULocale ZH_HK = new ULocale("zh_HK"); 83 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 85 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 91 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese() 92 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese() 122 add(ULocale.FRENCH).add(ULocale.UK).add(ULocale.ENGLISH). in testBasics() 126 assertEquals(ULocale.UK, matcher.getBestMatch(ULocale.UK)); in testBasics() 127 assertEquals(ULocale.ENGLISH, matcher.getBestMatch(ULocale.US)); in testBasics() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | LocaleAliasCollationTest.java | 20 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/ |
D | XLocaleMatcher.java | 19 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/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 58 import com.ibm.icu.util.ULocale; 76 ULocale.ENGLISH, in notationSimple() 91 ULocale.ENGLISH, in notationSimple() 106 ULocale.ENGLISH, in notationSimple() 117 ULocale.ENGLISH, in notationScientific() 132 ULocale.ENGLISH, in notationScientific() 147 ULocale.ENGLISH, in notationScientific() 162 ULocale.ENGLISH, in notationScientific() 177 ULocale.ENGLISH, in notationScientific() 185 ULocale.ENGLISH, in notationScientific() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 59 import android.icu.util.ULocale; 79 ULocale.ENGLISH, in notationSimple() 94 ULocale.ENGLISH, in notationSimple() 109 ULocale.ENGLISH, in notationSimple() 120 ULocale.ENGLISH, in notationScientific() 135 ULocale.ENGLISH, in notationScientific() 150 ULocale.ENGLISH, in notationScientific() 165 ULocale.ENGLISH, in notationScientific() 180 ULocale.ENGLISH, in notationScientific() 188 ULocale.ENGLISH, in notationScientific() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | LocaleMatcherTest.java | 17 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 …]
|
D | LanguageInfoTest.java | 16 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/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationServiceTest.java | 29 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/tests/android/icu/dev/test/collator/ |
D | CollationServiceTest.java | 30 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/android_icu4j/src/main/java/android/icu/util/ |
D | ULocale.java | 102 public final class ULocale implements Serializable, Comparable<ULocale> { class 161 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH); 166 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH); 171 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN); 176 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN); 181 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE); 186 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN); 191 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE); 219 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans"); 225 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant"); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ULocale.java | 115 public final class ULocale implements Serializable, Comparable<ULocale> { class 178 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH); 184 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH); 190 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN); 196 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN); 202 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE); 208 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN); 214 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE); 243 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans"); 250 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant"); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | BreakIterator.java | 22 import android.icu.util.ULocale; 567 return getWordInstance(ULocale.getDefault()); in getWordInstance() 579 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 589 public static BreakIterator getWordInstance(ULocale where) in getWordInstance() 603 return getLineInstance(ULocale.getDefault()); in getLineInstance() 616 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 627 public static BreakIterator getLineInstance(ULocale where) in getLineInstance() 641 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance() 654 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 665 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BreakIterator.java | 21 import com.ibm.icu.util.ULocale; 602 return getWordInstance(ULocale.getDefault()); in getWordInstance() 615 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 626 public static BreakIterator getWordInstance(ULocale where) in getWordInstance() 641 return getLineInstance(ULocale.getDefault()); in getLineInstance() 655 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 667 public static BreakIterator getLineInstance(ULocale where) in getLineInstance() 682 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance() 696 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 708 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 41 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 …]
|
D | ListFormatterTest.java | 21 import android.icu.util.ULocale; 53 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish() 54 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish() 76 checkData(ListFormatter.getInstance(new ULocale("en_GB")), EnglishGBTestData); in TestEnglishGB() 93 checkData(ListFormatter.getInstance(new ULocale("zh_Hant_HK")), ChineseTradHKTestData); in TestChineseTradHK() 107 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese() 136 checkData(ListFormatter.getInstance(ULocale.ROOT), RootTestData); in TestSpecial() 138 checkData(ListFormatter.getInstance(new ULocale("xxx")), EnglishTestData); in TestSpecial() 153 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestFromList() 163 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestCreatePatternForNumItems() [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
D | ULocale.java | 105 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 …]
|
/external/cldr/tools/java/com/ibm/icu/util/ |
D | LocaleMatcher.java | 55 private static final ULocale UNKNOWN_LOCALE = new ULocale("und"); 66 private final ULocale defaultLanguage; 120 for (final ULocale language : languagePriorityList) { in LocaleMatcher() 124 Iterator<ULocale> it = languagePriorityList.iterator(); in LocaleMatcher() 141 …public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { in match() 153 public ULocale canonicalize(ULocale ulocale) { in canonicalize() 162 return new ULocale( in canonicalize() 177 public ULocale getBestMatch(LocalePriorityList languageList) { in getBestMatch() 179 ULocale bestTableMatch = null; in getBestMatch() 182 for (final ULocale language : languageList) { in getBestMatch() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | CompactDecimalFormatTest.java | 40 import com.ibm.icu.util.ULocale; 368 CompactDecimalFormat.getInstance(ULocale.ENGLISH, CompactStyle.SHORT); in TestDefaultSignificantDigits() 378 getCDFInstance(ULocale.forLanguageTag("sw"), CompactStyle.SHORT); in TestCharacterIterator() 390 checkLocale(ULocale.ENGLISH, CompactStyle.SHORT, EnglishTestData); in TestEnglishShort() 402 checkLocale(ULocale.forLanguageTag("cs"), CompactStyle.SHORT, CsTestDataShort); in TestCsShort() 407 checkLocale(ULocale.forLanguageTag("sk"), CompactStyle.LONG, SkTestDataLong); in TestSkLong() 412 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.SHORT, SerbianTestDataShort); in TestSerbianShort() 417 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLong); in TestSerbianLong() 422 checkLocale(ULocale.forLanguageTag("sr"), CompactStyle.LONG, SerbianTestDataLongNegative); in TestSerbianLongNegative() 427 checkLocale(ULocale.JAPANESE, CompactStyle.SHORT, JapaneseTestData); in TestJapaneseShort() [all …]
|