Home
last modified time | relevance | path

Searched refs:currency (Results 1 – 25 of 66) sorted by relevance

123

/external/icu4c/samples/numfmt/
Dmain.cpp103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() argument
108 if(currency==NULL || strlen(currency)!=3) { in setNumberFormatCurrency_2_4()
128 const char *currency; in setNumberFormatCurrency_2_4() member
156 if(strcmp(currency, currencyMap[i].currency)==0) { in setNumberFormatCurrency_2_4()
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_6() argument
196 if(currency==NULL || strlen(currency)!=3) { in setNumberFormatCurrency_2_6()
203 u_charsToUChars(currency, uCurrency, 4); in setNumberFormatCurrency_2_6()
/external/icu4c/i18n/
Ddcfmtsym.cpp196 … UResourceBundle *currency = ures_getByKeyWithFallback(resource, "Currencies", NULL, &localStatus); in initialize() local
197 currency = ures_getByKeyWithFallback(currency, cc, currency, &localStatus); in initialize()
198 …if(U_SUCCESS(localStatus) && ures_getSize(currency)>2) { // the length is 3 if more data is present in initialize()
199 currency = ures_getByIndex(currency, 2, currency, &localStatus); in initialize()
201 … currPattern = ures_getStringByIndex(currency, (int32_t)0, &currPatternLen, &localStatus); in initialize()
202 … UnicodeString decimalSep = ures_getStringByIndex(currency, (int32_t)1, NULL, &localStatus); in initialize()
203 … UnicodeString groupingSep = ures_getStringByIndex(currency, (int32_t)2, NULL, &localStatus); in initialize()
211 ures_close(currency); in initialize()
Dwinnmfmt.cpp43 CURRENCYFMTW currency; member
139 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status) in Win32NumberFormat() argument
140 : NumberFormat(), fCurrency(currency), fFractionDigitsSet(FALSE), fFormatInfo(NULL) in Win32NumberFormat()
148 getCurrencyFormat(&fFormatInfo->currency, fLCID); in Win32NumberFormat()
168 freeCurrencyFormat(&fFormatInfo->currency); in ~Win32NumberFormat()
186 freeCurrencyFormat(&fFormatInfo->currency); in operator =()
187 getCurrencyFormat(&fFormatInfo->currency, fLCID); in operator =()
295 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
299 formatInfo.currency.Grouping = 0; in format()
302 … result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE); in format()
[all …]
Ducurr.cpp94 myUCharsToChars(char* resultOfLen4, const UChar* currency) { in myUCharsToChars() argument
95 u_UCharsToChars(currency, resultOfLen4, ISO_COUNTRY_CODE_LENGTH); in myUCharsToChars()
107 _findMetaData(const UChar* currency, UErrorCode& ec) { in _findMetaData() argument
109 if (currency == 0 || *currency == 0) { in _findMetaData()
131 UResourceBundle* rb = ures_getByKey(currencyMeta, myUCharsToChars(buf, currency), NULL, &ec2); in _findMetaData()
452 ucurr_getName(const UChar* currency, in ucurr_getName() argument
501 myUCharsToChars(buf, currency); in ucurr_getName()
542 *len = u_strlen(currency); // Should == ISO_COUNTRY_CODE_LENGTH, but maybe not...? in ucurr_getName()
544 return currency; in ucurr_getName()
715 ucurr_getDefaultFractionDigits(const UChar* currency, UErrorCode* ec) { in ucurr_getDefaultFractionDigits() argument
[all …]
Dunum.cpp256 UChar* currency, in unum_formatDoubleCurrency() argument
275 Formattable n(new CurrencyAmount(number, currency, *status)); in unum_formatDoubleCurrency()
362 UChar* currency, in unum_parseDoubleCurrency() argument
366 currency[0] = 0; in unum_parseDoubleCurrency()
370 u_strcpy(currency, c->getISOCurrency()); in unum_parseDoubleCurrency()
Dwinnmfmt.h39 Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status);
Ddecimfmt.cpp1387 UChar* currency = parseCurrency ? curbuf : NULL; in parse() local
1389 if (!subparse(text, parsePosition, digits, status, currency)) { in parse()
1471 UChar* currency) const in subparse()
1482 int32_t posMatch = compareAffix(text, position, FALSE, TRUE, currency); in subparse()
1483 int32_t negMatch = compareAffix(text, position, TRUE, TRUE, currency); in subparse()
1698 posMatch = compareAffix(text, position, FALSE, FALSE, currency); in subparse()
1701 negMatch = compareAffix(text, position, TRUE, FALSE, currency); in subparse()
1769 UChar* currency) const in compareAffix()
1772 if (fCurrencyChoice != NULL || currency != NULL) { in compareAffix()
1790 return compareComplexAffix(*patternToCompare, text, pos, currency); in compareAffix()
[all …]
/external/icu4c/test/cintltst/
Dccurrtst.c43 static const UChar currency[][2] = in currTest() local
79 static const UChar currency[][2] = in currTest()
120 for (i = 0; i < ARRAY_LENGTH(currency); i += 1) in currTest()
122 for (j = 0; j < ARRAY_LENGTH(currency); j += 1) in currTest()
124 u_strcpy(source, currency[i]); in currTest()
125 u_strcpy(target, currency[j]); in currTest()
Dcnmdptst.c538 const char* currency[]={ in TestCurrencyObject() local
558 if (*currency[i]) { in TestCurrencyObject()
559 u_uastrcpy(isoCode, currency[i]); in TestCurrencyObject()
577 if (*currency[i] && uprv_strcmp(cStr, currency[i])) { in TestCurrencyObject()
578 log_err("FAIL: currency should be %s, but is %s\n", currency[i], cStr); in TestCurrencyObject()
Dcnumtst.c1319 UChar currency[8]; in TestCurrencyRegression() local
1327 currency[0]=0; in TestCurrencyRegression()
1343 currency, in TestCurrencyRegression()
1346 u_austrcpy(acurrency, currency); in TestCurrencyRegression()
/external/icu4c/test/intltest/
Dcurrcoll.cpp46 static const UChar currency[][2] = in currencyTest() local
94 for (i = 0; i < ARRAY_LENGTH(currency); i += 1) in currencyTest()
96 for (j = 0; j < ARRAY_LENGTH(currency); j += 1) in currencyTest()
98 UnicodeString source(currency[i], 1); in currencyTest()
99 UnicodeString target(currency[j], 1); in currencyTest()
Dwinnmtst.cpp132 static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeString &appendTo, const… in getWindowsFormat() argument
186 if (currency) { in getWindowsFormat()
229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument
238 getWindowsFormat(lcid, currency, wdBuffer, L"%.16f", d); in testLocale()
240 getWindowsFormat(lcid, currency, w3Buffer, L"%I32d", i32); in testLocale()
242 getWindowsFormat(lcid, currency, w6Buffer, L"%I64d", i64); in testLocale()
Dnumrgts.cpp1322 UnicodeString currency(fmt->getSymbol(DecimalFormatSymbols::kCurrencySymbol)); in Test4061302() local
1325 if (currency == UnicodeString("") || in Test4061302()
1333 …logln((UnicodeString)"Before set ==> Currency : " + currency +(UnicodeString)" Intl Currency : " +… in Test4061302()
1337 currency = fmt->getSymbol(DecimalFormatSymbols::kCurrencySymbol); in Test4061302()
1340 if (currency != UnicodeString("XYZ") || in Test4061302()
1347 …logln("After set ==> Currency : " + currency + " Intl Currency : " + intlCurrency + " Monetary Dec… in Test4061302()
1687 const UChar *currency = fmt1->getCurrency(); in Test4122840() local
1688 if (*currency != 0) { in Test4122840()
1689 double rounding = ucurr_getRoundingIncrement(currency, &status); in Test4122840()
1690 int32_t frac = ucurr_getDefaultFractionDigits(currency, &status); in Test4122840()
Dnumfmtst.cpp583 UChar currency = 0x00A4; in TestCurrencySign() local
585 pat.append(currency).append("#,##0.00;-"). in TestCurrencySign()
586 append(currency).append("#,##0.00"); in TestCurrencySign()
600 pat.append(currency).append(currency). in TestCurrencySign()
602 append(currency).append(currency). in TestCurrencySign()
/external/icu4c/i18n/unicode/
Ducurr.h134 ucurr_getName(const UChar* currency,
151 ucurr_getDefaultFractionDigits(const UChar* currency,
164 ucurr_getRoundingIncrement(const UChar* currency,
Dunum.h375 UChar* currency,
477 UChar* currency,
Ddecimfmt.h1787 UChar* currency) const;
1795 UChar* currency) const;
1808 UChar* currency) const;
/external/icu4c/test/hdrtst/
Dcxxfiles.txt79 # currency...
/external/icu4c/data/locales/
Dml.txt80 currency{"നാണയം"}
Dbe.txt330 currency{"валюта"}
Dmk.txt980 currency{"Валута"}
Dsl.txt328 currency{"Valuta"}
Dlv.txt271 currency{"Valūta"}
Dhe.txt878 currency{"מטבע"}
/external/icu4c/common/
Duloc.c2577 … UResourceBundle *currency = ures_getByKeyWithFallback(currencies, keywordValue, NULL, status); in uloc_getDisplayKeywordValue() local
2579 … dispName = ures_getStringByIndex(currency, UCURRENCY_DISPLAY_NAME_INDEX, &dispNameLen, status); in uloc_getDisplayKeywordValue()
2582 ures_close(currency); in uloc_getDisplayKeywordValue()

123