Home
last modified time | relevance | path

Searched refs:currencyCode (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DCurrencyNameTest.java65 String currencyCode = currency.getCurrencyCode(); in TestCurrencySymbols() local
66 … com.ibm.icu.util.Currency currencyIcu = com.ibm.icu.util.Currency.getInstance(currencyCode); in TestCurrencySymbols()
76 if (curSymbolIcu.equals(currencyCode)) { in TestCurrencySymbols()
78 if (!curSymbol.equals(currencyCode)) { in TestCurrencySymbols()
87 … errln("FAIL: Currency symbol for " + currencyCode + " by ICU is " + curSymbolIcu in TestCurrencySymbols()
92 … logln("INFO: Currency symbol for " + currencyCode + " by ICU is " + curSymbolIcu in TestCurrencySymbols()
99 … errln("FAIL: Currency symbol for " + currencyCode + " by ICU is " + curSymbolIcu in TestCurrencySymbols()
115 String currencyCode = currency.getCurrencyCode(); in TestCurrencyDisplayNames() local
116 … com.ibm.icu.util.Currency currencyIcu = com.ibm.icu.util.Currency.getInstance(currencyCode); in TestCurrencyDisplayNames()
133 if (curNameIcu.equals(currencyCode)) { in TestCurrencyDisplayNames()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/util/
DCurrencyNameProviderICU.java20 public String getSymbol(String currencyCode, Locale locale) { in getSymbol() argument
22 String sym = curDispNames.getSymbol(currencyCode); in getSymbol()
23 if (sym == null || sym.equals(currencyCode)) { in getSymbol()
30 public String getDisplayName(String currencyCode, Locale locale) { in getDisplayName() argument
32 String name = curDispNames.getName(currencyCode); in getDisplayName()
33 if (name == null || name.equals(currencyCode)) { in getDisplayName()
/external/icu/icu4c/source/i18n/
Dnumparse_currency.cpp58 if (result.currencyCode[0] != 0) { in match()
76 if (result.currencyCode[0] == 0) { in match()
106 utils::copyCurrencyCode(result.currencyCode, fCurrencyCode); in matchCurrency()
122 utils::copyCurrencyCode(result.currencyCode, fCurrencyCode); in matchCurrency()
142 result.currencyCode, in matchCurrency()
166 utils::copyCurrencyCode(result.currencyCode, fCurrencyCode); in matchCurrency()
Dnumparse_validators.cpp34 if (result.currencyCode[0] == 0) { in postProcess()
Dnumparse_parsednumber.cpp34 currencyCode[0] = 0; in clear()
Dnumparse_types.h124 UChar currencyCode[4]; variable
Dnumber_skeletons.cpp877 const UChar* currencyCode = segment.toTempUnicodeString().getBuffer(); in parseCurrencyOption() local
879 CurrencyUnit currency(currencyCode, localStatus); in parseCurrencyOption()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DCombinedCurrencyMatcher.java95 if (result.currencyCode != null) { in match()
113 if (result.currencyCode == null) { in match()
143 result.currencyCode = isoCode; in matchCurrency()
159 result.currencyCode = isoCode; in matchCurrency()
175 result.currencyCode = values.next().getISOCode(); in matchCurrency()
196 result.currencyCode = isoCode; in matchCurrency()
DParsedNumber.java50 public String currencyCode; field in ParsedNumber
83 currencyCode = null; in clear()
93 currencyCode = other.currencyCode; in copyFrom()
DRequireCurrencyValidator.java15 if (result.currencyCode == null) { in postProcess()
DNumberParserImpl.java111 assert result.currencyCode != null; in parseStaticCurrency()
112 … return new CurrencyAmount(result.getNumber(), Currency.getInstance(result.currencyCode)); in parseStaticCurrency()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DCombinedCurrencyMatcher.java93 if (result.currencyCode != null) { in match()
111 if (result.currencyCode == null) { in match()
141 result.currencyCode = isoCode; in matchCurrency()
157 result.currencyCode = isoCode; in matchCurrency()
173 result.currencyCode = values.next().getISOCode(); in matchCurrency()
194 result.currencyCode = isoCode; in matchCurrency()
DParsedNumber.java48 public String currencyCode; field in ParsedNumber
81 currencyCode = null; in clear()
91 currencyCode = other.currencyCode; in copyFrom()
DRequireCurrencyValidator.java13 if (result.currencyCode == null) { in postProcess()
DNumberParserImpl.java109 assert result.currencyCode != null; in parseStaticCurrency()
110 … return new CurrencyAmount(result.getNumber(), Currency.getInstance(result.currencyCode)); in parseStaticCurrency()
/external/cldr/tools/java/org/unicode/cldr/test/
DBuildIcuCompactDecimalFormat.java315 …CurrencyInfo(CLDRFile resolvedCldrFile, Set<String> canonicalKeywords, String currencyCode, XPathP… in CurrencyInfo() argument
319 currencyCode + in CurrencyInfo()
390 final String currencyCode = currency.getCurrencyCode(); in getName() local
392 return currencyCode; in getName()
394 String prefix = "//ldml/numbers/currencies/currency[@type=\"" + currencyCode + "\"]/"; in getName()
396 return currencySymbol != null ? currencySymbol : currencyCode; in getName()
/external/cldr/tools/java/org/unicode/cldr/util/
DVerifyCompactNumbers.java64 String currencyCode = MyOptions.currency.option.getValue(); in main() local
109 showNumbers(cldrFile, showCurrency, currencyCode, out, factory2); in main()
125 String currencyCode, Appendable out, Factory factory) { in showNumbers() argument
163 debugOriginals, CompactStyle.SHORT, locale2, CurrencyStyle.PLAIN, currencyCode); in showNumbers()
166 debugOriginals, CompactStyle.LONG, locale2, CurrencyStyle.PLAIN, currencyCode); in showNumbers()
170 debugOriginals, CompactStyle.SHORT, locale2, CurrencyStyle.CURRENCY, currencyCode); in showNumbers()
206 cdfCurr.setCurrency(Currency.getInstance(currencyCode)); in showNumbers()
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DDecimalFormatSymbolsICU.java171 public void setInternationalCurrencySymbol(String currencyCode) { in setInternationalCurrencySymbol() argument
172 fIcuDecfs.setInternationalCurrencySymbol(currencyCode); in setInternationalCurrencySymbol()
/external/cldr/tools/java/org/unicode/cldr/tool/
DCountItems.java247 String currencyCode = it.next(); in generateSupplementalCurrencyItems() local
249 Set<Data> dataSet = codeList.getAll(currencyCode); in generateSupplementalCurrencyItems()
264 numericTocurrencyCode.put(strNumCode, currencyCode); in generateSupplementalCurrencyItems()
267 String currencyLine = "<currencyCodes type=" + "\"" + currencyCode + in generateSupplementalCurrencyItems()
287 String currencyCode = it.next(); in generateCurrencyItems() local
288 Set<Data> dataSet = codeList.getAll(currencyCode); in generateCurrencyItems()
292 System.out.print(currencyCode); in generateCurrencyItems()
300 list.append(currencyCode); in generateCurrencyItems()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberParserTest.java287 result.currencyCode); in testCombinedCurrencyMatcher()
298 result.currencyCode); in testCombinedCurrencyMatcher()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_parse.cpp283 result.currencyCode); in testCombinedCurrencyMatcher()
296 result.currencyCode); in testCombinedCurrencyMatcher()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberParserTest.java284 result.currencyCode); in testCombinedCurrencyMatcher()
295 result.currencyCode); in testCombinedCurrencyMatcher()
/external/icu/icu4c/source/test/cintltst/
Dcnumtst.c2518 UChar currencyCode[4]; in TestCurrencyIsoPluralFormat() local
2528 u_charsToUChars(currencyISOCode, currencyCode, 4); in TestCurrencyIsoPluralFormat()
2529 unum_setTextAttribute(unumFmt, UNUM_CURRENCY_CODE, currencyCode, 3, &status); in TestCurrencyIsoPluralFormat()
2672 UChar currencyCode[4]; in TestCurrencyUsage() local
2677 u_charsToUChars(DATA[j][0], currencyCode, 3); in TestCurrencyUsage()
2680 unum_setTextAttribute(unumFmt, UNUM_CURRENCY_CODE, currencyCode, 3, &status); in TestCurrencyUsage()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberSkeletonImpl.java930 String currencyCode = segment.subSequence(0, segment.length()).toString(); in parseCurrencyOption() local
933 currency = Currency.getInstance(currencyCode); in parseCurrencyOption()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberSkeletonImpl.java929 String currencyCode = segment.subSequence(0, segment.length()).toString(); in parseCurrencyOption() local
932 currency = Currency.getInstance(currencyCode); in parseCurrencyOption()

12