HomeSort by relevance Sort by last modified time
    Searched defs:currency (Results 1 - 25 of 31) sorted by null

1 2

  /external/chromium/third_party/icu/source/test/intltest/
currcoll.cpp 45 // All the currency symbols, in collation order
46 static const UChar currency[][2] = local
48 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/
60 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/
61 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/
62 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/
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
    [all...]
numfmtst.cpp 80 CASE(17,TestComplexCurrency); // This test removed because CLDR no longer uses choice formats in currency symbols.
603 * Test the handling of the currency symbol in patterns.
611 UChar currency = 0x00A4; local
618 pat.append(currency).append("#,##0.00;-").
619 append(currency).append("#,##0.00");
633 pat.append(currency).append(currency).
635 append(currency).append(currency).
688 {"en_US@currency=JPY", "\\u00A51,150"
2832 UChar currency = 0x00A4; local
    [all...]
numrgts.cpp 832 * interpreted as monetary separator if currency symbol is seen!
930 logln ("Bug 4070798 currency test passed.");
1707 const UChar *currency = fmt1->getCurrency(); local
    [all...]
  /external/icu4c/test/intltest/
currcoll.cpp 45 // All the currency symbols, in collation order
46 static const UChar currency[][2] = local
48 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/
60 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/
61 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/
62 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/
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
    [all...]
numrgts.cpp 832 * interpreted as monetary separator if currency symbol is seen!
930 logln ("Bug 4070798 currency test passed.");
1707 const UChar *currency = fmt1->getCurrency(); local
    [all...]
numfmtst.cpp 77 CASE(17,TestComplexCurrency); // This test removed because CLDR no longer uses choice formats in currency symbols.
609 * Test the handling of the currency symbol in patterns.
617 UChar currency = 0x00A4; local
624 pat.append(currency).append("#,##0.00;-").
625 append(currency).append("#,##0.00");
639 pat.append(currency).append(currency).
641 append(currency).append(currency).
694 {"en_US@currency=JPY", "\\u00A51,150"
2853 UChar currency = 0x00A4; local
    [all...]
  /external/chromium/third_party/icu/source/test/cintltst/
ccurrtst.c 42 /* All the currency symbols, in UCA order*/
43 static const UChar currency[][2] = local
45 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/
57 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/
58 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/
59 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/
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")
    [all...]
cnmdptst.c 335 * Test the handling of the currency symbol in patterns.
350 pattern[0]=pattern[11]=0xa4; /* insert latin-1 currency symbol */
408 * Test localized currency patterns.
420 log_verbose("\nTesting the number format with different currency patterns\n");
427 log_data_err("Error in the construction of number format with style currency: %s (Are you missing data?)\n",
455 * Test localized currency patterns for PREEURO variants.
479 log_verbose("\nTesting the number format with different currency patterns\n");
491 log_data_err("Error in the construction of number format with style currency: %s (Are you missing data?)\n",
523 * Test currency "object" (we use this name to match the other C++
524 * test name and the Jave name). Actually, test ISO currency cod
540 const char* currency[]={ local
    [all...]
cnumtst.c 141 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
146 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
149 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
152 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
333 log_err("Fail: Error in parsing currency, got %f, expected %f\n", d1, a1);
335 log_verbose("Pass: parsed currency ammount successfully\n");
338 log_verbose("Pass: parsed correct currency\n");
340 log_err("Fail: parsed incorrect currency\n");
1386 UChar currency[8]; local
    [all...]
  /external/icu4c/test/cintltst/
ccurrtst.c 42 /* All the currency symbols, in UCA order*/
43 static const UChar currency[][2] = local
45 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/
57 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/
58 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/
59 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/
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")
    [all...]
cnmdptst.c 335 * Test the handling of the currency symbol in patterns.
350 pattern[0]=pattern[11]=0xa4; /* insert latin-1 currency symbol */
408 * Test localized currency patterns.
420 log_verbose("\nTesting the number format with different currency patterns\n");
427 log_data_err("Error in the construction of number format with style currency: %s (Are you missing data?)\n",
455 * Test localized currency patterns for PREEURO variants.
479 log_verbose("\nTesting the number format with different currency patterns\n");
491 log_data_err("Error in the construction of number format with style currency: %s (Are you missing data?)\n",
523 * Test currency "object" (we use this name to match the other C++
524 * test name and the Jave name). Actually, test ISO currency cod
540 const char* currency[]={ local
    [all...]
cnumtst.c 141 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
146 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
149 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
152 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
333 log_err("Fail: Error in parsing currency, got %f, expected %f\n", d1, a1);
335 log_verbose("Pass: parsed currency ammount successfully\n");
338 log_verbose("Pass: parsed correct currency\n");
340 log_err("Fail: parsed incorrect currency\n");
1407 UChar currency[8]; local
    [all...]
  /external/icu4c/samples/numfmt/
main.cpp 85 // 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) {
108 if(currency==NULL || strlen(currency)!=3)
128 const char *currency; member in struct:__anon3960
    [all...]
  /libcore/luni/src/main/java/java/util/
Currency.java 27 * This class represents a currency as identified in the ISO 4217 currency
30 public final class Currency implements Serializable {
34 private static final Hashtable<String, Currency> codesToCurrencies = new Hashtable<String, Currency>();
35 private static final Hashtable<Locale, Currency> localesToCurrencies = new Hashtable<Locale, Currency>();
45 private Currency(String currencyCode) {
49 // In some places the code XXX is used as the fall back currency.
56 // Ensure that we throw if the our currency code isn't an ISO currency code
91 Currency currency = codesToCurrencies.get(currencyCode); local
112 Currency currency = localesToCurrencies.get(locale); local
    [all...]
  /external/chromium/third_party/icu/source/i18n/
winnmfmt.cpp 43 CURRENCYFMTW currency; member in union:FormatInfo
139 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status)
140 : NumberFormat(), fCurrency(currency), fFractionDigitsSet(FALSE), fFormatInfo(NULL)
148 getCurrencyFormat(&fFormatInfo->currency, fLCID);
168 freeCurrencyFormat(&fFormatInfo->currency);
186 freeCurrencyFormat(&fFormatInfo->currency);
187 getCurrencyFormat(&fFormatInfo->currency, fLCID);
295 formatInfo.currency.NumDigits = (UINT) numDigits;
299 formatInfo.currency.Grouping = 0;
302 result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE)
    [all...]
dcfmtsym.cpp 15 * 08/26/97 aliu Added currency/intl currency symbol support.
194 // Obtain currency data from the currency API. This is strictly
196 // for currency data anymore.
217 //load the currency data
218 UChar ucc[4]={0}; //Currency Codes are always 3 chars long
226 /* An explicit currency was requested */
227 UResourceBundle *currency = ures_getByKeyWithFallback(resource, "Currencies", NULL, &localStatus); local
228 currency = ures_getByKeyWithFallback(currency, cc, currency, &localStatus)
    [all...]
ucurr.cpp 37 // Default currency meta data of last resort. We try to use the
98 * Unfortunately, we have to convert the UChar* currency code to char*
102 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
103 u_UCharsToChars(currency, resultOfLen4, ISO_COUNTRY_CODE_LENGTH);
109 * Internal function to look up currency data. Result is an array of
115 _findMetaData(const UChar* currency, UErrorCode& ec) {
117 if (currency == 0 || *currency == 0) {
136 // Look up our currency, or if that's not available, then DEFAULT
139 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2)
1461 const char *currency; member in struct:CurrencyList
    [all...]
decimfmt.cpp 148 * The CURRENCY_SIGN is the standard Unicode symbol for currency. It
149 * is used in patterns and substitued with either the currency symbol,
150 * or if it is doubled, with the international currency symbol. If the
442 // If it looks like we are going to use a currency pattern
475 // initialize for currency, not only for plural format,
498 // If it was a currency format, apply the appropriate rounding by
499 // resetting the currency. NOTE: this copies fCurrency on top of itself.
517 // Save the default currency patterns of this locale.
541 // save the unique currency plural patterns of this locale.
1618 UChar* currency = parseCurrency ? curbuf : NULL; local
    [all...]
  /external/icu4c/i18n/
winnmfmt.cpp 43 CURRENCYFMTW currency; member in union:FormatInfo
139 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status)
140 : NumberFormat(), fCurrency(currency), fFractionDigitsSet(FALSE), fFormatInfo(NULL)
148 getCurrencyFormat(&fFormatInfo->currency, fLCID);
168 freeCurrencyFormat(&fFormatInfo->currency);
186 freeCurrencyFormat(&fFormatInfo->currency);
187 getCurrencyFormat(&fFormatInfo->currency, fLCID);
295 formatInfo.currency.NumDigits = (UINT) numDigits;
299 formatInfo.currency.Grouping = 0;
302 result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE)
    [all...]
dcfmtsym.cpp 15 * 08/26/97 aliu Added currency/intl currency symbol support.
206 // Obtain currency data from the currency API. This is strictly
208 // for currency data anymore.
230 //load the currency data
231 UChar ucc[4]={0}; //Currency Codes are always 3 chars long
240 /* An explicit currency was requested */
242 UResourceBundle *currency = ures_getByKeyWithFallback(currencyResource, "Currencies", NULL, &localStatus); local
243 currency = ures_getByKeyWithFallback(currency, cc, currency, &localStatus)
    [all...]
ucurr.cpp 38 // Default currency meta data of last resort. We try to use the
99 * Unfortunately, we have to convert the UChar* currency code to char*
103 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
104 u_UCharsToChars(currency, resultOfLen4, ISO_COUNTRY_CODE_LENGTH);
110 * Internal function to look up currency data. Result is an array of
116 _findMetaData(const UChar* currency, UErrorCode& ec) {
118 if (currency == 0 || *currency == 0) {
137 // Look up our currency, or if that's not available, then DEFAULT
140 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2)
1442 const char *currency; member in struct:CurrencyList
    [all...]
decimfmt.cpp 70 /* For currency parsing purose,
72 * every currency format pattern,
74 * and plural currency style. And the patterns are set through applyPattern.
100 /* affix for currency formatting when the currency sign in the pattern
101 * equals to 3, such as the pattern contains 3 currency sign or
102 * the formatter style is currency plural format style.
211 * The CURRENCY_SIGN is the standard Unicode symbol for currency. It
212 * is used in patterns and substitued with either the currency symbol,
213 * or if it is doubled, with the international currency symbol. If th
1591 UChar* currency = parseCurrency ? curbuf : NULL; local
    [all...]
  /external/icu4c/common/
locdispnames.cpp 285 static const char _kCurrency[] = "currency";
766 * if the keyword is equal to currency .. then to get the display name
776 UResourceBundle *currency = ures_getByKeyWithFallback(currencies, keywordValue, NULL, status); local
778 dispName = ures_getStringByIndex(currency, UCURRENCY_DISPLAY_NAME_INDEX, &dispNameLen, status);
781 ures_close(currency);
  /libcore/luni/src/main/java/java/text/
DecimalFormatSymbols.java 27 import java.util.Currency;
56 private transient Currency currency; field in class:DecimalFormatSymbols
99 currency = Currency.getInstance(locale);
100 currencySymbol = currency.getSymbol(locale);
101 intlCurrencySymbol = currency.getCurrencyCode();
103 currency = Currency.getInstance("XXX");
174 return currency.equals(obj.currency) &
    [all...]
  /external/chromium/third_party/icu/source/common/
uloc.c 77 static const char _kCurrency[] = "currency";
489 { "ca_ES_PREEURO", "ca_ES", "currency", "ESP" },
494 { "de_AT_PREEURO", "de_AT", "currency", "ATS" },
495 { "de_DE_PREEURO", "de_DE", "currency", "DEM" },
496 { "de_LU_PREEURO", "de_LU", "currency", "LUF" },
497 { "el_GR_PREEURO", "el_GR", "currency", "GRD" },
500 { "en_BE_PREEURO", "en_BE", "currency", "BEF" },
501 { "en_IE_PREEURO", "en_IE", "currency", "IEP" },
503 { "es_ES_PREEURO", "es_ES", "currency", "ESP" },
504 { "eu_ES_PREEURO", "eu_ES", "currency", "ESP" }
2607 UResourceBundle *currency = ures_getByKeyWithFallback(currencies, keywordValue, NULL, status); local
    [all...]

Completed in 477 milliseconds

1 2