Home
last modified time | relevance | path

Searched refs:currencyCode (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/util/
DCurrency.java34 private final String currencyCode; field in Currency
36 private Currency(String currencyCode) { in Currency() argument
37 this.currencyCode = currencyCode; in Currency()
38 String symbol = ICU.getCurrencySymbol(Locale.US, currencyCode); in Currency()
41 currencyCode); in Currency()
50 public static Currency getInstance(String currencyCode) { in getInstance() argument
52 Currency currency = codesToCurrencies.get(currencyCode); in getInstance()
54 currency = new Currency(currencyCode); in getInstance()
55 codesToCurrencies.put(currencyCode, currency); in getInstance()
82 String currencyCode = ICU.getCurrencyCode(country); in getInstance() local
[all …]
/libcore/luni/src/main/java/libcore/icu/
DICU.java386 public static String getCurrencyDisplayName(Locale locale, String currencyCode) { in getCurrencyDisplayName() argument
387 return getCurrencyDisplayName(locale.toLanguageTag(), currencyCode); in getCurrencyDisplayName()
390 private static native String getCurrencyDisplayName(String languageTag, String currencyCode); in getCurrencyDisplayName() argument
392 public static native int getCurrencyFractionDigits(String currencyCode); in getCurrencyFractionDigits() argument
393 public static native int getCurrencyNumericCode(String currencyCode); in getCurrencyNumericCode() argument
395 public static String getCurrencySymbol(Locale locale, String currencyCode) { in getCurrencySymbol() argument
396 return getCurrencySymbol(locale.toLanguageTag(), currencyCode); in getCurrencySymbol()
399 private static native String getCurrencySymbol(String languageTag, String currencyCode); in getCurrencySymbol() argument
DNativeDecimalFormat.java478 public void setCurrency(String currencySymbol, String currencyCode) { in setCurrency() argument
480 setSymbol(this.address, UNUM_INTL_CURRENCY_SYMBOL, currencyCode); in setCurrency()
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp120 ScopedJavaUnicodeString currencyCode(env, javaCurrencyCode); in ICU_getCurrencyFractionDigits() local
121 if (!currencyCode.valid()) { in ICU_getCurrencyFractionDigits()
124 UnicodeString icuCurrencyCode(currencyCode.unicodeString()); in ICU_getCurrencyFractionDigits()
130 ScopedJavaUnicodeString currencyCode(env, javaCurrencyCode); in ICU_getCurrencyNumericCode() local
131 if (!currencyCode.valid()) { in ICU_getCurrencyNumericCode()
134 UnicodeString icuCurrencyCode(currencyCode.unicodeString()); in ICU_getCurrencyNumericCode()
186 ScopedJavaUnicodeString currencyCode(env, javaCurrencyCode); in getCurrencyName() local
187 if (!currencyCode.valid()) { in getCurrencyName()
190 UnicodeString icuCurrencyCode(currencyCode.unicodeString()); in getCurrencyName()