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

123

/external/chromium_org/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/chromium_org/third_party/icu/source/samples/numfmt/
H A Dmain.cpp85 // currency formatting ----------------------------------------------------- ***
88 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
92 * @param nf The NumberFormat on which to set the currency; takes effect on
93 * currency-formatting NumberFormat instances.
97 * while the currency symbol and number of decimals are set for
98 * the currency.
99 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated.
103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
108 if(currency
129 const char *currency; member in struct:__anon12163
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) argument
[all...]
/external/icu/icu4c/source/samples/numfmt/
H A Dmain.cpp85 // currency formatting ----------------------------------------------------- ***
88 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
92 * @param nf The NumberFormat on which to set the currency; takes effect on
93 * currency-formatting NumberFormat instances.
97 * while the currency symbol and number of decimals are set for
98 * the currency.
99 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated.
103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { argument
108 if(currency
129 const char *currency; member in struct:__anon21961
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) argument
[all...]
/external/chromium_org/third_party/icu/source/i18n/unicode/
H A Ducurr.h15 * \brief C API: Encapsulates information about a currency.
21 * The ucurr API encapsulates information about a currency, as defined by
22 * ISO 4217. A currency is represented by a 3-character string
24 * necessary the proper display of a currency:
38 * Finds a currency code for the given locale.
39 * @param locale the locale for which to retrieve a currency code.
40 * Currency can be specified by the "currency" keyword
41 * in which case it overrides the default currency code
47 * @return length of the currency string. It should always be 3. If 0,
48 * currency could
[all...]
H A Dunum.h40 * There are different number format styles like decimal, currency,
103 * to get the currency number format for that country. Use UNUM_PERCENT
124 * locale like the currency symbol, the grouping seperator , monetary seperator
149 * Currency format with a currency symbol, e.g., "$1.00".
189 * Currency format with an ISO currency code, e.g., "USD1.00".
194 * Currency format with a pluralized currency name,
270 * Constants for specifying currency spacing
533 * Format a double currency amount using a UNumberFormat.
537 * @param currency the 3-letter null-terminated ISO 4217 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/i18n/unicode/
H A Ducurr.h15 * \brief C API: Encapsulates information about a currency.
21 * The ucurr API encapsulates information about a currency, as defined by
22 * ISO 4217. A currency is represented by a 3-character string
24 * necessary the proper display of a currency:
38 * Finds a currency code for the given locale.
39 * @param locale the locale for which to retrieve a currency code.
40 * Currency can be specified by the "currency" keyword
41 * in which case it overrides the default currency code
47 * @return length of the currency string. It should always be 3. If 0,
48 * currency could
[all...]
/external/chromium_org/third_party/icu/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/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/chromium_org/third_party/icu/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/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/chromium_org/third_party/icu/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 */
297 // Obtain currency data from the currency API. This is strictly
299 // for currency data anymore.
318 //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.
287 * Unfortunately, we have to convert the UChar* currency code to char*
291 myUCharsToChars(char* resultOfLen4, const UChar* currency) { argument
292 u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
298 * Internal function to look up currency data. Result is an array of
306 _findMetaData(const UChar* currency, UErrorCode& ec) { argument
308 if (currency == 0 || *currency == 0) {
327 // Look up our currency, o
664 ucurr_getName(const UChar* currency, const char* locale, UCurrNameStyle nameStyle, UBool* isChoiceFormat, int32_t* len, UErrorCode* ec) argument
763 ucurr_getPluralName(const UChar* currency, const char* locale, UBool* isChoiceFormat, const char* pluralCount, int32_t* len, UErrorCode* ec) argument
1618 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) argument
1623 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) argument
1659 const char *currency; member in struct:CurrencyList
2634 ucurr_getNumericCode(const UChar* currency) argument
[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 */
297 // Obtain currency data from the currency API. This is strictly
299 // for currency data anymore.
318 //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.
287 * Unfortunately, we have to convert the UChar* currency code to char*
291 myUCharsToChars(char* resultOfLen4, const UChar* currency) { argument
292 u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
298 * Internal function to look up currency data. Result is an array of
306 _findMetaData(const UChar* currency, UErrorCode& ec) { argument
308 if (currency == 0 || *currency == 0) {
327 // Look up our currency, o
664 ucurr_getName(const UChar* currency, const char* locale, UCurrNameStyle nameStyle, UBool* isChoiceFormat, int32_t* len, UErrorCode* ec) argument
763 ucurr_getPluralName(const UChar* currency, const char* locale, UBool* isChoiceFormat, const char* pluralCount, int32_t* len, UErrorCode* ec) argument
1618 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) argument
1623 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) argument
1659 const char *currency; member in struct:CurrencyList
2634 ucurr_getNumericCode(const UChar* currency) argument
[all...]
/external/chromium_org/third_party/icu/scripts/
H A Dtrim_data.sh87 for currency in $(grep -v '^#' currencies_to_drop.list)
90 DROPLIST=${DROPLIST}${OP}${currency}
/external/chromium_org/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...]
H A Di18n.cc233 icu::UnicodeString currency; local
235 if (style == UNICODE_STRING_SIMPLE("currency")) {
237 ExtractStringSetting(isolate, options, "currency", &currency);
284 if (!currency.isEmpty()) {
285 number_format->setCurrency(currency.getBuffer(), status);
346 // Set resolved currency code in options.currency if not empty.
347 icu::UnicodeString currency(number_format->getCurrency());
348 if (!currency
[all...]

Completed in 608 milliseconds

123