/external/libxml2/test/schemas/ |
empty_0.xml | 1 <internationalPrice currency="EUR" value="423.46"/>
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
CurrencyAmount.java | 18 * An amount of currency, consisting of a Number and a Currency. 22 * @see Currency 28 * Constructs a new object given a number and a currency. 30 * @param currency the currency 32 public CurrencyAmount(Number number, Currency currency) { 33 super(number, currency); 37 * Constructs a new object given a double value and a currency [all...] |
CurrencyServiceShim.java | 22 * currency. The shim is instantiated by reflection in Currency, all 26 final class CurrencyServiceShim extends Currency.ServiceShim { 42 Currency createInstance(ULocale loc) { 46 return Currency.createCurrency(loc); 48 Currency curr = (Currency)service.get(loc); 52 Object registerInstance(Currency currency, ULocale locale) { 53 return service.registerObject(currency, locale) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
CurrencyAmount.java | 17 * An amount of currency, consisting of a Number and a Currency. 21 * @see Currency 28 * Constructs a new object given a number and a currency. 30 * @param currency the currency 33 public CurrencyAmount(Number number, Currency currency) { 34 super(number, currency); 38 * Constructs a new object given a double value and a currency [all...] |
CurrencyServiceShim.java | 21 * currency. The shim is instantiated by reflection in Currency, all 25 final class CurrencyServiceShim extends Currency.ServiceShim { 41 Currency createInstance(ULocale loc) { 45 return Currency.createCurrency(loc); 47 Currency curr = (Currency)service.get(loc); 51 Object registerInstance(Currency currency, ULocale locale) { 52 return service.registerObject(currency, locale) [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
CurrencyTest.java | 19 import java.util.Currency; 26 // Regression test to ensure that Currency.getSymbol(Locale) returns the 27 // currency code if ICU doesn't have a localization of the symbol. The 28 // harmony Currency tests don't test this, and their DecimalFormat tests 33 // This assumes that AED never becomes a currency important enough to 35 assertEquals("AED", Currency.getInstance("AED").getSymbol(Locale.CANADA)); 39 Currency currency = Currency.getInstance("DEM"); local 40 assertEquals("DEM", currency.getSymbol(Locale.FRANCE)) 51 Currency currency = Currency.getInstance("DEM"); local 83 Currency currency = Currency.getInstance("CHF"); local 91 Currency currency = Currency.getInstance("DEM"); local 98 Currency currency = Currency.getInstance("CHF"); local 112 Currency currency = Currency.getInstance("DEM"); local 142 Currency currency = Currency.getInstance(Locale.getDefault()); local [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
EnumBiMapTest.java | 54 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } 57 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 60 public BiMap<Country, Currency> create(Object... entries) { 61 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); 63 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; 70 public SampleElements<Entry<Country, Currency>> samples() { 71 return new SampleElements<Entry<Country, Currency>>( 72 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR) [all...] |
EnumHashBiMapTest.java | 47 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } 111 EnumHashBiMap<Currency, String> bimap = 112 EnumHashBiMap.create(Currency.class); 116 bimap.put(Currency.DOLLAR, "dollar"); 117 assertEquals("dollar", bimap.get(Currency.DOLLAR)); 118 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); 123 Map<Currency, String> map = ImmutableMap.of( 124 Currency.DOLLAR, "dollar", 125 Currency.PESO, "peso", 126 Currency.FRANC, "franc") [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
EnumBiMapTest.java | 45 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } 48 public static final class EnumBiMapGenerator implements TestBiMapGenerator<Country, Currency> { 51 public BiMap<Country, Currency> create(Object... entries) { 52 BiMap<Country, Currency> result = EnumBiMap.create(Country.class, Currency.class); 54 Entry<Country, Currency> entry = (Entry<Country, Currency>) object; 61 public SampleElements<Entry<Country, Currency>> samples() { 62 return new SampleElements<Entry<Country, Currency>>( 63 Helpers.mapEntry(Country.CANADA, Currency.DOLLAR) [all...] |
EnumHashBiMapTest.java | 38 private enum Currency { DOLLAR, FRANC, PESO, POUND, YEN } 86 EnumHashBiMap<Currency, String> bimap = 87 EnumHashBiMap.create(Currency.class); 91 bimap.put(Currency.DOLLAR, "dollar"); 92 assertEquals("dollar", bimap.get(Currency.DOLLAR)); 93 assertEquals(Currency.DOLLAR, bimap.inverse().get("dollar")); 98 Map<Currency, String> map = ImmutableMap.of( 99 Currency.DOLLAR, "dollar", 100 Currency.PESO, "peso", 101 Currency.FRANC, "franc") [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
CurrencyRounder.java | 6 import android.icu.util.Currency; 9 * A class that defines a rounding strategy parameterized by a currency to be used when formatting numbers in 25 * Associates a currency with this rounding strategy. 28 * <strong>Calling this method is <em>not required</em></strong>, because the currency specified in unit() or via a 29 * CurrencyAmount passed into format(Measure) is automatically applied to currency rounding strategies. However, 33 * This method also enables numbers to be formatted using currency rounding rules without explicitly using a 34 * currency format. 36 * @param currency 37 * The currency to associate with this rounding strategy. 42 public Rounder withCurrency(Currency currency) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
CurrencyRounder.java | 5 import com.ibm.icu.util.Currency; 8 * A class that defines a rounding strategy parameterized by a currency to be used when formatting numbers in 24 * Associates a currency with this rounding strategy. 27 * <strong>Calling this method is <em>not required</em></strong>, because the currency specified in unit() or via a 28 * CurrencyAmount passed into format(Measure) is automatically applied to currency rounding strategies. However, 32 * This method also enables numbers to be formatted using currency rounding rules without explicitly using a 33 * currency format. 35 * @param currency 36 * The currency to associate with this rounding strategy. 42 public Rounder withCurrency(Currency currency) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
CustomSymbolCurrency.java | 7 import android.icu.util.Currency; 13 public class CustomSymbolCurrency extends Currency { 20 public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { 21 if (currency == null) { 22 currency = symbols.getCurrency(); 26 if (currency == null) { 29 if (!currency.equals(symbols.getCurrency())) { 30 return currency; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
CustomSymbolCurrency.java | 6 import com.ibm.icu.util.Currency; 9 public class CustomSymbolCurrency extends Currency { 16 public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) { 17 if (currency == null) { 18 currency = symbols.getCurrency(); 22 if (currency == null) { 25 if (!currency.equals(symbols.getCurrency())) { 26 return currency; [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Currency.java | 35 // BEGIN Android-changed: Removed docs about superseding runtime currency data. 38 * Represents a currency. Currencies are identified by their ISO 4217 currency 43 * <code>Currency</code> instance for any given currency. Therefore, there's 44 * no public constructor. You obtain a <code>Currency</code> instance using 49 // END Android-changed: Removed docs about superseding runtime currency data. 50 public final class Currency implements Serializable { 55 * ISO 4217 currency code for this currency 166 Currency currency = getInstance(icuCurrency.getCurrencyCode()); local [all...] |
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
CurrencyNameTest.java | 13 import java.util.Currency; 27 private static final Set<Currency> AVAILABLE_CURRENCIES; 32 Set<Currency> currencies = null; 34 mGetDisplayName = Currency.class.getMethod("getDisplayName", new Class[] {Locale.class}); 35 Method mGetAvailableCurrencies = Currency.class.getMethod("getAvailableCurrencies", (Class[]) null); 36 currencies = (Set<Currency>)mGetAvailableCurrencies.invoke(null, (Object[]) null); 43 currencies = new HashSet<Currency>(); 49 Currency currency = Currency.getInstance(l) external variable declarations 51 currencies.add(currency); external variable declarations [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CurrencyTest.java | 23 import java.util.Currency; 45 * java.util.Currency#getInstance(java.lang.String) 52 * java.util.Currency#getInstance(java.util.Locale) 59 Currency c0 = Currency.getInstance("CAD"); 60 Currency c1 = Currency.getInstance(new Locale("en", "CA")); 62 "Currency.getInstance(new Locale(\"en\",\"CA\")) isn't equal to Currency.getInstance(\"CAD\")", 64 Currency c2 = Currency.getInstance(new Locale("fr", "CA")) [all...] |
/external/icu/icu4c/source/common/unicode/ |
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: 38 * Currency Usage used for Decimal Format 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 [all...] |
/external/icu/icu4c/source/samples/numfmt/ |
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) { 110 if(currency==NULL || strlen(currency)!=3) 131 const char *currency; member in struct:__anon21514 [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CurrencyMetaInfo.java | 19 import android.icu.util.Currency.CurrencyUsage; 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. 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 [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
Currency.java | 17 * A class encapsulating a currency, as defined by ISO 4217. A 18 * <tt>Currency</tt> object can be created given a <tt>Locale</tt> or 19 * given an ISO 4217 code. Once created, the <tt>Currency</tt> object 31 * <tt>java.util.Currency</tt> but it has a completely independent 36 public class Currency implements Serializable { 42 public final java.util.Currency currency; field in class:Currency 48 public Currency(java.util.Currency delegate) { 49 this.currency = delegate [all...] |
/external/icu/icu4j/main/classes/currdata/ |
manifest.stub | 2 Specification-Title: International Components for Unicode for Java (currency data) 5 Implementation-Title: International Components for Unicode for Java (currency data) 10 Bundle-Name: ICU4J currency data 11 Bundle-Description: International Components for Unicode for Java (currency data)
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
CurrencyTest.java | 39 import android.icu.util.Currency; 47 * @summary General test of Currency 57 Currency usd = Currency.getInstance("USD"); 59 Currency jpy = Currency.getInstance("JPY"); 74 Currency nullCurrency = Currency.getInstance((String)null); 82 Currency bogusCurrency = Currency.getInstance("BOGUS") 211 Currency currency = Currency.getInstance(ULocale.CHINA); local 557 Currency currency = Currency.getInstance(locale); local 659 Currency currency = icuSymbols.getCurrency(); local 858 Currency currency = Currency.getInstance(ULocale.CHINA); local 865 Currency currency = Currency.getInstance(ULocale.JAPAN); local 872 Currency currency = Currency.getInstance(ULocale.JAPAN); local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
CurrencyTest.java | 38 import com.ibm.icu.util.Currency; 45 * @summary General test of Currency 54 Currency usd = Currency.getInstance("USD"); 56 Currency jpy = Currency.getInstance("JPY"); 71 Currency nullCurrency = Currency.getInstance((String)null); 79 Currency bogusCurrency = Currency.getInstance("BOGUS") 208 Currency currency = Currency.getInstance(ULocale.CHINA); local 554 Currency currency = Currency.getInstance(locale); local 656 Currency currency = icuSymbols.getCurrency(); local 855 Currency currency = Currency.getInstance(ULocale.CHINA); local 862 Currency currency = Currency.getInstance(ULocale.JAPAN); local 869 Currency currency = Currency.getInstance(ULocale.JAPAN); local [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
currpinf.h | 16 * \brief C++ API: Currency Plural Information used by Decimal Format 31 * DecimalFormat to format currency plural, 39 * Following are the information needed for currency plural format and parse: 42 * currency plural pattern of the locale. 113 * Gets plural rules of this locale, used for currency plural format 121 * Given a plural count, gets currency plural pattern of this locale, 122 * used for currency plural format 124 * @param pluralCount currency plural count 126 * @return a currency plural pattern based on plural count 155 * Set currency plural pattern [all...] |