Searched refs:localeFromIcuLocaleId (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | ICUTest.java | 59 assertEquals(Locale.ENGLISH, ICU.localeFromIcuLocaleId("en")); in test_localeFromString() 60 assertEquals(Locale.ENGLISH, ICU.localeFromIcuLocaleId("en_")); in test_localeFromString() 61 assertEquals(Locale.ENGLISH, ICU.localeFromIcuLocaleId("en__")); in test_localeFromString() 62 assertEquals(Locale.US, ICU.localeFromIcuLocaleId("en_US")); in test_localeFromString() 63 assertEquals(Locale.US, ICU.localeFromIcuLocaleId("en_US_")); in test_localeFromString() 64 assertEquals(new Locale("", "US", ""), ICU.localeFromIcuLocaleId("_US")); in test_localeFromString() 65 assertEquals(new Locale("", "US", ""), ICU.localeFromIcuLocaleId("_US_")); in test_localeFromString() 66 assertEquals(new Locale("", "", "POSIX"), ICU.localeFromIcuLocaleId("__POSIX")); in test_localeFromString() 67 assertEquals(new Locale("aa", "BB", "CCCCC"), ICU.localeFromIcuLocaleId("aa_BB_CCCCC")); in test_localeFromString()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | ICU.java | 188 public static Locale localeFromIcuLocaleId(String localeId) { in localeFromIcuLocaleId() method in ICU 277 set.add(localeFromIcuLocaleId(localeName)); in localesFromStrings()
|