Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/icu/
DICUTest.java27 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
28 ICU.getISOLanguages()[0] = null; in test_getISOLanguages()
29 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
34 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
35 ICU.getISOCountries()[0] = null; in test_getISOCountries()
36 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
41 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
42 ICU.getAvailableLocales()[0] = null; in test_getAvailableLocales()
43 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
47 assertEquals("d MMMM", ICU.getBestDateTimePattern("MMMMd", new Locale("ca", "ES"))); in test_getBestDateTimePattern()
[all …]
/libcore/luni/src/main/java/java/util/
DCurrency.java21 import libcore.icu.ICU;
38 String symbol = ICU.getCurrencySymbol(Locale.US, currencyCode); in Currency()
82 String currencyCode = ICU.getCurrencyCode(country); in getInstance()
100 String[] currencyCodes = ICU.getAvailableCurrencyCodes(); in getAvailableCurrencies()
129 return ICU.getCurrencyDisplayName(locale, currencyCode); in getDisplayName()
162 String symbol = ICU.getCurrencySymbol(locale, currencyCode); in getSymbol()
179 return ICU.getCurrencyFractionDigits(currencyCode); in getDefaultFractionDigits()
DLocale.java26 import libcore.icu.ICU;
990 return ICU.getAvailableLocales(); in getAvailableLocales()
1035 String result = ICU.getDisplayCountry(this, locale); in getDisplayCountry()
1037 result = ICU.getDisplayCountry(this, Locale.getDefault()); in getDisplayCountry()
1073 String result = ICU.getDisplayLanguage(this, locale); in getDisplayLanguage()
1075 result = ICU.getDisplayLanguage(this, Locale.getDefault()); in getDisplayLanguage()
1174 String result = ICU.getDisplayVariant(this, locale); in getDisplayVariant()
1176 result = ICU.getDisplayVariant(this, Locale.getDefault()); in getDisplayVariant()
1198 String code = ICU.getISO3Country("en-" + countryCode); in getISO3Country()
1220 String code = ICU.getISO3Language(languageCode); in getISO3Language()
[all …]
DCalendar.java26 import libcore.icu.ICU;
950 return ICU.getAvailableCalendarLocales(); in getAvailableLocales()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoderICU.java19 import libcore.icu.ICU;
113 if (ICU.U_FAILURE(error)) { in implFlush()
114 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush()
116 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush()
139 if (ICU.U_FAILURE(error)) { in decodeLoop()
140 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in decodeLoop()
142 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in decodeLoop()
144 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in decodeLoop()
DCharsetEncoderICU.java21 import libcore.icu.ICU;
141 if (ICU.U_FAILURE(error)) { in implFlush()
142 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in implFlush()
144 } else if (error == ICU.U_TRUNCATED_CHAR_FOUND) { in implFlush()
168 if (ICU.U_FAILURE(error)) { in encodeLoop()
169 if (error == ICU.U_BUFFER_OVERFLOW_ERROR) { in encodeLoop()
171 } else if (error == ICU.U_INVALID_CHAR_FOUND) { in encodeLoop()
173 } else if (error == ICU.U_ILLEGAL_CHAR_FOUND) { in encodeLoop()
/libcore/benchmarks/src/benchmarks/regression/
DIcuBenchmark.java24 import libcore.icu.ICU;
29 ICU.getBestDateTimePattern("dEEEMMM", new Locale("en", "US")); in time_getBestDateTimePattern()
DStringCaseMappingBenchmark.java109 libcore.icu.ICU.toUpperCase(s.value, Locale.US); in timeToUpperCase_ICU()
115 libcore.icu.ICU.toLowerCase(s.value, Locale.US); in timeToLowerCase_ICU()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp782 NATIVE_METHOD(ICU, addLikelySubtags, "(Ljava/lang/String;)Ljava/lang/String;"),
783 NATIVE_METHOD(ICU, getAvailableBreakIteratorLocalesNative, "()[Ljava/lang/String;"),
784 NATIVE_METHOD(ICU, getAvailableCalendarLocalesNative, "()[Ljava/lang/String;"),
785 NATIVE_METHOD(ICU, getAvailableCollatorLocalesNative, "()[Ljava/lang/String;"),
786 NATIVE_METHOD(ICU, getAvailableCurrencyCodes, "()[Ljava/lang/String;"),
787 NATIVE_METHOD(ICU, getAvailableDateFormatLocalesNative, "()[Ljava/lang/String;"),
788 NATIVE_METHOD(ICU, getAvailableLocalesNative, "()[Ljava/lang/String;"),
789 NATIVE_METHOD(ICU, getAvailableNumberFormatLocalesNative, "()[Ljava/lang/String;"),
790 …NATIVE_METHOD(ICU, getBestDateTimePatternNative, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang…
791 NATIVE_METHOD(ICU, getCldrVersion, "()Ljava/lang/String;"),
[all …]
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java207 if (!ICU.initLocaleDataNative(locale.toLanguageTag(), localeData)) { in initLocaleData()
212 localeData.timeFormat_hm = ICU.getBestDateTimePattern("hm", locale); in initLocaleData()
213 localeData.timeFormat_Hm = ICU.getBestDateTimePattern("Hm", locale); in initLocaleData()
214 localeData.timeFormat_hms = ICU.getBestDateTimePattern("hms", locale); in initLocaleData()
215 localeData.timeFormat_Hms = ICU.getBestDateTimePattern("Hms", locale); in initLocaleData()
DICU.java31 public final class ICU { class
/libcore/luni/src/main/java/java/lang/
DCaseMapper.java20 import libcore.icu.ICU;
52 return ICU.toLowerCase(s, locale); in toLowerCase()
62 return ICU.toLowerCase(s, locale); in toLowerCase()
153 return ICU.toUpperCase(s, locale); in toUpperCase()
164 return ICU.toUpperCase(s, locale); in toUpperCase()
DSystem.java56 import libcore.icu.ICU;
770 p.put("android.icu.library.version", ICU.getIcuVersion()); in initUnchangeableSystemProperties()
771 p.put("android.icu.unicode.version", ICU.getUnicodeVersion()); in initUnchangeableSystemProperties()
772 p.put("android.icu.cldr.version", ICU.getCldrVersion()); in initUnchangeableSystemProperties()
/libcore/luni/src/test/java/libcore/java/util/
DLocaleInternalsTest.java27 import libcore.icu.ICU;
117 assertEquals("de_DE", ICU.getDefaultLocale()); in test_setDefault_setsICUDefaultLocale()
127 assertEquals("und", ICU.getDefaultLocale()); in test_setDefault_setsICUDefaultLocale()
/libcore/luni/src/main/java/java/text/
DBreakIterator.java21 import libcore.icu.ICU;
255 return ICU.getAvailableBreakIteratorLocales(); in getAvailableLocales()
DCollator.java22 import libcore.icu.ICU;
251 return ICU.getAvailableCollatorLocales(); in getAvailableLocales()
DDateFormatSymbols.java27 import libcore.icu.ICU;
148 return ICU.getAvailableDateFormatSymbolsLocales(); in getAvailableLocales()
DDateFormat.java26 import libcore.icu.ICU;
343 return ICU.getAvailableDateFormatLocales(); in getAvailableLocales()
DNumberFormat.java29 import libcore.icu.ICU;
317 return ICU.getAvailableNumberFormatLocales(); in getAvailableLocales()
DDecimalFormatSymbols.java27 import libcore.icu.ICU;
147 return ICU.getAvailableDecimalFormatSymbolsLocales(); in getAvailableLocales()
/libcore/
DNOTICE32 == NOTICE file for the ICU License. ==
/libcore/expectations/
Dbrokentests.txt50 …description: "Some tests depend on ICU data, which has changed. Others make assumptions about floa…
Dknownfailures.txt26 description: "ICU seems to treat unknown and invalid locales differently",