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

/external/icu4c/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:__anon4855
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) argument
[all...]
/external/icu4c/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 Ddecimfmt.h57 * ("1.23E4"), percentages ("12%"), and currency amounts ("$123", "USD123",
77 * // Print out a number with the localized number, currency and percent
114 * <strong>// Print out a number using the localized number, currency,
115 * // percent, scientific, integer, iso currency, and plural currency
162 * their special status. Two exceptions are the currency sign and quote, which
237 * <td>Currency sign, replaced by currency symbol. If
238 * doubled, replaced by international currency symbol.
239 * If tripled, replaced by currency plural names, for example,
355 * <p>For currency parsin
[all...]
H A Dunum.h38 * There are different number format styles like decimal, currency,
101 * to get the currency number format for that country. Use UNUM_PERCENT
122 * locale like the currency symbol, the grouping seperator , monetary seperator
411 * Format a double currency amount using a UNumberFormat.
415 * @param currency the 3-letter null-terminated ISO 4217 currency code
434 UChar* currency,
548 * Parse a string into a double and a currency using a UNumberFormat.
557 * @param currency a pointer to the buffer to receive the parsed null-
558 * terminated currency
[all...]
/external/icu4c/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);
H A Dnumrgts.cpp831 * interpreted as monetary separator if currency symbol is seen!
929 logln ("Bug 4070798 currency test passed.");
1001 logln ("Bug 4071005 currency test assed.");
1070 logln ("Bug 4071014 currency test assed.");
1135 logln ("Bug 4071859 currency test assed.");
1341 UnicodeString currency(fmt->getSymbol(DecimalFormatSymbols::kCurrencySymbol));
1344 if (currency == UnicodeString("") ||
1352 logln((UnicodeString)"Before set ==> Currency : " + currency +(UnicodeString)" Intl Currency : " + intlCurrency + (UnicodeString)" Monetary Decimal Separator : " + monDecSeparatorStr);
1356 currency = fmt->getSymbol(DecimalFormatSymbols::kCurrencySymbol);
1359 if (currency !
1712 const UChar *currency = fmt1->getCurrency(); local
[all...]
H A Dnumfmtst.cpp78 CASE(17,TestComplexCurrency); // This test removed because CLDR no longer uses choice formats in currency symbols.
612 * Test the handling of the currency symbol in patterns.
620 UChar currency = 0x00A4; local
627 pat.append(currency).append("#,##0.00;-").
628 append(currency).append("#,##0.00");
642 pat.append(currency).append(currency).
644 append(currency).append(currency).
697 {"en_US@currency
2895 UChar currency = 0x00A4; local
[all...]
/external/icu4c/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...]
H A Dcnmdptst.c335 * 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...]
H A Dcnumtst.c190 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
195 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
198 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
201 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
382 log_err("Fail: Error in parsing currency, got %f, expected %f\n", d1, a1);
384 log_verbose("Pass: parsed currency ammount successfully\n");
387 log_verbose("Pass: parsed correct currency\n");
389 log_err("Fail: parsed incorrect currency\n");
1464 /* Get a non-existent currency and make sure it returns the correct currency cod
1600 UChar currency[8]; local
[all...]
/external/icu4c/i18n/
H A Dwinnmfmt.cpp43 CURRENCYFMTW currency; member in union:FormatInfo
139 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status) argument
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, buffe
[all...]
H A Ddcfmtsym.cpp15 * 08/26/97 aliu Added currency/intl currency symbol support.
162 NULL, /* currency symbol - We don't really try to load this directly from CLDR until we know the currency */
163 NULL, /* intl currency symbol - We don't really try to load this directly from CLDR until we know the currency */
292 // Obtain currency data from the currency API. This is strictly
294 // for currency data anymore.
314 //load the currency dat
326 UResourceBundle *currency = ures_getByKeyWithFallback(currencyResource, "Currencies", NULL, &localStatus); local
[all...]
H A Dwinnmfmt.h39 Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status);
H A Ducurr.cpp38 // 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) { argument
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) { argument
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), NUL
469 ucurr_getName(const UChar* currency, const char* locale, UCurrNameStyle nameStyle, UBool* isChoiceFormat, int32_t* len, UErrorCode* ec) argument
568 ucurr_getPluralName(const UChar* currency, const char* locale, UBool* isChoiceFormat, const char* pluralCount, int32_t* len, UErrorCode* ec) argument
1405 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) argument
1410 ucurr_getRoundingIncrement(const UChar* currency, UErrorCode* ec) argument
1446 const char *currency; member in struct:CurrencyList
[all...]
H A Ddecimfmt.cpp70 /* 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 symbo
1614 UChar* currency = parseCurrency ? curbuf : NULL; local
[all...]
H A Dunum.cpp313 UChar* currency,
331 CurrencyAmount *tempCurrAmnt = new CurrencyAmount(number, currency, *status);
456 UChar* currency,
460 currency[0] = 0;
464 u_strcpy(currency, c->getISOCurrency());
311 unum_formatDoubleCurrency(const UNumberFormat* fmt, double number, UChar* currency, UChar* result, int32_t resultLength, UFieldPosition* pos, UErrorCode* status) argument
452 unum_parseDoubleCurrency(const UNumberFormat* fmt, const UChar* text, int32_t textLength, int32_t* parsePos, UChar* currency, UErrorCode* status) argument
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DDecimalFormatSymbolsTest.java248 Currency currency = Currency.getInstance("USD");
249 assertEquals("Returned incorrect currency",
250 dfsUS.getCurrency(), currency);
259 assertTrue("Test1: Returned incorrect currency",
267 assertTrue("Test2: Returned incorrect currency",
275 assertTrue("Test3: Returned incorrect currency",
283 assertTrue("Test4: Returned incorrect currency",
292 // assertTrue("Test5: Returned incorrect currency", dfs1.getCurrency()
425 Currency currency = Currency.getInstance("JPY");
426 dfs.setCurrency(currency);
[all...]
H A DDecimalFormatTest.java1197 assertTrue("Test1: Returned incorrect currency",
1202 assertTrue("Test2: Returned incorrect currency",
1207 assertTrue("Test3: Returned incorrect currency",
1212 assertTrue("Test4: Returned incorrect currency",
1217 assertTrue("Test5: Returned incorrect currency",
1223 // assertTrue("Test5: Returned incorrect currency", df.getCurrency() ==
1410 Currency currency = Currency.getInstance("AED");
1411 df.setCurrency(currency);
1412 assertTrue("Returned incorrect currency", currency
[all...]
/external/qemu/
H A Dcurses_keys.h349 { "currency", 0x0a4 },
/external/icu4c/common/
H A Dlocdispnames.cpp285 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);
/external/icu4c/data/
H A Dmakedata.mak287 # Read the list of currency display name resource bundle files
773 @echo Making currency display name files

Completed in 412 milliseconds