Searched refs:currency (Results 1 - 25 of 50) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DCurrencyAmount.java15 * An amount of currency, consisting of a Number and a Currency.
26 * Constructs a new object given a number and a currency.
28 * @param currency the currency
31 public CurrencyAmount(Number number, Currency currency) { argument
32 super(number, currency);
36 * Constructs a new object given a double value and a currency.
38 * @param currency the currency
41 public CurrencyAmount(double number, Currency currency) { argument
[all...]
H A DCurrencyServiceShim.java19 * currency. The shim is instantiated by reflection in Currency, all
49 Object registerInstance(Currency currency, ULocale locale) { argument
50 return service.registerObject(currency, locale);
/external/v8/test/intl/number-format/
H A Dparse-currency.js31 var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'});
H A Dproperty-override.js46 // they were not requested - currency, currencyDisplay,
49 undefined, {style: 'currency', currency: 'USD', currencyDisplay: 'name',
60 'currency', 'currencyDisplay', 'useGrouping',
75 {currency: 'USD', currencyDisplay: 'name',
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A DCurrencyNameTest.java46 Currency currency = Currency.getInstance(l);
47 if (currency != null) {
48 currencies.add(currency);
60 for (Currency currency : AVAILABLE_CURRENCIES) {
61 String currencyCode = currency.getCurrencyCode();
69 String curSymbol = currency.getSymbol(loc);
75 logln("INFO: JDK has currency symbol " + curSymbol + " for locale " +
93 curSymbol = currency.getSymbol(locIcu);
109 for (Currency currency : AVAILABLE_CURRENCIES) {
110 String currencyCode = currency
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DCurrencyMetaInfo.java20 * A note about currency dates. The CLDR data provides data to the day,
35 * Returns the unique instance of the currency meta info.
44 * Returns the unique instance of the currency meta info, or null if
55 * Returns true if there is data for the currency meta info.
75 * A filter used to select which currency info is returned.
86 * The currency to filter on. If null, accepts any currency.
89 public final String currency; field in class:CurrencyMetaInfo.CurrencyFilter
92 * The from date to filter on (as milliseconds). Accepts any currency on or after this date.
98 * The to date to filter on (as milliseconds). Accepts any currency o
111 CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) argument
160 onCurrency(String currency) argument
241 withCurrency(String currency) argument
[all...]
H A DCurrencyFormat.java65 CurrencyAmount currency = (CurrencyAmount) obj;
67 fmt.setCurrency(currency.getCurrency());
68 return fmt.format(currency.getNumber(), toAppendTo, pos);
H A DDecimalFormatSymbols.java433 * Returns the string denoting the local currency.
434 * @return the local currency String.
442 * Sets the string denoting the local currency.
443 * @param currency the local currency String.
446 public void setCurrencySymbol(String currency) { argument
447 currencySymbol = currency;
451 * Returns the international string denoting the local currency.
452 * @return the international string denoting the local currency
460 * Sets the international string denoting the local currency
464 setInternationalCurrencySymbol(String currency) argument
495 setCurrency(Currency currency) argument
1400 private transient Currency currency; field in class:DecimalFormatSymbols
[all...]
/external/icu/icu4c/source/i18n/unicode/
H A Ducurr.h15 * \brief C API: Encapsulates information about a currency.
27 * a setting to specify currency usage which determines currency digit
34 * a setting to specify currency usage which determines currency digit
49 * The ucurr API encapsulates information about a currency, as defined by
50 * ISO 4217. A currency is represented by a 3-character string
52 * necessary the proper display of a currency:
66 * Finds a currency code for the given locale.
67 * @param locale the locale for which to retrieve a currency cod
[all...]
H A Ddecimfmt.h76 * ("1.23E4"), percentages ("12%"), and currency amounts ("$123", "USD123",
96 * // Print out a number with the localized number, currency and percent
133 * <strong>// Print out a number using the localized number, currency,
134 * // percent, scientific, integer, iso currency, and plural currency
181 * their special status. Two exceptions are the currency sign and quote, which
256 * <td>Currency sign, replaced by currency symbol. If
257 * doubled, replaced by international currency symbol.
258 * If tripled, replaced by currency plural names, for example,
375 * <p>For currency parsin
[all...]
/external/icu/icu4c/source/samples/numfmt/
H A Dmain.cpp83 // currency formatting ----------------------------------------------------- ***
86 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
90 * @param nf The NumberFormat on which to set the currency; takes effect on
91 * currency-formatting NumberFormat instances.
95 * while the currency symbol and number of decimals are set for
96 * the currency.
97 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated.
101 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
106 if(currency
127 const char *currency; member in struct:__anon5733
190 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) argument
[all...]
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/
H A DICUCurrencyMetaInfo.java19 * ICU's currency meta info data.
81 if (filter.currency != null) {
124 String currency = null;
131 currency = currBundle.getString();
132 if (filter.currency != null && !filter.currency.equals(currency)) {
160 collector.collect(region, currency, from, to, i, tender);
200 public void collect(String region, String currency, long from, long to, int priority, boolean tender) { argument
201 result.add(new CurrencyInfo(region, currency, fro
216 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
233 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
269 collect(String region, String currency, long from, long to, int priority, boolean tender) argument
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dcurrcoll.cpp45 // All the currency symbols, in collation order
46 static const UChar currency[][2] = local
92 // Compare each currency symbol against all the
93 // currency symbols, including itself
94 for (i = 0; i < ARRAY_LENGTH(currency); i += 1)
96 for (j = 0; j < ARRAY_LENGTH(currency); j += 1)
98 UnicodeString source(currency[i], 1);
99 UnicodeString target(currency[j], 1);
H A Dwinnmtst.cpp132 static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeString &appendTo, const wchar_t *fmt, ...) argument
186 if (currency) {
229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestLog *log) argument
238 getWindowsFormat(lcid, currency, wdBuffer, L"%.16f", d);
240 getWindowsFormat(lcid, currency, w3Buffer, L"%I32d", i32);
242 getWindowsFormat(lcid, currency, w6Buffer, L"%I64d", i64);
/external/icu/icu4c/source/test/cintltst/
H A Dccurrtst.c42 /* All the currency symbols, in UCA order*/
43 static const UChar currency[][2] = local
78 /* All the currency symbols, in collation order*/
79 static const UChar currency[][2] =
81 { 0x00a4, 0x0000}, /* generic currency*/
110 log_verbose("Testing currency of all locales\n");
118 /*Compare each currency symbol against all the
119 currency symbols, including itself*/
120 for (i = 0; i < ARRAY_LENGTH(currency); i += 1)
122 for (j = 0; j < ARRAY_LENGTH(currency);
[all...]
/external/icu/icu4c/source/i18n/
H A Dwinnmfmt.cpp43 CURRENCYFMTW currency; member in union:FormatInfo
138 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status) argument
139 : NumberFormat(), fCurrency(currency), fFractionDigitsSet(FALSE), fFormatInfo(NULL)
156 getCurrencyFormat(&fFormatInfo->currency, fLCID);
176 freeCurrencyFormat(&fFormatInfo->currency);
195 freeCurrencyFormat(&fFormatInfo->currency);
196 getCurrencyFormat(&fFormatInfo->currency, fLCID);
302 formatInfo.currency.NumDigits = (UINT) numDigits;
306 formatInfo.currency.Grouping = 0;
309 result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffe
[all...]
H A Ddcfmtsym.cpp15 * 08/26/97 aliu Added currency/intl currency symbol support.
173 NULL, /* currency symbol - We don't really try to load this directly from CLDR until we know the currency */
174 NULL, /* intl currency symbol - We don't really try to load this directly from CLDR until we know the currency */
298 // Obtain currency data from the currency API. This is strictly
300 // for currency data anymore.
319 //load the currency dat
[all...]
H A Dwinnmfmt.h39 Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status);
H A Ducurr.cpp49 // Default currency meta data of last resort. We try to use the
61 // Defines equivalent currency symbols.
291 * Unfortunately, we have to convert the UChar* currency code to char*
295 myUCharsToChars(char* resultOfLen4, const UChar* currency) { argument
296 u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
302 * Internal function to look up currency data. Result is an array of
310 _findMetaData(const UChar* currency, UErrorCode& ec) { argument
312 if (currency == 0 || *currency == 0) {
331 // Look up our currency, o
668 ucurr_getName(const UChar* currency, const char* locale, UCurrNameStyle nameStyle, UBool* isChoiceFormat, int32_t* len, UErrorCode* ec) argument
767 ucurr_getPluralName(const UChar* currency, const char* locale, UBool* isChoiceFormat, const char* pluralCount, int32_t* len, UErrorCode* ec) argument
1637 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) argument
1642 ucurr_getDefaultFractionDigitsForUsage(const UChar* currency, const UCurrencyUsage usage, UErrorCode* ec) argument
1660 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) argument
1665 ucurr_getRoundingIncrementForUsage(const UChar* currency, const UCurrencyUsage usage, UErrorCode* ec) argument
1716 const char *currency; member in struct:CurrencyList
2691 ucurr_getNumericCode(const UChar* currency) argument
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DDecimalFormatSymbolsICU.java130 public void setCurrency(Currency currency) { argument
132 if (currency != null) {
133 icuCurrency = com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode());
139 public void setCurrencySymbol(String currency) { argument
140 fIcuDecfs.setCurrencySymbol(currency);
H A DDecimalFormatICU.java249 public void setCurrency(Currency currency) { argument
250 if (currency == null) {
253 fIcuDecfmt.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
265 Currency currency = newSymbols.getCurrency();
266 if (currency == null) {
269 icuDecfs.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
H A DNumberFormatICU.java167 public void setCurrency(Currency currency) { argument
168 if (currency == null) {
171 fIcuNfmt.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationCurrencyTest.java28 // All the currency symbols, in collation order
29 char[][] currency = {
66 // Compare each currency symbol against all the
67 // currency symbols, including itself
71 for (i = 0; i < currency.length; i += 1) {
72 for (j = 0; j < currency.length; j += 1) {
73 source = new String(currency[i]);
74 target = new String(currency[j]);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DIntlTestDecimalFormatSymbols.java56 Currency currency = Currency.getInstance("USD");
57 fr.setCurrency(currency);
58 if (!fr.getCurrency().equals(currency)){
154 errln("ERROR: get currency spacing item:"+ i+" before the currency");
157 errln("ERROR: get currency spacing item:" + i + " after currency");
165 errln("ERROR: set currency spacing pattern for before currency.");
/external/v8/src/
H A Di18n.js1033 * Verifies that the input is a well-formed ISO 4217 currency code.
1037 function isWellFormedCurrencyCode(currency) {
1038 return typeof currency == "string" &&
1039 currency.length == 3 &&
1040 currency.match(/[^A-Za-z]/) == null;
1081 'style', 'string', ['decimal', 'percent', 'currency'], 'decimal'));
1083 var currency = getOption('currency', 'string');
1084 if (currency !== undefined && !isWellFormedCurrencyCode(currency)) {
[all...]

Completed in 1504 milliseconds

12