Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/icu/
DICUTest.java24 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
25 ICU.getISOLanguages()[0] = null; in test_getISOLanguages()
26 assertNotNull(ICU.getISOLanguages()[0]); in test_getISOLanguages()
31 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
32 ICU.getISOCountries()[0] = null; in test_getISOCountries()
33 assertNotNull(ICU.getISOCountries()[0]); in test_getISOCountries()
38 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
39 ICU.getAvailableLocales()[0] = null; in test_getAvailableLocales()
40 assertNotNull(ICU.getAvailableLocales()[0]); in test_getAvailableLocales()
44 assertEquals("d MMMM", ICU.getBestDateTimePattern("MMMMd", "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.toString(), currencyCode); in Currency()
79 String currencyCode = ICU.getCurrencyCode(country); in getInstance()
98 String[] currencyCodes = ICU.getAvailableCurrencyCodes(); in getAvailableCurrencies()
129 return ICU.getCurrencyDisplayName(locale.toString(), currencyCode); in getDisplayName()
163 String symbol = ICU.getCurrencySymbol(locale.toString(), currencyCode); in getSymbol()
180 return ICU.getCurrencyFractionDigits(currencyCode); in getDefaultFractionDigits()
DLocale.java25 import libcore.icu.ICU;
342 return ICU.getAvailableLocales(); in getAvailableLocales()
380 String result = ICU.getDisplayCountryNative(toString(), locale.toString()); in getDisplayCountry()
382 result = ICU.getDisplayCountryNative(toString(), Locale.getDefault().toString()); in getDisplayCountry()
411 String result = ICU.getDisplayLanguageNative(localeString, locale.toString()); in getDisplayLanguage()
413 result = ICU.getDisplayLanguageNative(localeString, Locale.getDefault().toString()); in getDisplayLanguage()
490 String result = ICU.getDisplayVariantNative(toString(), locale.toString()); in getDisplayVariant()
492 result = ICU.getDisplayVariantNative(toString(), Locale.getDefault().toString()); in getDisplayVariant()
503 String code = ICU.getISO3CountryNative(toString()); in getISO3Country()
516 String code = ICU.getISO3LanguageNative(toString()); in getISO3Language()
[all …]
DCalendar.java26 import libcore.icu.ICU;
938 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/luni/src/main/native/
Dlibcore_icu_ICU.cpp723 NATIVE_METHOD(ICU, addLikelySubtags, "(Ljava/lang/String;)Ljava/lang/String;"),
724 NATIVE_METHOD(ICU, getAvailableBreakIteratorLocalesNative, "()[Ljava/lang/String;"),
725 NATIVE_METHOD(ICU, getAvailableCalendarLocalesNative, "()[Ljava/lang/String;"),
726 NATIVE_METHOD(ICU, getAvailableCollatorLocalesNative, "()[Ljava/lang/String;"),
727 NATIVE_METHOD(ICU, getAvailableCurrencyCodes, "()[Ljava/lang/String;"),
728 NATIVE_METHOD(ICU, getAvailableDateFormatLocalesNative, "()[Ljava/lang/String;"),
729 NATIVE_METHOD(ICU, getAvailableLocalesNative, "()[Ljava/lang/String;"),
730 NATIVE_METHOD(ICU, getAvailableNumberFormatLocalesNative, "()[Ljava/lang/String;"),
731 …NATIVE_METHOD(ICU, getBestDateTimePattern, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Strin…
732 NATIVE_METHOD(ICU, getCldrVersion, "()Ljava/lang/String;"),
[all …]
/libcore/luni/src/main/java/java/lang/
DCaseMapper.java20 import libcore.icu.ICU;
50 return ICU.toLowerCase(s, locale.toString()); in toLowerCase()
60 return ICU.toLowerCase(s, locale.toString()); in toLowerCase()
145 return ICU.toUpperCase(s, locale.toString()); in toUpperCase()
153 return ICU.toUpperCase(s, locale.toString()); in toUpperCase()
DSystem.java53 import libcore.icu.ICU;
325 p.put("android.icu.library.version", ICU.getIcuVersion()); in initSystemProperties()
326 p.put("android.icu.unicode.version", ICU.getUnicodeVersion()); in initSystemProperties()
327 p.put("android.icu.cldr.version", ICU.getCldrVersion()); in initSystemProperties()
/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;
150 return ICU.getAvailableDateFormatSymbolsLocales(); in getAvailableLocales()
DDateFormat.java26 import libcore.icu.ICU;
336 return ICU.getAvailableDateFormatLocales(); in getAvailableLocales()
DNumberFormat.java29 import libcore.icu.ICU;
313 return ICU.getAvailableNumberFormatLocales(); in getAvailableLocales()
DDecimalFormatSymbols.java27 import libcore.icu.ICU;
142 return ICU.getAvailableDecimalFormatSymbolsLocales(); in getAvailableLocales()
/libcore/benchmarks/src/benchmarks/regression/
DStringCaseMappingBenchmark.java101 libcore.icu.ICU.toUpperCase(s.value, Locale.US.toString()); in timeToUpperCase_ICU()
107 libcore.icu.ICU.toLowerCase(s.value, Locale.US.toString()); in timeToLowerCase_ICU()
/libcore/luni/src/main/java/libcore/icu/
DICU.java25 public final class ICU { class
DLocaleData.java170 if (!ICU.initLocaleDataImpl(locale.toString(), localeData)) { in initLocaleData()
/libcore/expectations/
Dbrokentests.txt536 description: "ICU doesn't like 3-letter names like CST because they're ambiguous.
538 consistent with ICU, since that seems least fragile.
777 …description: "ICU doesn't provide localized pattern characters, and these tests assume the locale …
783 …description: "ICU doesn't provide localized pattern characters, and these tests assume the locale …
789 …description: "ICU doesn't provide localized pattern characters, and these tests assume the locale …
Dknownfailures.txt124 description: "ICU seems to treat unknown and invalid locales differently",
/libcore/
DNOTICE32 == NOTICE file for the ICU License. ==