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

1 2 3

  /external/chromium_org/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...]
numrgts.cpp 836 * interpreted as monetary separator if currency symbol is seen!
935 logln ("Bug 4070798 currency test passed.");
1718 const UChar *currency = fmt1->getCurrency(); local
    [all...]
  /external/icu/icu4c/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...]
  /external/chromium_org/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 180 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
185 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
188 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
191 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
372 log_err("Fail: Error in parsing currency, got %f, expected %f\n", d1, a1);
374 log_verbose("Pass: parsed currency amount successfully\n");
377 log_verbose("Pass: parsed correct currency\n");
379 log_err("Fail: parsed incorrect currency\n");
1797 UChar currency[8]; local
    [all...]
  /external/icu/icu4c/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...]
  /libcore/luni/src/test/java/libcore/java/util/
CurrencyTest.java 19 import java.util.Currency;
24 // Regression test to ensure that Currency.getSymbol(Locale) returns the
25 // currency code if ICU doesn't have a localization of the symbol. The
26 // harmony Currency tests don't test this, and their DecimalFormat tests
31 // This assumes that AED never becomes a currency important enough to
33 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA));
36 // Regression test to ensure that Currency.getInstance(String) throws if
37 // given an invalid ISO currency code.
39 Currency.getInstance("USD");
41 Currency.getInstance("BOGO-DOLLARS")
84 Currency currency = Currency.getInstance(Locale.getDefault()); local
    [all...]
  /external/chromium_org/third_party/icu/source/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)
129 const char *currency; member in struct:__anon16788
    [all...]
  /external/icu/icu4c/source/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)
129 const char *currency; member in struct:__anon5666
    [all...]
  /libcore/luni/src/main/java/java/util/
Currency.java 25 * A currency corresponding to an <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a>
26 * currency code such as "EUR" or "USD".
28 public final class Currency implements Serializable {
31 private static final HashMap<String, Currency> codesToCurrencies = new HashMap<String, Currency>();
32 private static final HashMap<Locale, Currency> localesToCurrencies = new HashMap<Locale, Currency>();
36 private Currency(String currencyCode) {
40 throw new IllegalArgumentException("Unsupported ISO 4217 currency code: " +
46 * Returns the {@code Currency} instance for the given ISO 4217 currency code
52 Currency currency = codesToCurrencies.get(currencyCode); local
71 Currency currency = localesToCurrencies.get(locale); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DecimalFormatSymbolsTest.java 29 import java.util.Currency;
118 Currency currency = Currency.getInstance("USD"); local
119 assertEquals("Returned incorrect currency",
120 dfsUS.getCurrency(), currency);
122 Currency currK = Currency.getInstance("KRW");
123 Currency currX = Currency.getInstance("XXX")
295 Currency currency = Currency.getInstance("JPY"); local
371 Currency currency = Currency.getInstance("JPY"); local
458 Currency currency = symbols.getCurrency(); local
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/
winnmfmt.cpp 43 CURRENCYFMTW currency; member in union:FormatInfo
138 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status)
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, buffer, STACK_BUFFER_SIZE)
    [all...]
ucurr.cpp 49 // Default currency meta data of last resort. We try to use the
61 // Defines equivalent currency symbols.
118 // Currency symbol equivalances
287 * Unfortunately, we have to convert the UChar* currency code to char*
291 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
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) {
308 if (currency == 0 || *currency == 0)
1659 const char *currency; member in struct:CurrencyList
    [all...]
  /external/icu/icu4c/source/i18n/
winnmfmt.cpp 43 CURRENCYFMTW currency; member in union:FormatInfo
138 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status)
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, buffer, STACK_BUFFER_SIZE)
    [all...]
ucurr.cpp 49 // Default currency meta data of last resort. We try to use the
61 // Defines equivalent currency symbols.
118 // Currency symbol equivalances
287 * Unfortunately, we have to convert the UChar* currency code to char*
291 myUCharsToChars(char* resultOfLen4, const UChar* currency) {
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) {
308 if (currency == 0 || *currency == 0)
1659 const char *currency; member in struct:CurrencyList
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
DecimalFormatTest.java 27 import java.util.Currency;
199 df.setCurrency(Currency.getInstance("CHF"));
200 df.setCurrency(Currency.getInstance("GBP"));
264 // Confirm the fraction digits do not change when the currency is changed.
269 numberFormat.setCurrency(Currency.getInstance("USD"));
279 // Changing the currency must not reset the digits.
280 numberFormat.setCurrency(Currency.getInstance("EUR"));
281 numberFormat.setCurrency(Currency.getInstance("USD"));
286 // Confirm the currency symbol used by a format is determined by the locale of the format
289 Currency currency = Currency.getInstance("CNY") local
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
locale.py 37 "str", "atof", "atoi", "format", "format_string", "currency",
256 def currency(val, symbol=True, grouping=False, international=False): function
257 """Formats val according to the currency settings
264 raise ValueError("Currency formatting is not possible using "
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
locale.py 37 "str", "atof", "atoi", "format", "format_string", "currency",
256 def currency(val, symbol=True, grouping=False, international=False): function
257 """Formats val according to the currency settings
264 raise ValueError("Currency formatting is not possible using "
    [all...]
  /external/chromium_org/v8/src/
i18n.cc 233 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.isEmpty())
    [all...]
  /libcore/luni/src/main/java/java/text/
DecimalFormatSymbols.java 25 import java.util.Currency;
56 private transient Currency currency; field in class:DecimalFormatSymbols
104 currency = Currency.getInstance(locale);
105 currencySymbol = currency.getSymbol(locale);
106 intlCurrencySymbol = currency.getCurrencyCode();
108 currency = Currency.getInstance("XXX");
179 return currency.equals(obj.currency) &
    [all...]
DecimalFormat.java 27 import java.util.Currency;
38 * percentages ("12%"), and currency amounts ("$123"). All of these flavors can
91 * special status. Two exceptions are the currency sign and quote, which are not
175 * <td>Currency sign, replaced by currency symbol. If doubled, replaced by
176 * international currency symbol. If present in a pattern, the monetary decimal
719 * Returns the currency used by this decimal format.
721 * @return the currency used by this decimal format.
725 public Currency getCurrency() {
    [all...]
  /external/chromium_org/third_party/icu/source/common/
locdispnames.cpp 286 static const char _kCurrency[] = "currency";
824 * if the keyword is equal to currency .. then to get the display name
834 UResourceBundle *currency = ures_getByKeyWithFallback(currencies, keywordValue, NULL, status); local
836 dispName = ures_getStringByIndex(currency, UCURRENCY_DISPLAY_NAME_INDEX, &dispNameLen, status);
839 ures_close(currency);
    [all...]
  /external/icu/icu4c/source/common/
locdispnames.cpp 286 static const char _kCurrency[] = "currency";
824 * if the keyword is equal to currency .. then to get the display name
834 UResourceBundle *currency = ures_getByKeyWithFallback(currencies, keywordValue, NULL, status); local
836 dispName = ures_getStringByIndex(currency, UCURRENCY_DISPLAY_NAME_INDEX, &dispNameLen, status);
839 ures_close(currency);
    [all...]

Completed in 1141 milliseconds

1 2 3