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

1234

/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DCurrencyAmount.java18 * 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) { argument
33 super(number, currency);
37 * Constructs a new object given a double value and a currency.
39 * @param currency the currency
41 public CurrencyAmount(double number, Currency currency) { argument
[all...]
H A DCurrencyServiceShim.java22 * currency. The shim is instantiated by reflection in Currency, all
52 Object registerInstance(Currency currency, ULocale locale) { argument
53 return service.registerObject(currency, locale);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DCurrencyAmount.java17 * 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) { argument
34 super(number, currency);
38 * Constructs a new object given a double value and a currency.
40 * @param currency the currency
43 public CurrencyAmount(double number, Currency currency) { argument
[all...]
H A DCurrencyServiceShim.java21 * currency. The shim is instantiated by reflection in Currency, all
51 Object registerInstance(Currency currency, ULocale locale) { argument
52 return service.registerObject(currency, locale);
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
H A DCurrency.java17 * A class encapsulating a currency, as defined by ISO 4217. A
42 public final java.util.Currency currency; field in class:Currency
49 this.currency = delegate;
54 * currency, such as "$" for USD.
61 * currency, such as "US Dollar" for USD.
68 * currency, such as "US dollar" for USD in "1 US dollar",
75 * Returns a currency object for the default currency in the given
78 * @return the currency object for this locale
86 * Returns a currency objec
[all...]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A DCurrencyNameTest.java46 Currency currency = Currency.getInstance(l);
47 if (currency != null) {
48 currencies.add(currency);
61 for (Currency currency : AVAILABLE_CURRENCIES) {
62 String currencyCode = currency.getCurrencyCode();
70 String curSymbol = currency.getSymbol(loc);
76 logln("INFO: JDK has currency symbol " + curSymbol + " for locale " +
94 curSymbol = currency.getSymbol(locIcu);
111 for (Currency currency : AVAILABLE_CURRENCIES) {
112 String currencyCode = currency
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DCurrencyMetaInfo.java24 * 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.
86 * The currency to filter on. If null, accepts any currency.
88 public final String currency; field in class:CurrencyMetaInfo.CurrencyFilter
91 * The from date to filter on (as milliseconds). Accepts any currency on or after this date.
96 * The to date to filter on (as milliseconds). Accepts any currency o
108 CurrencyFilter(String region, String currency, long from, long to, boolean tenderOnly) argument
153 onCurrency(String currency) argument
227 withCurrency(String currency) argument
[all...]
H A DCurrencyFormat.java68 CurrencyAmount currency = (CurrencyAmount) obj;
70 fmt.setCurrency(currency.getCurrency());
71 return fmt.format(currency.getNumber(), toAppendTo, pos);
H A DDecimalFormatSymbols.java698 * Returns the string denoting the local currency.
699 * @return the local currency String.
706 * Sets the string denoting the local currency.
707 * @param currency the local currency String.
709 public void setCurrencySymbol(String currency) { argument
710 currencySymbol = currency;
714 * Returns the international string denoting the local currency.
715 * @return the international string denoting the local currency
722 * Sets the international string denoting the local currency
725 setInternationalCurrencySymbol(String currency) argument
753 setCurrency(Currency currency) argument
1822 private transient Currency currency; field in class:DecimalFormatSymbols
[all...]
/external/icu/icu4c/source/common/unicode/
H A Ducurr.h17 * \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
66 * Finds a currency code for the given locale.
67 * @param locale the locale for which to retrieve a currency cod
[all...]
/external/icu/icu4c/source/samples/numfmt/
H A Dmain.cpp87 // 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) { argument
110 if(currency
131 const char *currency; member in struct:__anon7402
194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DCurrencyMetaInfo.java23 * 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 class: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) argument
163 onCurrency(String currency) argument
244 withCurrency(String currency) argument
[all...]
H A DCurrencyFormat.java67 CurrencyAmount currency = (CurrencyAmount) obj;
69 fmt.setCurrency(currency.getCurrency());
70 return fmt.format(currency.getNumber(), toAppendTo, pos);
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DICUCurrencyMetaInfo.java22 * ICU's currency meta info data.
85 if (filter.currency != null) {
128 String currency = null;
135 currency = currBundle.getString();
136 if (filter.currency != null && !filter.currency.equals(currency)) {
164 collector.collect(region, currency, from, to, i, tender);
205 public void collect(String region, String currency, long from, long to, int priority, boolean tender) { argument
206 result.add(new CurrencyInfo(region, currency, fro
224 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
244 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
282 collect(String region, String currency, long from, long to, int priority, boolean tender) argument
[all...]
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/
H A DICUCurrencyMetaInfo.java21 * ICU's currency meta info data.
83 if (filter.currency != null) {
126 String currency = null;
133 currency = currBundle.getString();
134 if (filter.currency != null && !filter.currency.equals(currency)) {
162 collector.collect(region, currency, from, to, i, tender);
203 public void collect(String region, String currency, long from, long to, int priority, boolean tender) { argument
204 result.add(new CurrencyInfo(region, currency, fro
222 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
242 collect( String region, String currency, long from, long to, int priority, boolean tender) argument
280 collect(String region, String currency, long from, long to, int priority, boolean tender) argument
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dcurrcoll.cpp46 // All the currency symbols, in collation order
47 static const UChar currency[][2] = local
93 // Compare each currency symbol against all the
94 // currency symbols, including itself
95 for (i = 0; i < UPRV_LENGTHOF(currency); i += 1)
97 for (j = 0; j < UPRV_LENGTHOF(currency); j += 1)
99 UnicodeString source(currency[i], 1);
100 UnicodeString target(currency[j], 1);
H A Dwinnmtst.cpp133 static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeString &appendTo, const wchar_t *fmt, ...) argument
187 if (currency) {
230 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestLog *log) argument
239 getWindowsFormat(lcid, currency, wdBuffer, L"%.16f", d);
241 getWindowsFormat(lcid, currency, w3Buffer, L"%I32d", i32);
243 getWindowsFormat(lcid, currency, w6Buffer, L"%I64d", i64);
/external/icu/icu4c/source/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 < UPRV_LENGTHOF(currency); i += 1)
122 for (j = 0; j < UPRV_LENGTHOF(currency);
[all...]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
H A DDecimalFormatSymbols.java391 * Return the string denoting the local currency.
392 * @return the local currency String.
400 * Set the string denoting the local currency.
401 * @param currency the local currency String.
404 public void setCurrencySymbol(String currency) { argument
405 dfs.setCurrencySymbol(currency);
409 * Returns the currency symbol, for JDK 1.4 compatibility only.
411 * @return the currency used, or null
419 * Sets the currency
435 setCurrency(Currency currency) argument
453 setInternationalCurrencySymbol(String currency) argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dwinnmfmt.cpp45 CURRENCYFMTW currency; member in union:FormatInfo
140 Win32NumberFormat::Win32NumberFormat(const Locale &locale, UBool currency, UErrorCode &status) argument
141 : NumberFormat(), fCurrency(currency), fFormatInfo(NULL), fFractionDigitsSet(FALSE)
158 getCurrencyFormat(&fFormatInfo->currency, fLCID);
178 freeCurrencyFormat(&fFormatInfo->currency);
197 freeCurrencyFormat(&fFormatInfo->currency);
198 getCurrencyFormat(&fFormatInfo->currency, fLCID);
304 formatInfo.currency.NumDigits = (UINT) numDigits;
308 formatInfo.currency.Grouping = 0;
311 result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffe
[all...]
H A Ddcfmtsym.cpp17 * 08/26/97 aliu Added currency/intl currency symbol support.
74 NULL, /* currency symbol - Wait until we know the currency before loading from CLDR */
75 NULL, /* intl currency symbol - Wait until we know the currency before loading from CLDR */
430 // Obtain currency data from the currency API. This is strictly
432 // for currency data anymore.
445 //load the currency dat
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
H A DCollationCurrencyTest.java30 // All the currency symbols, in collation order
31 char[][] currency = {
68 // Compare each currency symbol against all the
69 // currency symbols, including itself
73 for (i = 0; i < currency.length; i += 1) {
74 for (j = 0; j < currency.length; j += 1) {
75 source = new String(currency[i]);
76 target = new String(currency[j]);
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
H A DDecimalFormatSymbolsICU.java132 public void setCurrency(Currency currency) { argument
134 if (currency != null) {
135 icuCurrency = com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode());
141 public void setCurrencySymbol(String currency) { argument
142 fIcuDecfs.setCurrencySymbol(currency);
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationCurrencyTest.java29 // All the currency symbols, in collation order
30 char[][] currency = {
67 // Compare each currency symbol against all the
68 // currency symbols, including itself
72 for (i = 0; i < currency.length; i += 1) {
73 for (j = 0; j < currency.length; j += 1) {
74 source = new String(currency[i]);
75 target = new String(currency[j]);
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/
H A DCurrencyDemo.java25 * Demonstration code to illustrate how to obtain ICU 2.6-like currency
35 static NumberFormat getCurrencyFormat(Currency currency, argument
41 result.setCurrency(currency);
47 HackCurrencyInfo hack = (HackCurrencyInfo)(hackData.get(currency.getCurrencyCode()));
77 * currency format with the "hacked" currency format.

Completed in 528 milliseconds

1234