Home
last modified time | relevance | path

Searched refs:ICU (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/libcore/icu/
DICUTest.java28 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
29 ICU.getISOLanguages()[0] = null; in test_getISOLanguages()
30 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
35 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
36 ICU.getISOCountries()[0] = null; in test_getISOCountries()
37 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
42 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
43 ICU.getAvailableLocales()[0] = null; in test_getAvailableLocales()
44 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
48 assertEquals("d MMMM", ICU.getBestDateTimePattern("MMMMd", new Locale("ca", "ES"))); in test_getBestDateTimePattern()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIcuBenchmark.java20 import libcore.icu.ICU;
44 ICU.getBestDateTimePattern("dEEEMMM", new Locale("en", "US")); in time_getBestDateTimePattern()
51 ICU.toUpperCase(ASCII_LOWERCASE, Locale.US); in time_toUpperCaseAsciiUS()
58 ICU.toLowerCase(ASCII_UPPERCASE, Locale.US); in time_toLowerCaseAsciiUs()
65 ICU.toUpperCase(LAT_1_SUPPLEMENT, Locale.FRANCE); in time_toUpperCaseLat1SuplFr()
72 ICU.toUpperCase(LAT_EXTENDED_A, CZECH_LOCALE); in time_toUpperCaseLatExtACz()
79 ICU.toUpperCase(LAT_EXTENDED_B, PINYIN_LOCALE); in time_toUpperCaseLatExtBPinyin()
DStringCaseMappingBenchmark.java108 libcore.icu.ICU.toUpperCase(s.value, Locale.US); in timeToUpperCase_ICU()
114 libcore.icu.ICU.toLowerCase(s.value, Locale.US); in timeToLowerCase_ICU()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java19 import libcore.icu.ICU;
114 if (ICU.U_FAILURE(error)) { in implFlush()
115 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush()
117 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush()
140 if (ICU.U_FAILURE(error)) { in decodeLoop()
141 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in decodeLoop()
143 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in decodeLoop()
145 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in decodeLoop()
DCharsetEncoderICU.java21 import libcore.icu.ICU;
143 if (ICU.U_FAILURE(error)) { in implFlush()
144 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush()
146 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush()
170 if (ICU.U_FAILURE(error)) { in encodeLoop()
171 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in encodeLoop()
173 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in encodeLoop()
175 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in encodeLoop()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp790 NATIVE_METHOD(ICU, addLikelySubtags, "(Ljava/lang/String;)Ljava/lang/String;"),
791 NATIVE_METHOD(ICU, getAvailableBreakIteratorLocalesNative, "()[Ljava/lang/String;"),
792 NATIVE_METHOD(ICU, getAvailableCalendarLocalesNative, "()[Ljava/lang/String;"),
793 NATIVE_METHOD(ICU, getAvailableCollatorLocalesNative, "()[Ljava/lang/String;"),
794 NATIVE_METHOD(ICU, getAvailableCurrencyCodes, "()[Ljava/lang/String;"),
795 NATIVE_METHOD(ICU, getAvailableDateFormatLocalesNative, "()[Ljava/lang/String;"),
796 NATIVE_METHOD(ICU, getAvailableLocalesNative, "()[Ljava/lang/String;"),
797 NATIVE_METHOD(ICU, getAvailableNumberFormatLocalesNative, "()[Ljava/lang/String;"),
798 …NATIVE_METHOD(ICU, getBestDateTimePatternNative, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang…
799 NATIVE_METHOD(ICU, getCldrVersion, "()Ljava/lang/String;"),
[all …]
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java204 if (!ICU.initLocaleDataNative(locale.toLanguageTag(), localeData)) { in initLocaleData()
209 localeData.timeFormat_hm = ICU.getBestDateTimePattern("hm", locale); in initLocaleData()
210 localeData.timeFormat_Hm = ICU.getBestDateTimePattern("Hm", locale); in initLocaleData()
211 localeData.timeFormat_hms = ICU.getBestDateTimePattern("hms", locale); in initLocaleData()
212 localeData.timeFormat_Hms = ICU.getBestDateTimePattern("Hms", locale); in initLocaleData()
DICU.java32 public final class ICU { class
/libcore/libart/src/main/java/java/lang/
DCaseMapper.java21 import libcore.icu.ICU;
50 return ICU.toLowerCase(s, locale); in toLowerCase()
59 return ICU.toLowerCase(s, locale); in toLowerCase()
148 return ICU.toUpperCase(s, locale); in toUpperCase()
160 return ICU.toUpperCase(s, locale); in toUpperCase()
/libcore/ojluni/src/main/java/java/util/
DLocale.java52 import libcore.icu.ICU;
940 ICU.setDefaultLocale(newLocale.toLanguageTag()); in setDefault()
1018 return ICU.getISOCountries(); in getISOCountries()
1037 return ICU.getISOLanguages(); in getISOLanguages()
1554 String language3 = ICU.getISO3Language(lang); in getISO3Language()
1587 String country3 = ICU.getISO3Country("en-" + region); in getISO3Country()
1636 String result = ICU.getDisplayLanguage(this, locale); in getDisplayLanguage()
1638 result = ICU.getDisplayLanguage(this, Locale.getDefault()); in getDisplayLanguage()
1701 String result = ICU.getDisplayScript(this, locale); in getDisplayScript()
1703 result = ICU.getDisplayScript(this, Locale.getDefault()); in getDisplayScript()
[all …]
DCurrency.java31 import libcore.icu.ICU;
138 String currencyCode = ICU.getCurrencyCode(country); in getInstance()
/libcore/luni/src/test/java/libcore/java/util/
DLocaleInternalsTest.java27 import libcore.icu.ICU;
/libcore/ojluni/src/main/java/java/text/
DCollator.java44 import libcore.icu.ICU;
275 return ICU.getAvailableCollatorLocales(); in getAvailableLocales()
/libcore/ojluni/src/main/java/sun/util/
DLocaleServiceProviderPool.java46 import libcore.icu.ICU;
179 Locale[] allLocales = ICU.getAvailableLocales();
268 Locale[] allLocales = ICU.getAvailableLocales(); in getJRELocales()
/libcore/ojluni/src/main/java/java/lang/
DSystem.java38 import libcore.icu.ICU;
971 p.put("android.icu.library.version", ICU.getIcuVersion()); in initUnchangeableSystemProperties()
972 p.put("android.icu.unicode.version", ICU.getUnicodeVersion()); in initUnchangeableSystemProperties()
973 p.put("android.icu.cldr.version", ICU.getCldrVersion()); in initUnchangeableSystemProperties()
/libcore/expectations/
Dbrokentests.txt45 …description: "Some tests depend on ICU data, which has changed. Others make assumptions about floa…
Dknownfailures.txt27 description: "ICU seems to treat unknown and invalid locales differently",
/libcore/
DNOTICE32 == NOTICE file for the ICU License. ==
Dnon_openjdk_java_files.mk362 luni/src/main/java/libcore/icu/ICU.java \
/libcore/ojluni/
DNOTICE110 This locale data is based on the ICU's Vietnamese locale data (rev. 1.38)
1503 @stable ICU 2.0
1518 @stable ICU 2.0