/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | CurrencyAmount.java | 17 * An amount of currency, consisting of a Number and a Currency. 28 * Constructs a new object given a number and a currency. 30 * @param currency the currency 33 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() argument 34 super(number, currency); in CurrencyAmount() 38 * Constructs a new object given a double value and a currency. 40 * @param currency the currency 43 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() argument 53 CurrencyAmount(Number number, java.util.Currency currency) CurrencyAmount() argument 63 CurrencyAmount(double number, java.util.Currency currency) CurrencyAmount() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | CurrencyAmount.java | 18 * An amount of currency, consisting of a Number and a Currency. 28 * Constructs a new object given a number and a currency. 30 * @param currency the currency 32 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() argument 33 super(number, currency); in CurrencyAmount() 37 * Constructs a new object given a double value and a currency. 39 * @param currency the currency 41 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() argument 50 CurrencyAmount(Number number, java.util.Currency currency) CurrencyAmount() argument 59 CurrencyAmount(double number, java.util.Currency currency) CurrencyAmount() argument [all...] |
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
H A D | CurrencyNameTest.java | 49 Currency currency = Currency.getInstance(l); 50 if (currency != null) { 51 currencies.add(currency); 64 for (Currency currency : AVAILABLE_CURRENCIES) { in TestCurrencySymbols() 65 String currencyCode = currency.getCurrencyCode(); in TestCurrencySymbols() 73 String curSymbol = currency.getSymbol(loc); in TestCurrencySymbols() 79 logln("INFO: JDK has currency symbol " + curSymbol + " for locale " + in TestCurrencySymbols() 97 curSymbol = currency.getSymbol(locIcu); in TestCurrencySymbols() 114 for (Currency currency : AVAILABLE_CURRENCIES) { in TestCurrencyDisplayNames() 115 String currencyCode = currency in TestCurrencyDisplayNames() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | CustomSymbolCurrency.java | 16 public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { in resolve() argument 17 if (currency == null) { in resolve() 18 currency = symbols.getCurrency(); in resolve() 20 if (currency == null) { in resolve() 23 if (!currency.equals(symbols.getCurrency())) { in resolve() 24 return currency; in resolve() 28 String currency1 = currency.getName(symbols.getULocale(), Currency.SYMBOL_NAME, null); in resolve() 29 String currency2 = currency.getCurrencyCode(); in resolve() 33 return currency; in resolve()
|
H A D | MutablePatternModifier.java | 50 Currency currency; field in MutablePatternModifier 107 * @param currency 108 * The currency to be used when substituting currency values into the affixes. 112 * Required if the triple currency sign, "¤¤¤", appears in the pattern, which can be 117 Currency currency, in setSymbols() 122 this.currency = currency; in setSymbols() 134 * currency sign, "¤¤¤" (and as indicated by {@link #needsPlurals()}). 144 * to localize. This is currently true only if there is a currency lon 115 setSymbols( DecimalFormatSymbols symbols, Currency currency, UnitWidth unitWidth, PluralRules rules) setSymbols() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
H A D | CustomSymbolCurrency.java | 20 public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { in resolve() argument 21 if (currency == null) { in resolve() 22 currency = symbols.getCurrency(); in resolve() 24 if (currency == null) { in resolve() 27 if (!currency.equals(symbols.getCurrency())) { in resolve() 28 return currency; in resolve() 32 String currency1 = currency.getName(symbols.getULocale(), Currency.SYMBOL_NAME, null); in resolve() 33 String currency2 = currency.getCurrencyCode(); in resolve() 37 return currency; in resolve()
|
H A D | MutablePatternModifier.java | 51 Currency currency; field in MutablePatternModifier 105 * @param currency 106 * The currency to be used when substituting currency values into the affixes. 110 * Required if the triple currency sign, "¤¤¤", appears in the pattern, which can be 115 Currency currency, in setSymbols() 120 this.currency = currency; in setSymbols() 132 * currency sign, "¤¤¤" (and as indicated by {@link #needsPlurals()}). 142 * to localize. This is currently true only if there is a currency lon 113 setSymbols( DecimalFormatSymbols symbols, Currency currency, UnitWidth unitWidth, PluralRules rules) setSymbols() argument [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | CurrencyMetaInfo.java | 23 * A note about currency dates. The CLDR data provides data to the day, 38 * Returns the unique instance of the currency meta info. 47 * Returns the unique instance of the currency meta info, or null if 58 * Returns true if there is data for the currency meta info. 78 * A filter used to select which currency info is returned. 89 * The currency to filter on. If null, accepts any currency. 92 public final String currency; field in CurrencyMetaInfo.CurrencyFilter 95 * The from date to filter on (as milliseconds). Accepts any currency on or after this date. 101 * The to date to filter on (as milliseconds). Accepts any currency o 114 CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) CurrencyFilter() argument 163 onCurrency(String currency) onCurrency() argument 244 withCurrency(String currency) withCurrency() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | CurrencyMetaInfo.java | 24 * A note about currency dates. The CLDR data provides data to the day, 39 * Returns the unique instance of the currency meta info. 47 * Returns the unique instance of the currency meta info, or null if 57 * Returns true if there is data for the currency meta info. 77 * A filter used to select which currency info is returned. 87 * The currency to filter on. If null, accepts any currency. 89 public final String currency; field in CurrencyMetaInfo.CurrencyFilter 92 * The from date to filter on (as milliseconds). Accepts any currency on or after this date. 97 * The to date to filter on (as milliseconds). Accepts any currency o 109 CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) CurrencyFilter() argument 154 onCurrency(String currency) onCurrency() argument 228 withCurrency(String currency) withCurrency() argument [all...] |
/third_party/icu/icu4c/source/samples/numfmt/ |
H A D | main.cpp | 87 // currency formatting ----------------------------------------------------- *** 90 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs. 94 * @param nf The NumberFormat on which to set the currency; takes effect on 95 * currency-formatting NumberFormat instances. 99 * while the currency symbol and number of decimals are set for 100 * the currency. 101 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated. 105 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() argument 110 if(currency in setNumberFormatCurrency_2_4() 131 const char *currency; setNumberFormatCurrency_2_4() member 194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) setNumberFormatCurrency_2_6() argument [all...] |
/third_party/skia/third_party/externals/icu/source/samples/numfmt/ |
H A D | main.cpp | 87 // currency formatting ----------------------------------------------------- *** 90 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs. 94 * @param nf The NumberFormat on which to set the currency; takes effect on 95 * currency-formatting NumberFormat instances. 99 * while the currency symbol and number of decimals are set for 100 * the currency. 101 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated. 105 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() argument 110 if(currency in setNumberFormatCurrency_2_4() 131 const char *currency; setNumberFormatCurrency_2_4() member 194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) setNumberFormatCurrency_2_6() argument [all...] |
/third_party/icu/tools/currency/src/com/ibm/icu/dev/tool/currency/ |
H A D | CurrencyDataEntry.java | 9 package com.ibm.icu.dev.tool.currency; 17 private String currency; field in CurrencyDataEntry 25 private CurrencyDataEntry(String entity, String currency, String alphabeticCode, Integer numericCode, Integer minorUnit, String withdrawalDate, String remark, boolean historic) { in CurrencyDataEntry() argument 27 this.currency = currency; in CurrencyDataEntry() 40 public String currency() { in currency() method in CurrencyDataEntry 41 return currency; in currency() 84 public Builder setCurrency(String currency) { in setCurrency() argument 85 currency_ = currency; in setCurrency()
|
/third_party/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/ |
H A D | ICUCurrencyMetaInfo.java | 21 * ICU's currency meta info data. 83 if (filter.currency != null) { in collect() 126 String currency = null; in collectRegion() 133 currency = currBundle.getString(); in collectRegion() 134 if (filter.currency != null && !filter.currency.equals(currency)) { in collectRegion() 162 collector.collect(region, currency, from, to, i, tender); in collectRegion() 203 public void collect(String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument 204 result.add(new CurrencyInfo(region, currency, fro in collect() 222 collect( String region, String currency, long from, long to, int priority, boolean tender) collect() argument 242 collect( String region, String currency, long from, long to, int priority, boolean tender) collect() argument 280 collect(String region, String currency, long from, long to, int priority, boolean tender) collect() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUCurrencyMetaInfo.java | 22 * ICU's currency meta info data. 85 if (filter.currency != null) { in collect() 128 String currency = null; in collectRegion() 135 currency = currBundle.getString(); in collectRegion() 136 if (filter.currency != null && !filter.currency.equals(currency)) { in collectRegion() 164 collector.collect(region, currency, from, to, i, tender); in collectRegion() 205 public void collect(String region, String currency, long from, long to, int priority, boolean tender) { in collect() argument 206 result.add(new CurrencyInfo(region, currency, fro in collect() 224 collect( String region, String currency, long from, long to, int priority, boolean tender) collect() argument 244 collect( String region, String currency, long from, long to, int priority, boolean tender) collect() argument 282 collect(String region, String currency, long from, long to, int priority, boolean tender) collect() argument [all...] |
/third_party/icu/icu4c/source/common/unicode/ |
H A D | ucurr.h | 17 * \brief C API: Encapsulates information about a currency. 19 * The ucurr API encapsulates information about a currency, as defined by 20 * ISO 4217. A currency is represented by a 3-character string 22 * necessary the proper display of a currency: 43 * a setting to specify currency usage which determines currency digit 50 * a setting to specify currency usage which determines currency digit 67 * Finds a currency code for the given locale. 68 * @param locale the locale for which to retrieve a currency cod [all...] |
/third_party/node/deps/icu-small/source/common/unicode/ |
H A D | ucurr.h | 17 * \brief C API: Encapsulates information about a currency. 19 * The ucurr API encapsulates information about a currency, as defined by 20 * ISO 4217. A currency is represented by a 3-character string 22 * necessary the proper display of a currency: 43 * a setting to specify currency usage which determines currency digit 50 * a setting to specify currency usage which determines currency digit 67 * Finds a currency code for the given locale. 68 * @param locale the locale for which to retrieve a currency cod [all...] |
/third_party/skia/third_party/externals/icu/source/common/unicode/ |
H A D | ucurr.h | 17 * \brief C API: Encapsulates information about a currency. 19 * The ucurr API encapsulates information about a currency, as defined by 20 * ISO 4217. A currency is represented by a 3-character string 22 * necessary the proper display of a currency: 43 * a setting to specify currency usage which determines currency digit 50 * a setting to specify currency usage which determines currency digit 67 * Finds a currency code for the given locale. 68 * @param locale the locale for which to retrieve a currency cod [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | ccurrtst.c | 42 /* All the currency symbols, in UCA order*/ in currTest() 43 static const UChar currency[][2] = in currTest() local 78 /* All the currency symbols, in collation order*/ in currTest() 79 static const UChar currency[][2] = in currTest() 81 { 0x00a4, 0x0000}, /* generic currency*/ in currTest() 110 log_verbose("Testing currency of all locales\n"); in currTest() 118 /*Compare each currency symbol against all the in currTest() 119 currency symbols, including itself*/ in currTest() 120 for (i = 0; i < UPRV_LENGTHOF(currency); i += 1) in currTest() 122 for (j = 0; j < UPRV_LENGTHOF(currency); in currTest() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | number_currencysymbols.cpp | 20 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, UErrorCode& status) in CurrencySymbols() argument 21 : fCurrency(currency), fLocaleName(locale.getName(), status) { in CurrencySymbols() 26 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, in CurrencySymbols() argument 28 : CurrencySymbols(currency, locale, status) { in CurrencySymbols() 43 // Note: currently no override is available for narrow currency symbol in getNarrowCurrencySymbol() 48 // Note: currently no override is available for formal currency symbol in getFormalCurrencySymbol() 53 // Note: currently no override is available for variant currency symbol in getVariantCurrencySymbol() 74 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in loadSymbol() 102 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in getPluralName() 119 if (!properties.currency in resolveCurrency() [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | number_currencysymbols.cpp | 20 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, UErrorCode& status) in CurrencySymbols() argument 21 : fCurrency(currency), fLocaleName(locale.getName(), status) { in CurrencySymbols() 26 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, in CurrencySymbols() argument 28 : CurrencySymbols(currency, locale, status) { in CurrencySymbols() 43 // Note: currently no override is available for narrow currency symbol in getNarrowCurrencySymbol() 48 // Note: currently no override is available for formal currency symbol in getFormalCurrencySymbol() 53 // Note: currently no override is available for variant currency symbol in getVariantCurrencySymbol() 74 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in loadSymbol() 102 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in getPluralName() 119 if (!properties.currency in resolveCurrency() [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | number_currencysymbols.cpp | 20 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, UErrorCode& status) in CurrencySymbols() argument 21 : fCurrency(currency), fLocaleName(locale.getName(), status) { in CurrencySymbols() 26 CurrencySymbols::CurrencySymbols(CurrencyUnit currency, const Locale& locale, in CurrencySymbols() argument 28 : CurrencySymbols(currency, locale, status) { in CurrencySymbols() 43 // Note: currently no override is available for narrow currency symbol in getNarrowCurrencySymbol() 48 // Note: currently no override is available for formal currency symbol in getFormalCurrencySymbol() 53 // Note: currently no override is available for variant currency symbol in getVariantCurrencySymbol() 74 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in loadSymbol() 102 // If given an unknown currency, ucurr_getName returns the input string, which we can't alias safely! in getPluralName() 115 if (!properties.currency in resolveCurrency() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | CurrencyTest.java | 150 errln("did not find locale" + fu_FU + " in currency locales"); in TestRegistration() 154 errln("unable to unregister currency using key1"); in TestRegistration() 157 errln("unable to unregister currency using key2"); in TestRegistration() 174 errln("found locale" + fu_FU + " in currency locales after unregister"); in TestRegistration() 186 errln("found locale" + fu_FU + " in currency locales after unregister"); in TestRegistration() 278 Currency currency = Currency.getInstance(isoCode); in testCurrencyVariants() 280 expectedShort, currency.getName(locale, Currency.SYMBOL_NAME, null)); in testCurrencyVariants() 282 expectedNarrow, currency.getName(locale, Currency.NARROW_SYMBOL_NAME, null)); in testCurrencyVariants() 284 expectedFormal, currency.getName(locale, Currency.FORMAL_SYMBOL_NAME, null)); in testCurrencyVariants() 286 expectedVariant, currency in testCurrencyVariants() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | CurrencyTest.java | 153 errln("did not find locale" + fu_FU + " in currency locales"); in TestRegistration() 157 errln("unable to unregister currency using key1"); in TestRegistration() 160 errln("unable to unregister currency using key2"); in TestRegistration() 177 errln("found locale" + fu_FU + " in currency locales after unregister"); in TestRegistration() 189 errln("found locale" + fu_FU + " in currency locales after unregister"); in TestRegistration() 281 Currency currency = Currency.getInstance(isoCode); in testCurrencyVariants() 283 expectedShort, currency.getName(locale, Currency.SYMBOL_NAME, null)); in testCurrencyVariants() 285 expectedNarrow, currency.getName(locale, Currency.NARROW_SYMBOL_NAME, null)); in testCurrencyVariants() 287 expectedFormal, currency.getName(locale, Currency.FORMAL_SYMBOL_NAME, null)); in testCurrencyVariants() 289 expectedVariant, currency in testCurrencyVariants() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/ |
H A D | CombinedCurrencyMatcher.java | 15 * Matches a currency, either a custom currency or one from the data bundle. The class is called 16 * "combined" to emphasize that the currency string may come from one of multiple sources. 18 * Will match currency spacing either before or after the number depending on whether we are currently in 42 public static CombinedCurrencyMatcher getInstance(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in getInstance() argument 44 return new CombinedCurrencyMatcher(currency, dfs, parseFlags); in getInstance() 47 private CombinedCurrencyMatcher(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in CombinedCurrencyMatcher() argument 48 this.isoCode = currency.getSubtype(); in CombinedCurrencyMatcher() 49 this.currency1 = currency.getSymbol(dfs.getULocale()); in CombinedCurrencyMatcher() 50 this.currency2 = currency in CombinedCurrencyMatcher() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/ |
H A D | CombinedCurrencyMatcher.java | 16 * Matches a currency, either a custom currency or one from the data bundle. The class is called 17 * "combined" to emphasize that the currency string may come from one of multiple sources. 19 * Will match currency spacing either before or after the number depending on whether we are currently in 44 public static CombinedCurrencyMatcher getInstance(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in getInstance() argument 46 return new CombinedCurrencyMatcher(currency, dfs, parseFlags); in getInstance() 49 private CombinedCurrencyMatcher(Currency currency, DecimalFormatSymbols dfs, int parseFlags) { in CombinedCurrencyMatcher() argument 50 this.isoCode = currency.getSubtype(); in CombinedCurrencyMatcher() 51 this.currency1 = currency.getSymbol(dfs.getULocale()); in CombinedCurrencyMatcher() 52 this.currency2 = currency in CombinedCurrencyMatcher() [all...] |