Searched defs:currency (Results 1 - 25 of 54) sorted by relevance

123

/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);
H A DCurrency.java42 * A class encapsulating a currency, as defined by ISO 4217. A
62 private static final boolean DEBUG = ICUDebug.enabled("currency");
64 // Cache to save currency name trie
70 * currency, such as "$" for USD.
76 * currency, such as "US Dollar" for USD.
82 * currency, such as "US dollar" for USD in "1 US dollar",
99 * a setting to specify currency usage which determines currency digit and rounding
105 * a setting to specify currency usage which determines currency digi
322 registerInstance(Currency currency, ULocale locale) argument
[all...]
H A DGlobalizationPreferences.java36 * <li>A currency</li>
59 * The codes used to reference territory, currency, etc. are as defined elsewhere
156 * for the appropriate territory, currency, timezone, etc. The
335 * currency and timezone values will be set from this. The user
366 * Sets the currency code. If this has not been set, uses default for territory.
368 * @param currency Valid ISO 4217 currency code.
372 public GlobalizationPreferences setCurrency(Currency currency) { argument
376 this.currency = currency; // immutabl
1130 private Currency currency; field in class:GlobalizationPreferences
[all...]
/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/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/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/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.
/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/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/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...]
H A DValidIdentifiers.java32 currency, enum constant in enum:ValidIdentifiers.Datatype
/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...]
/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 Dunum.cpp298 UChar* currency,
316 CurrencyAmount *tempCurrAmnt = new CurrencyAmount(number, currency, *status);
436 UChar* currency,
439 currency[0] = 0;
460 u_strcpy(currency, currAmt->getISOCurrency());
296 unum_formatDoubleCurrency(const UNumberFormat* fmt, double number, UChar* currency, UChar* result, int32_t resultLength, UFieldPosition* pos, UErrorCode* status) argument
432 unum_parseDoubleCurrency(const UNumberFormat* fmt, const UChar* text, int32_t textLength, int32_t* parsePos, UChar* currency, UErrorCode* status) argument
/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/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DValidIdentifiers.java30 currency, enum constant in enum:ValidIdentifiers.Datatype
/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...]
/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/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);
H A DNumberFormatICU.java169 public void setCurrency(Currency currency) { argument
170 if (currency == null) {
173 fIcuNfmt.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
H A DDecimalFormatICU.java251 public void setCurrency(Currency currency) { argument
252 if (currency == null) {
255 fIcuDecfmt.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
267 Currency currency = newSymbols.getCurrency();
268 if (currency == null) {
271 icuDecfs.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()));
/external/v8/src/
H A Di18n.cc253 icu::UnicodeString currency; local
255 if (style == UNICODE_STRING_SIMPLE("currency")) {
257 ExtractStringSetting(isolate, options, "currency", &currency);
290 currency.getTerminatedBuffer(), &status_digits);
321 if (!currency.isEmpty()) {
322 number_format->setCurrency(currency.getBuffer(), status);
383 // Set resolved currency code in options.currency if not empty.
384 icu::UnicodeString currency(number_forma
[all...]

Completed in 797 milliseconds

123