/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 …]
|
D | DecimalFormatSymbolsTest.java | 15 import com.ibm.icu.util.ULocale; 24 DecimalFormatSymbols dfs2 = new DecimalFormatSymbols(ULocale.US); in testHashCode() 56 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testDecimalFormatSymbolsULocale() 64 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetZeroDigit() 72 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testSetZeroDigit() 85 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetGroupingSeparator() 93 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testSetGroupingSeparator() 106 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetDecimalSeparator() 114 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testSetDecimalSeparator() 127 DecimalFormatSymbols dfs = new DecimalFormatSymbols(ULocale.US); in testGetPerMill() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleAliasTest.java | 26 import com.ibm.icu.util.ULocale; 30 private static final ULocale[][] _LOCALES = { 32 {new ULocale("en", "RH"), new ULocale("en", "ZW")}, 33 {new ULocale("in"), new ULocale("id")}, 34 {new ULocale("in", "ID"), new ULocale("id", "ID")}, 35 {new ULocale("iw"), new ULocale("he")}, 36 {new ULocale("iw", "IL"), new ULocale("he", "IL")}, 37 {new ULocale("ji"), new ULocale("yi")}, 39 {new ULocale("en", "BU"), new ULocale("en", "MM")}, 40 {new ULocale("en", "DY"), new ULocale("en", "BJ")}, [all …]
|
D | ULocaleTest.java | 44 import com.ibm.icu.util.ULocale; 45 import com.ibm.icu.util.ULocale.Builder; 46 import com.ibm.icu.util.ULocale.Category; 47 import com.ibm.icu.util.ULocale.Minimize; 82 public Object create(ULocale req) { in TestCalendar() 121 public Object create(ULocale req) { in TestDateFormat() 136 ULocale locale; in TestNumberFormat() 137 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat() 143 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat() 151 public Object create(ULocale req) { in TestNumberFormat() [all …]
|
D | LocaleMatcherTest.java | 21 import com.ibm.icu.util.ULocale; 32 private static final ULocale ZH_MO = new ULocale("zh_MO"); 33 private static final ULocale ZH_HK = new ULocale("zh_HK"); 79 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 81 …assertEquals("test " + a + " is closer to " + closer + " than to " + further, new ULocale(closer),… in assertCloser() 113 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese() 114 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese() 150 .add(ULocale.ENGLISH) in testOverrideData() 151 .add(ULocale.FRENCH) in testOverrideData() 152 .add(ULocale.UK) in testOverrideData() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleAliasTest.java | 27 import android.icu.util.ULocale; 31 private static final ULocale[][] _LOCALES = { 33 {new ULocale("en", "RH"), new ULocale("en", "ZW")}, 34 {new ULocale("in"), new ULocale("id")}, 35 {new ULocale("in", "ID"), new ULocale("id", "ID")}, 36 {new ULocale("iw"), new ULocale("he")}, 37 {new ULocale("iw", "IL"), new ULocale("he", "IL")}, 38 {new ULocale("ji"), new ULocale("yi")}, 40 {new ULocale("en", "BU"), new ULocale("en", "MM")}, 41 {new ULocale("en", "DY"), new ULocale("en", "BJ")}, [all …]
|
D | LocaleAliasCollationTest.java | 19 import android.icu.util.ULocale; 22 private static final ULocale[][] _LOCALES = { 23 {new ULocale("en", "RH"), new ULocale("en", "ZW")}, 24 {new ULocale("in"), new ULocale("id")}, 25 {new ULocale("in", "ID"), new ULocale("id", "ID")}, 26 {new ULocale("iw"), new ULocale("he")}, 27 {new ULocale("iw", "IL"), new ULocale("he", "IL")}, 28 {new ULocale("ji"), new ULocale("yi")}, 30 {new ULocale("en", "BU"), new ULocale("en", "MM")}, 31 {new ULocale("en", "DY"), new ULocale("en", "BJ")}, [all …]
|
D | ULocaleTest.java | 45 import android.icu.util.ULocale; 46 import android.icu.util.ULocale.Builder; 47 import android.icu.util.ULocale.Category; 48 import android.icu.util.ULocale.Minimize; 83 public Object create(ULocale req) { in TestCalendar() 122 public Object create(ULocale req) { in TestDateFormat() 137 ULocale locale; in TestNumberFormat() 138 public NFactory(ULocale loc, NumberFormat fmt) { in TestNumberFormat() 144 public NumberFormat createFormat(ULocale loc, int formatType) { in TestNumberFormat() 152 public Object create(ULocale req) { in TestNumberFormat() [all …]
|
D | LocaleMatcherTest.java | 22 import android.icu.util.ULocale; 33 private static final ULocale ZH_MO = new ULocale("zh_MO"); 34 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() 114 ULocale taiwanChinese = new ULocale("zh_TW"); in testChinese() 115 ULocale chinaChinese = new ULocale("zh_CN"); in testChinese() 151 .add(ULocale.ENGLISH) in testOverrideData() 152 .add(ULocale.FRENCH) in testOverrideData() 153 .add(ULocale.UK) in testOverrideData() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | LocaleAliasCollationTest.java | 18 import com.ibm.icu.util.ULocale; 21 private static final ULocale[][] _LOCALES = { 22 {new ULocale("en", "RH"), new ULocale("en", "ZW")}, 23 {new ULocale("in"), new ULocale("id")}, 24 {new ULocale("in", "ID"), new ULocale("id", "ID")}, 25 {new ULocale("iw"), new ULocale("he")}, 26 {new ULocale("iw", "IL"), new ULocale("he", "IL")}, 27 {new ULocale("ji"), new ULocale("yi")}, 29 {new ULocale("en", "BU"), new ULocale("en", "MM")}, 30 {new ULocale("en", "DY"), new ULocale("en", "BJ")}, [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationServiceTest.java | 27 import com.ibm.icu.util.ULocale; 33 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister() 34 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister() 37 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister() 38 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister() 44 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister() 45 if (!test.getLocale(ULocale.VALID_LOCALE).equals(ULocale.GERMAN)) { in TestRegister() 46 errln("Collation from Germany is really " + test.getLocale(ULocale.VALID_LOCALE)); in TestRegister() 52 ncol = Collator.getInstance(ULocale.US); in TestRegister() 58 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 | 28 import android.icu.util.ULocale; 34 Collator frcol = Collator.getInstance(ULocale.FRANCE); in TestRegister() 35 Collator uscol = Collator.getInstance(ULocale.US); in TestRegister() 38 Object key = Collator.registerInstance(frcol, ULocale.US); in TestRegister() 39 Collator ncol = Collator.getInstance(ULocale.US); in TestRegister() 45 Collator test = Collator.getInstance(ULocale.GERMANY); // CollatorFactory.handleCreate in TestRegister() 46 if (!test.getLocale(ULocale.VALID_LOCALE).equals(ULocale.GERMAN)) { in TestRegister() 47 errln("Collation from Germany is really " + test.getLocale(ULocale.VALID_LOCALE)); in TestRegister() 53 ncol = Collator.getInstance(ULocale.US); in TestRegister() 59 ULocale fu_FU = new ULocale("fu_FU_FOO"); in TestRegister() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | BreakIterator.java | 21 import android.icu.util.ULocale; 538 return getWordInstance(ULocale.getDefault()); in getWordInstance() 550 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 560 public static BreakIterator getWordInstance(ULocale where) in getWordInstance() 574 return getLineInstance(ULocale.getDefault()); in getLineInstance() 587 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 598 public static BreakIterator getLineInstance(ULocale where) in getLineInstance() 612 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance() 625 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 636 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BreakIterator.java | 20 import com.ibm.icu.util.ULocale; 573 return getWordInstance(ULocale.getDefault()); in getWordInstance() 586 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 597 public static BreakIterator getWordInstance(ULocale where) in getWordInstance() 612 return getLineInstance(ULocale.getDefault()); in getLineInstance() 626 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 638 public static BreakIterator getLineInstance(ULocale where) in getLineInstance() 653 return getCharacterInstance(ULocale.getDefault()); in getCharacterInstance() 667 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 679 public static BreakIterator getCharacterInstance(ULocale where) in getCharacterInstance() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | LocalePriorityList.java | 71 public class LocalePriorityList implements Iterable<ULocale> { 78 private final Map<ULocale, Double> languagesAndWeights; 86 public static Builder add(ULocale... languageCode) { in add() 97 public static Builder add(ULocale languageCode, final double weight) { in add() 129 public Double getWeight(ULocale language) { in getWeight() 139 for (final ULocale language : languagesAndWeights.keySet()) { in toString() 155 public Iterator<ULocale> iterator() { in iterator() 189 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList() argument 201 private final Map<ULocale, Double> languageToWeight 202 = new LinkedHashMap<ULocale, Double>(); [all …]
|
D | LocaleMatcher.java | 63 private static final ULocale UNKNOWN_LOCALE = new ULocale("und"); 74 private final ULocale defaultLanguage; 126 for (final ULocale language : languagePriorityList) { in LocaleMatcher() 130 Iterator<ULocale> it = languagePriorityList.iterator(); in LocaleMatcher() 147 …public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { in match() 159 public ULocale canonicalize(ULocale ulocale) { in canonicalize() 168 return new ULocale( in canonicalize() 183 public ULocale getBestMatch(LocalePriorityList languageList) { in getBestMatch() 185 ULocale bestTableMatch = null; in getBestMatch() 188 for (final ULocale language : languageList) { in getBestMatch() [all …]
|
D | ULocale.java | 103 public final class ULocale implements Serializable, Comparable<ULocale> { class 117 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH); 122 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH); 127 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN); 132 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN); 137 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE); 142 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN); 147 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE); 175 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans"); 181 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant"); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocalePriorityList.java | 70 public class LocalePriorityList implements Iterable<ULocale> { 77 private final Map<ULocale, Double> languagesAndWeights; 86 public static Builder add(ULocale... languageCode) { in add() 98 public static Builder add(ULocale languageCode, final double weight) { in add() 133 public Double getWeight(ULocale language) { in getWeight() 144 for (final ULocale language : languagesAndWeights.keySet()) { in toString() 161 public Iterator<ULocale> iterator() { in iterator() 197 private LocalePriorityList(final Map<ULocale, Double> languageToWeight) { in LocalePriorityList() argument 210 private final Map<ULocale, Double> languageToWeight 211 = new LinkedHashMap<ULocale, Double>(); [all …]
|
D | LocaleMatcher.java | 62 private static final ULocale UNKNOWN_LOCALE = new ULocale("und"); 73 private final ULocale defaultLanguage; 127 for (final ULocale language : languagePriorityList) { in LocaleMatcher() 131 Iterator<ULocale> it = languagePriorityList.iterator(); in LocaleMatcher() 149 …public double match(ULocale desired, ULocale desiredMax, ULocale supported, ULocale supportedMax) { in match() 162 public ULocale canonicalize(ULocale ulocale) { in canonicalize() 171 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 …]
|
D | ULocale.java | 116 public final class ULocale implements Serializable, Comparable<ULocale> { class 131 public static final ULocale ENGLISH = new ULocale("en", Locale.ENGLISH); 137 public static final ULocale FRENCH = new ULocale("fr", Locale.FRENCH); 143 public static final ULocale GERMAN = new ULocale("de", Locale.GERMAN); 149 public static final ULocale ITALIAN = new ULocale("it", Locale.ITALIAN); 155 public static final ULocale JAPANESE = new ULocale("ja", Locale.JAPANESE); 161 public static final ULocale KOREAN = new ULocale("ko", Locale.KOREAN); 167 public static final ULocale CHINESE = new ULocale("zh", Locale.CHINESE); 196 public static final ULocale SIMPLIFIED_CHINESE = new ULocale("zh_Hans"); 203 public static final ULocale TRADITIONAL_CHINESE = new ULocale("zh_Hant"); [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/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRangesTest.java | 26 import android.icu.util.ULocale; 46 final ULocale locale = new ULocale(test[0]); in TestLocaleData() 64 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() 76 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 77 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 78 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 79 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 80 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 81 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 83 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.NARROW, Currency.getInstance("EUR"), "€0.00–1.00"}, in TestFormatting() [all …]
|
D | ListFormatterTest.java | 19 import android.icu.util.ULocale; 48 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish() 49 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish() 71 checkData(ListFormatter.getInstance(new ULocale("en_GB")), EnglishGBTestData); in TestEnglishGB() 88 checkData(ListFormatter.getInstance(new ULocale("zh_Hant_HK")), ChineseTradHKTestData); in TestChineseTradHK() 102 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese() 131 checkData(ListFormatter.getInstance(ULocale.ROOT), RootTestData); in TestSpecial() 133 checkData(ListFormatter.getInstance(new ULocale("xxx")), EnglishTestData); in TestSpecial() 148 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestFromList() 158 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestCreatePatternForNumItems() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRangesTest.java | 25 import com.ibm.icu.util.ULocale; 45 final ULocale locale = new ULocale(test[0]); in TestLocaleData() 63 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() 75 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 76 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 77 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 78 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 79 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 80 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 82 … {0.0, 1.0, ULocale.ENGLISH, FormatWidth.NARROW, Currency.getInstance("EUR"), "€0.00–1.00"}, in TestFormatting() [all …]
|
D | ListFormatterTest.java | 18 import com.ibm.icu.util.ULocale; 47 checkData(ListFormatter.getInstance(ULocale.ENGLISH), EnglishTestData); in TestEnglish() 48 checkData(ListFormatter.getInstance(ULocale.US), EnglishTestData); in TestEnglish() 70 checkData(ListFormatter.getInstance(new ULocale("en_GB")), EnglishGBTestData); in TestEnglishGB() 87 checkData(ListFormatter.getInstance(new ULocale("zh_Hant_HK")), ChineseTradHKTestData); in TestChineseTradHK() 101 checkData(ListFormatter.getInstance(ULocale.JAPANESE), JapaneseTestData); in TestJapanese() 130 checkData(ListFormatter.getInstance(ULocale.ROOT), RootTestData); in TestSpecial() 132 checkData(ListFormatter.getInstance(new ULocale("xxx")), EnglishTestData); in TestSpecial() 147 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestFromList() 157 ListFormatter listFormatter = ListFormatter.getInstance(ULocale.ENGLISH); in TestCreatePatternForNumItems() [all …]
|