/external/icu/android_icu4j/src/main/java/android/icu/util/ |
Currency.java | 43 * A class encapsulating a currency, as defined by ISO 4217. A 44 * <tt>Currency</tt> object can be created given a <tt>Locale</tt> or 45 * given an ISO 4217 code. Once created, the <tt>Currency</tt> object 57 * <tt>java.util.Currency</tt> but it has a completely independent 61 public class Currency extends MeasureUnit { 63 private static final boolean DEBUG = ICUDebug.enabled("currency"); 65 // Cache to save currency name trie 71 * currency, such as "$" for USD. 77 * currency, such as "US Dollar" for USD. 83 * currency, such as "US dollar" for USD in "1 US dollar" 174 String currency = locale.getKeywordValue("currency"); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
Currency.java | 42 * A class encapsulating a currency, as defined by ISO 4217. A 43 * <tt>Currency</tt> object can be created given a <tt>Locale</tt> or 44 * given an ISO 4217 code. Once created, the <tt>Currency</tt> object 56 * <tt>java.util.Currency</tt> but it has a completely independent 61 public class Currency extends MeasureUnit { 63 private static final boolean DEBUG = ICUDebug.enabled("currency"); 65 // Cache to save currency name trie 71 * currency, such as "$" for USD. 78 * currency, such as "US Dollar" for USD. 85 * currency, such as "US dollar" for USD in "1 US dollar" 182 String currency = locale.getKeywordValue("currency"); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DecimalFormatSymbolsTest.java | 29 import java.util.Currency; 118 Currency currency = Currency.getInstance("USD"); local 119 assertEquals("Returned incorrect currency", 120 dfsUS.getCurrency(), currency); 122 Currency currK = Currency.getInstance("KRW"); 123 Currency currX = Currency.getInstance("XXX") 295 Currency currency = Currency.getInstance("JPY"); local 371 Currency currency = Currency.getInstance("JPY"); local 458 Currency currency = symbols.getCurrency(); local [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
DecimalFormatSymbolsICU.java | 11 import java.util.Currency; 53 public Currency getCurrency() { 54 com.ibm.icu.util.Currency icuCurrency = fIcuDecfs.getCurrency(); 58 return Currency.getInstance(icuCurrency.getCurrencyCode()); 132 public void setCurrency(Currency currency) { 133 com.ibm.icu.util.Currency icuCurrency = null; 134 if (currency != null) { 135 icuCurrency = com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode()) [all...] |
/external/icu/icu4c/source/test/cintltst/ |
ccurrtst.h | 18 * Collation currency tests. 32 /* Perform Collation Currency Test */
|
ccurrtst.c | 42 /* All the currency symbols, in UCA order*/ 43 static const UChar currency[][2] = local 45 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/ 57 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/ 58 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/ 59 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/ 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") [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CurrencyMetaInfo.java | 18 import com.ibm.icu.util.Currency.CurrencyUsage; 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 class:CurrencyMetaInfo.CurrencyFilter 95 * The from date to filter on (as milliseconds). Accepts any currency on or after this date [all...] |
CurrencyPluralInfo.java | 24 * DecimalFormat to format currency plural, 32 * Following are the information needed for currency plural format and parse: 35 * currency plural pattern of the locale. 103 * Gets plural rules of this locale, used for currency plural format 113 * Given a plural count, gets currency plural pattern of this locale, 114 * used for currency plural format 116 * @param pluralCount currency plural count 117 * @return a currency plural pattern based on plural count 162 * Set currency plural patterns. These are initially set in the constructor based on the 169 * @param pluralCount the plural count for which the currency pattern wil [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUCurrencyMetaInfo.java | 19 import android.icu.util.Currency.CurrencyUsage; 22 * ICU's currency meta info data. 85 if (filter.currency != null) { 86 needed |= Currency; 128 String currency = null; local 133 if ((needed & Currency) != 0) { 135 currency = currBundle.getString(); 136 if (filter.currency != null && !filter.currency.equals(currency)) { [all...] |
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/ |
ICUCurrencyMetaInfo.java | 18 import com.ibm.icu.util.Currency.CurrencyUsage; 21 * ICU's currency meta info data. 83 if (filter.currency != null) { 84 needed |= Currency; 126 String currency = null; local 131 if ((needed & Currency) != 0) { 133 currency = currBundle.getString(); 134 if (filter.currency != null && !filter.currency.equals(currency)) { [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
NumberFormatTest.java | 26 import java.util.Currency; 154 // When switching currency after having initialised a DecimalFormat instance to a currency, 158 nf.setCurrency(Currency.getInstance("EUR")); 166 nf.setCurrency(Currency.getInstance("SGD")); 169 nf.setCurrency(Currency.getInstance("SGD")); 172 nf.setCurrency(Currency.getInstance("USD")); 175 nf.setCurrency(Currency.getInstance("SGD")); 179 // Test to ensure explicitly setting a currency symbol will overwrite the defaults. 187 // Setting the currency again should reset the symbols [all...] |
/external/icu/icu4j/main/classes/localespi/src/META-INF/services/ |
java.util.spi.CurrencyNameProvider | 5 # icu4j currency name
|
/external/libxml2/test/schemas/ |
empty_1.xsd | 5 <xsd:attribute name="currency" type="xsd:string"/>
|
empty_0.xsd | 7 <xsd:attribute name="currency" type="xsd:string"/>
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/ |
CurrencyDemo.java | 22 import com.ibm.icu.util.Currency; 25 * Demonstration code to illustrate how to obtain ICU 2.6-like currency 35 static NumberFormat getCurrencyFormat(Currency currency, 41 result.setCurrency(currency); 47 HackCurrencyInfo hack = (HackCurrencyInfo)(hackData.get(currency.getCurrencyCode())); 77 * currency format with the "hacked" currency format. 93 NumberFormat nf26 = getCurrencyFormat(Currency.getInstance(testCurrencies[j]), testLocales[i], true); 98 NumberFormat nf24 = getCurrencyFormat(Currency.getInstance(testCurrencies[j]), testLocales[i], false) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
CompactDecimalFormatTest.java | 39 import android.icu.util.Currency; 174 {new CurrencyAmount(1f, Currency.getInstance("CNY")), "?1"}, 175 {new CurrencyAmount(12f, Currency.getInstance("CNY")), "?12"}, 176 {new CurrencyAmount(123f, Currency.getInstance("CNY")), "?120"}, 177 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "?1200"}, 178 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "?1.2?"}, 179 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "?12?"}, 180 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "?120?"}, 181 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "?1200?"}, 182 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "?1.2?"} [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
CompactDecimalFormatTest.java | 38 import com.ibm.icu.util.Currency; 171 {new CurrencyAmount(1f, Currency.getInstance("CNY")), "?1"}, 172 {new CurrencyAmount(12f, Currency.getInstance("CNY")), "?12"}, 173 {new CurrencyAmount(123f, Currency.getInstance("CNY")), "?120"}, 174 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "?1200"}, 175 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "?1.2?"}, 176 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "?12?"}, 177 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "?120?"}, 178 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "?1200?"}, 179 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "?1.2?"} [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CurrencyPluralInfo.java | 25 * DecimalFormat to format currency plural, 33 * Following are the information needed for currency plural format and parse: 36 * currency plural pattern of the locale. 96 * Gets plural rules of this locale, used for currency plural format 105 * Given a plural count, gets currency plural pattern of this locale, 106 * used for currency plural format 108 * @param pluralCount currency plural count 109 * @return a currency plural pattern based on plural count 150 * Set currency plural patterns. These are initially set in the constructor based on the 157 * @param pluralCount the plural count for which the currency pattern wil [all...] |
/external/icu/icu4c/source/i18n/ |
affixpatternparser.h | 32 * A representation of the various forms of a particular currency according 35 * Includes the symbol, ISO code form, and long form(s) of the currency name 68 * @param locale the locale for the currency forms. 70 * @param currency the null terminated, 3 character ISO code of the 71 * currency. If NULL, resets this instance as if it were just created. 77 const UChar *currency, UErrorCode &status); 81 * currency. For instance never initialized with set() 87 * Adjusts the precision used for a particular currency. 88 * @param currency the null terminated, 3 character ISO code of the 89 * currency [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
curramt.h | 25 * \brief C++ API: Currency Amount Object. 32 * A currency together with a numeric amount, such as 200 USD. 41 * ISO currency code. 43 * @param isoCode the 3-letter ISO 4217 currency code; must not be 54 * ISO currency code. 55 * @param amount the amount of the given currency 56 * @param isoCode the 3-letter ISO 4217 currency code; must not be 109 * Return the currency unit object of this object. 115 * Return the ISO currency code of this object.
|
currunit.h | 24 * \brief C++ API: Currency Unit Information. 30 * A unit of currency, such as USD (U.S. dollars) or JPY (Japanese 40 * Default constructor. Initializes currency code to "XXX" (no currency). 46 * Construct an object with the given ISO currency code. 47 * @param isoCode the 3-letter ISO 4217 currency code; must not be 67 * @param ec Set to a failing value if the MeasureUnit is not a currency. 111 * Return the ISO currency code of this object.
|
/external/icu/icu4c/source/test/intltest/ |
currcoll.cpp | 46 // All the currency symbols, in collation order 47 static const UChar currency[][2] = local 49 { 0x00A4, 0x0000}, /*00A4; L; [14 36, 03, 03] # [082B.0020.0002] # CURRENCY SIGN*/ 61 { 0x0E3F, 0x0000}, /*0E3F; L; [14 44, 03, 03] # [0832.0020.0002] # THAI CURRENCY SYMBOL BAHT*/ 62 { 0x17DB, 0x0000}, /*17DB; L; [14 46, 03, 03] # [0833.0020.0002] # KHMER CURRENCY SYMBOL RIEL*/ 63 { 0x20A0, 0x0000}, /*20A0; L; [14 48, 03, 03] # [0834.0020.0002] # EURO-CURRENCY SIGN*/ 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 [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
CurrencySpacingEnabledModifier.java | 10 /** Identical to {@link ConstantMultiFieldModifier}, but supports currency spacing. 14 // These are the default currency spacing UnicodeSets in CLDR. 36 // Check for currency spacing. Do not build the UnicodeSets unless there is 37 // a currency code point at a boundary. 38 if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { 53 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { 73 // Currency spacing logic 77 // TODO: Should we use the CURRENCY field here? 82 // TODO: Should we use the CURRENCY field here? 114 if (affixField != NumberFormat.Field.CURRENCY) { [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
CurrencySpacingEnabledModifier.java | 9 /** Identical to {@link ConstantMultiFieldModifier}, but supports currency spacing. */ 12 // These are the default currency spacing UnicodeSets in CLDR. 34 // Check for currency spacing. Do not build the UnicodeSets unless there is 35 // a currency code point at a boundary. 36 if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { 51 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { 71 // Currency spacing logic 75 // TODO: Should we use the CURRENCY field here? 80 // TODO: Should we use the CURRENCY field here? 112 if (affixField != NumberFormat.Field.CURRENCY) { [all...] |
/libcore/ojluni/src/main/java/java/text/ |
DecimalFormatSymbols.java | 47 import java.util.Currency; 394 * Returns the currency symbol for the currency of these 397 * @return the currency symbol 406 * Sets the currency symbol for the currency of these 409 * @param currency the currency symbol 412 public void setCurrencySymbol(String currency) 414 currencySymbol = currency; 1107 private transient Currency currency; field in class:DecimalFormatSymbols [all...] |