Home
last modified time | relevance | path

Searched refs:currency (Results 1 – 25 of 224) sorted by relevance

123456789

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DCurrency.java40 public final java.util.Currency currency; field in Currency
47 this.currency = delegate; in Currency()
215 return currency.hashCode(); in hashCode()
225 return currency.equals(((Currency)rhs).currency); in equals()
237 return currency.getCurrencyCode(); in getCurrencyCode()
258 return currency.getSymbol(ULocale.getDefault(Category.DISPLAY).toLocale()); in getSymbol()
269 return currency.getSymbol(loc); in getSymbol()
280 return currency.getSymbol(uloc.toLocale()); in getSymbol()
432 return currency.getDefaultFractionDigits(); in getDefaultFractionDigits()
450 return currency.toString(); in toString()
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/util/
DCurrencyTest.java35 Currency currency = Currency.getInstance(ULocale.CHINA); in testGetName_Locale_Int_String_BooleanArray() local
40 currency.getName(ULocale.CANADA, nameStyle, pluralCount, isChoiceFormat); in testGetName_Locale_Int_String_BooleanArray()
42 String localeName = currency.getName(Locale.CANADA, nameStyle, pluralCount, isChoiceFormat); in testGetName_Locale_Int_String_BooleanArray()
48 Currency currency = Currency.getInstance(ULocale.CHINA); in testGetDefaultFractionDigits_CurrencyUsage() local
49 int cashFractionDigits = currency.getDefaultFractionDigits(Currency.CurrencyUsage.CASH); in testGetDefaultFractionDigits_CurrencyUsage()
55 Currency currency = Currency.getInstance(ULocale.JAPAN); in testGetRoundingIncrement() local
57 double roundingIncrement = currency.getRoundingIncrement(); in testGetRoundingIncrement()
63 Currency currency = Currency.getInstance(ULocale.JAPAN); in testGetRoundingIncrement_CurrencyUsage() local
65 double roundingIncrement = currency.getRoundingIncrement(Currency.CurrencyUsage.CASH); in testGetRoundingIncrement_CurrencyUsage()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyMetaInfo.java85 public final String currency; field in CurrencyMetaInfo.CurrencyFilter
105 … private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) { in CurrencyFilter() argument
107 this.currency = currency; in CurrencyFilter()
150 public static CurrencyFilter onCurrency(String currency) { in onCurrency() argument
151 return ALL.withCurrency(currency); in onCurrency()
214 return new CurrencyFilter(region, this.currency, this.from, this.to, this.tenderOnly); in withRegion()
224 public CurrencyFilter withCurrency(String currency) { in withCurrency() argument
225 return new CurrencyFilter(this.region, currency, this.from, this.to, this.tenderOnly); in withCurrency()
235 …return new CurrencyFilter(this.region, this.currency, date.getTime(), date.getTime(), this.tenderO… in withDate()
248 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange()
[all …]
DDecimalFormatSymbols.java413 public void setCurrencySymbol(String currency) { in setCurrencySymbol() argument
414 currencySymbol = currency; in setCurrencySymbol()
429 public void setInternationalCurrencySymbol(String currency) { in setInternationalCurrencySymbol() argument
430 intlCurrencySymbol = currency; in setInternationalCurrencySymbol()
439 return currency; in getCurrency()
457 public void setCurrency(Currency currency) { in setCurrency() argument
458 if (currency == null) { in setCurrency()
461 this.currency = currency; in setCurrency()
462 intlCurrencySymbol = currency.getCurrencyCode(); in setCurrency()
463 currencySymbol = currency.getSymbol(requestedLocale); in setCurrency()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DCurrencyNameTest.java46 Currency currency = Currency.getInstance(l);
47 if (currency != null) {
48 currencies.add(currency);
60 for (Currency currency : AVAILABLE_CURRENCIES) { in TestCurrencySymbols()
61 String currencyCode = currency.getCurrencyCode(); in TestCurrencySymbols()
69 String curSymbol = currency.getSymbol(loc); in TestCurrencySymbols()
93 curSymbol = currency.getSymbol(locIcu); in TestCurrencySymbols()
109 for (Currency currency : AVAILABLE_CURRENCIES) { in TestCurrencyDisplayNames()
110 String currencyCode = currency.getCurrencyCode(); in TestCurrencyDisplayNames()
120 curName = (String)GETDISPLAYNAME_METHOD.invoke(currency, new Object[] {loc}); in TestCurrencyDisplayNames()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyMetaInfo.java89 public final String currency; field in CurrencyMetaInfo.CurrencyFilter
111 … private CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) { in CurrencyFilter() argument
113 this.currency = currency; in CurrencyFilter()
160 public static CurrencyFilter onCurrency(String currency) { in onCurrency() argument
161 return ALL.withCurrency(currency); in onCurrency()
230 return new CurrencyFilter(region, this.currency, this.from, this.to, this.tenderOnly); in withRegion()
241 public CurrencyFilter withCurrency(String currency) { in withCurrency() argument
242 return new CurrencyFilter(this.region, currency, this.from, this.to, this.tenderOnly); in withCurrency()
253 …return new CurrencyFilter(this.region, this.currency, date.getTime(), date.getTime(), this.tenderO… in withDate()
267 … return new CurrencyFilter(this.region, this.currency, fromLong, toLong, this.tenderOnly); in withDateRange()
[all …]
DDecimalFormatSymbols.java445 public void setCurrencySymbol(String currency) { in setCurrencySymbol() argument
446 currencySymbol = currency; in setCurrencySymbol()
463 public void setInternationalCurrencySymbol(String currency) { in setInternationalCurrencySymbol() argument
464 intlCurrencySymbol = currency; in setInternationalCurrencySymbol()
474 return currency; in getCurrency()
494 public void setCurrency(Currency currency) { in setCurrency() argument
495 if (currency == null) { in setCurrency()
498 this.currency = currency; in setCurrency()
499 intlCurrencySymbol = currency.getCurrencyCode(); in setCurrency()
500 currencySymbol = currency.getSymbol(requestedLocale); in setCurrency()
[all …]
/external/icu/icu4c/source/samples/numfmt/
Dmain.cpp101 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() argument
106 if(currency==NULL || strlen(currency)!=3) { in setNumberFormatCurrency_2_4()
127 const char *currency; in setNumberFormatCurrency_2_4() member
155 if(strcmp(currency, currencyMap[i].currency)==0) { in setNumberFormatCurrency_2_4()
190 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_6() argument
194 if(currency==NULL || strlen(currency)!=3) { in setNumberFormatCurrency_2_6()
201 u_charsToUChars(currency, uCurrency, 4); in setNumberFormatCurrency_2_6()
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/
DICUCurrencyMetaInfo.java81 if (filter.currency != null) { in collect()
124 String currency = null; in collectRegion() local
131 currency = currBundle.getString(); in collectRegion()
132 if (filter.currency != null && !filter.currency.equals(currency)) { in collectRegion()
160 collector.collect(region, currency, from, to, i, tender); in collectRegion()
200 …public void collect(String region, String currency, long from, long to, int priority, boolean tend… in collect() argument
201 result.add(new CurrencyInfo(region, currency, from, to, priority, tender)); in collect()
217 String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument
234 String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument
235 result.add(currency); in collect()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUCurrencyMetaInfo.java83 if (filter.currency != null) { in collect()
126 String currency = null; in collectRegion() local
133 currency = currBundle.getString(); in collectRegion()
134 if (filter.currency != null && !filter.currency.equals(currency)) { in collectRegion()
162 collector.collect(region, currency, from, to, i, tender); in collectRegion()
202 …public void collect(String region, String currency, long from, long to, int priority, boolean tend… in collect() argument
203 result.add(new CurrencyInfo(region, currency, from, to, priority, tender)); in collect()
219 String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument
236 String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument
237 result.add(currency); in collect()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Ducurr.h160 ucurr_getName(const UChar* currency,
184 ucurr_getPluralName(const UChar* currency,
202 ucurr_getDefaultFractionDigits(const UChar* currency,
216 ucurr_getDefaultFractionDigitsForUsage(const UChar* currency,
231 ucurr_getRoundingIncrement(const UChar* currency,
245 ucurr_getRoundingIncrementForUsage(const UChar* currency,
414 ucurr_getNumericCode(const UChar* currency);
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCurrencyAmount.java30 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() argument
31 super(number, currency); in CurrencyAmount()
39 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() argument
40 super(new Double(number), currency); in CurrencyAmount()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCurrencyAmount.java31 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() argument
32 super(number, currency); in CurrencyAmount()
41 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() argument
42 super(new Double(number), currency); in CurrencyAmount()
/external/icu/icu4c/source/test/cintltst/
Dccurrtst.c43 static const UChar currency[][2] = in currTest() local
79 static const UChar currency[][2] = in currTest()
120 for (i = 0; i < ARRAY_LENGTH(currency); i += 1) in currTest()
122 for (j = 0; j < ARRAY_LENGTH(currency); j += 1) in currTest()
124 u_strcpy(source, currency[i]); in currTest()
125 u_strcpy(target, currency[j]); in currTest()
/external/icu/icu4c/source/i18n/
Dwinnmfmt.cpp43 CURRENCYFMTW currency; member
138 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status) in Win32NumberFormat() argument
139 : NumberFormat(), fCurrency(currency), fFormatInfo(NULL), fFractionDigitsSet(FALSE) in Win32NumberFormat()
156 getCurrencyFormat(&fFormatInfo->currency, fLCID); in Win32NumberFormat()
176 freeCurrencyFormat(&fFormatInfo->currency); in ~Win32NumberFormat()
195 freeCurrencyFormat(&fFormatInfo->currency); in operator =()
196 getCurrencyFormat(&fFormatInfo->currency, fLCID); in operator =()
302 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
306 formatInfo.currency.Grouping = 0; in format()
309 … result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
[all …]
Ddcfmtsym.cpp339 LocalUResourceBundlePointer currency( in initialize() local
341 ures_getByKeyWithFallback(currency.getAlias(), cc, currency.getAlias(), &localStatus); in initialize()
342 …if(U_SUCCESS(localStatus) && ures_getSize(currency.getAlias())>2) { // the length is 3 if more dat… in initialize()
343 ures_getByIndex(currency.getAlias(), 2, currency.getAlias(), &localStatus); in initialize()
346 … ures_getStringByIndex(currency.getAlias(), (int32_t)0, &currPatternLen, &localStatus); in initialize()
348 ures_getUnicodeStringByIndex(currency.getAlias(), (int32_t)1, &localStatus); in initialize()
350 ures_getUnicodeStringByIndex(currency.getAlias(), (int32_t)2, &localStatus); in initialize()
/external/icu/icu4c/source/test/intltest/
Dcurrcoll.cpp46 static const UChar currency[][2] = in currencyTest() local
94 for (i = 0; i < ARRAY_LENGTH(currency); i += 1) in currencyTest()
96 for (j = 0; j < ARRAY_LENGTH(currency); j += 1) in currencyTest()
98 UnicodeString source(currency[i], 1); in currencyTest()
99 UnicodeString target(currency[j], 1); in currencyTest()
Dwinnmtst.cpp132 static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeString &appendTo, const… in getWindowsFormat() argument
186 if (currency) { in getWindowsFormat()
229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument
238 getWindowsFormat(lcid, currency, wdBuffer, L"%.16f", d); in testLocale()
240 getWindowsFormat(lcid, currency, w3Buffer, L"%I32d", i32); in testLocale()
242 getWindowsFormat(lcid, currency, w6Buffer, L"%I64d", i64); in testLocale()
/external/icu/icu4j/main/classes/currdata/
Dmanifest.stub2 Specification-Title: International Components for Unicode for Java (currency data)
5 Implementation-Title: International Components for Unicode for Java (currency data)
10 Bundle-Name: ICU4J currency data
11 Bundle-Description: International Components for Unicode for Java (currency data)
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DDecimalFormatSymbols.java402 public void setCurrencySymbol(String currency) { in setCurrencySymbol() argument
403 dfs.setCurrencySymbol(currency); in setCurrencySymbol()
433 public void setCurrency(Currency currency) { in setCurrency() argument
434 dfs.setCurrency(java.util.Currency.getInstance(currency.getCurrencyCode())); in setCurrency()
451 public void setInternationalCurrencySymbol(String currency) { in setInternationalCurrencySymbol() argument
452 dfs.setInternationalCurrencySymbol(currency); in setInternationalCurrencySymbol()
/external/v8/test/intl/number-format/
Dformat-currency.js8 var nf_USD = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'}); property
13 {style: 'currency', currency: 'JPY', currencyDisplay: "code"}); property
17 var nf_EUR = new Intl.NumberFormat(['pt'], {style: 'currency', currency: 'EUR'}); property
Dcheck-minimum-fraction-digits.js21 …at('en', {minimumFractionDigits: 4, maximumFractionDigits: 8, style: 'currency', currency: 'USD'}); property
47 nf = new Intl.NumberFormat('en', {minimumFractionDigits: 0, style: 'currency', currency: 'USD'}); property
53 nf = new Intl.NumberFormat('en', {maximumFractionDigits: 3, style: 'currency', currency: 'USD'}); property
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationCurrencyTest.java29 char[][] currency = { in TestCurrency() local
71 for (i = 0; i < currency.length; i += 1) { in TestCurrency()
72 for (j = 0; j < currency.length; j += 1) { in TestCurrency()
73 source = new String(currency[i]); in TestCurrency()
74 target = new String(currency[j]); in TestCurrency()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationCurrencyTest.java33 char[][] currency = { in TestCurrency() local
75 for (i = 0; i < currency.length; i += 1) { in TestCurrency()
76 for (j = 0; j < currency.length; j += 1) { in TestCurrency()
77 source = new String(currency[i]); in TestCurrency()
78 target = new String(currency[j]); in TestCurrency()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DDecimalFormatSymbolsICU.java130 public void setCurrency(Currency currency) { in setCurrency() argument
132 if (currency != null) { in setCurrency()
133 icuCurrency = com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()); in setCurrency()
139 public void setCurrencySymbol(String currency) { in setCurrencySymbol() argument
140 fIcuDecfs.setCurrencySymbol(currency); in setCurrencySymbol()

123456789