/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
NumberFormatProviderICU.java | 24 private final static int CURRENCY = 2; 29 return getInstance(CURRENCY, locale); 62 case CURRENCY:
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
AffixUtils.java | 92 /** Represents a single currency symbol '¤'. */ 95 /** Represents a double currency symbol '¤¤'. */ 98 /** Represents a triple currency symbol '¤¤¤'. */ 101 /** Represents a quadruple currency symbol '¤¤¤¤'. */ 104 /** Represents a quintuple currency symbol '¤¤¤¤¤'. */ 107 /** Represents a sequence of six or more currency symbols. */ 282 return NumberFormat.Field.CURRENCY; 284 return NumberFormat.Field.CURRENCY; 286 return NumberFormat.Field.CURRENCY; 288 return NumberFormat.Field.CURRENCY; [all...] |
CurrencySpacingEnabledModifier.java | 10 /** Identical to {@link ConstantMultiFieldModifier}, but supports currency spacing. 14 // These are the default currency spacing UnicodeSets in CLDR. 40 // Check for currency spacing. Do not build the UnicodeSets unless there is 41 // a currency code point at a boundary. 42 if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { 57 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { 77 // Currency spacing logic 82 // TODO: Should we use the CURRENCY field here? 88 // TODO: Should we use the CURRENCY field here? 129 if (affixField != NumberFormat.Field.CURRENCY) { [all...] |
CompactData.java | 29 DECIMAL, CURRENCY
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
AffixUtils.java | 90 /** Represents a single currency symbol '¤'. */ 93 /** Represents a double currency symbol '¤¤'. */ 96 /** Represents a triple currency symbol '¤¤¤'. */ 99 /** Represents a quadruple currency symbol '¤¤¤¤'. */ 102 /** Represents a quintuple currency symbol '¤¤¤¤¤'. */ 105 /** Represents a sequence of six or more currency symbols. */ 274 return NumberFormat.Field.CURRENCY; 276 return NumberFormat.Field.CURRENCY; 278 return NumberFormat.Field.CURRENCY; 280 return NumberFormat.Field.CURRENCY; [all...] |
CurrencySpacingEnabledModifier.java | 9 /** Identical to {@link ConstantMultiFieldModifier}, but supports currency spacing. */ 12 // These are the default currency spacing UnicodeSets in CLDR. 38 // Check for currency spacing. Do not build the UnicodeSets unless there is 39 // a currency code point at a boundary. 40 if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { 55 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { 75 // Currency spacing logic 80 // TODO: Should we use the CURRENCY field here? 86 // TODO: Should we use the CURRENCY field here? 127 if (affixField != NumberFormat.Field.CURRENCY) { [all...] |
CompactData.java | 24 DECIMAL, CURRENCY
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
ModifierTest.java | 41 suffix.append("b", NumberFormat.Field.CURRENCY); 100 prefix.append("USD", NumberFormat.Field.CURRENCY); 104 // Test the default currency spacing rules 112 sb2.insert(0, "USD", NumberFormat.Field.CURRENCY); 121 suffix.append("XYZ", NumberFormat.Field.CURRENCY); 128 // This test checks for stability of the currency spacing patterns in CLDR. 129 // For efficiency, ICU caches the most common currency spacing UnicodeSets.
|
NumberStringBuilderTest.java | 163 sb.append(str, NumberFormat.Field.CURRENCY); 169 assertEquals(NumberFormat.Field.CURRENCY, fields[i + str.length()]); 170 assertEquals(NumberFormat.Field.CURRENCY, sb.fieldAt(i + str.length())); 175 FieldPosition fp = new FieldPosition(NumberFormat.Field.CURRENCY); 198 } else if (fields[i] == NumberFormat.Field.CURRENCY) {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
ModifierTest.java | 38 suffix.append("b", NumberFormat.Field.CURRENCY); 97 prefix.append("USD", NumberFormat.Field.CURRENCY); 101 // Test the default currency spacing rules 109 sb2.insert(0, "USD", NumberFormat.Field.CURRENCY); 118 suffix.append("XYZ", NumberFormat.Field.CURRENCY); 125 // This test checks for stability of the currency spacing patterns in CLDR. 126 // For efficiency, ICU caches the most common currency spacing UnicodeSets.
|
NumberStringBuilderTest.java | 160 sb.append(str, NumberFormat.Field.CURRENCY); 166 assertEquals(NumberFormat.Field.CURRENCY, fields[i + str.length()]); 167 assertEquals(NumberFormat.Field.CURRENCY, sb.fieldAt(i + str.length())); 172 FieldPosition fp = new FieldPosition(NumberFormat.Field.CURRENCY); 195 } else if (fields[i] == NumberFormat.Field.CURRENCY) {
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
ExtractMessages.java | 291 * Currency 292 * -DXMLPATH=".*currency name.*" 307 LANGUAGE, REGION, CURRENCY, MONTH, MONTHSHORT, DAY, DAYSHORT, TIMEZONE 316 new DataHandler(Type.CURRENCY, ".*currency name.*"), 353 case CURRENCY: 497 case CURRENCY: 498 for (String code : sc.getAvailableCodes("currency")) { 499 String name = english.getName("currency", code); 672 case CURRENCY [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
NumberFormat.java | 21 import com.ibm.icu.util.Currency; 74 * currency number format. And use <code>getPercentInstance</code> to get a 86 * getInstance(...CURRENCYSTYLE) to get the currency number format, 87 * in which the currency is represented by its symbol, for example, "$3.00". 88 * getInstance(...ISOCURRENCYSTYLE) to get the currency number format, 89 * in which the currency is represented by its ISO code, for example "USD3.00". 90 * getInstance(...PLURALCURRENCYSTYLE) to get the currency number format, 91 * in which the currency is represented by its full name in plural format, 184 * {@icu} Constant to specify currency style of format which uses currency symbo [all...] |
DecimalFormat.java | 23 import com.ibm.icu.util.Currency; 34 * numbers ("123.4"), scientific notation ("1.23E4"), percentages ("12%"), and currency 53 * Print out a number using the localized number, currency, and percent 88 * Print out a number using the localized number, currency, percent, 89 * scientific, integer, iso currency, and plural currency format for each locale. 134 * Two exceptions are the currency sign and quote, which are not localized. 210 * <td>Currency sign, replaced by currency symbol. If 211 * doubled, replaced by international currency symbol [all...] |
/external/cldr/tools/java/org/unicode/cldr/util/ |
ICUServiceBuilder.java | 26 import com.ibm.icu.util.Currency; 32 public static Currency NO_CURRENCY = Currency.getInstance("XXX"); 471 private static class MyCurrency extends Currency { 494 // snagged from currency 513 * Returns the rounding increment for this currency, or 0.0 if no 514 * rounding is done by this currency. 542 static int CURRENCY = 0, OTHER_KEY = 1, PATTERN = 2; 544 public DecimalFormat getCurrencyFormat(String currency) { 546 return _getNumberFormat(currency, CURRENCY, null, null) [all...] |
/external/cldr/tools/java/org/unicode/cldr/test/ |
DisplayAndInputProcessor.java | 81 + "numbers/(decimal|currency|percent|scientific)Formats.+/(decimal|currency|percent|scientific)Format.*)"); 264 if (numericType != NumericType.CURRENCY && numericType != NumericType.CURRENCY_ABBREVIATED) { 370 if (path.startsWith("//ldml/numbers/currencies/currency") && path.contains("displayName")) { 375 if (numericType == NumericType.CURRENCY) { 561 (path.startsWith("//ldml/numbers/currencies/currency") && path.contains("/displayName")) || 566 } else if ((path.contains("/currencies/currency") && (path.contains("/group") || path.contains("/pattern"))) [all...] |
BuildIcuCompactDecimalFormat.java | 20 import com.ibm.icu.util.Currency; 32 PLAIN, CURRENCY, LONG_CURRENCY, ISO_CURRENCY, UNIT 184 // case CURRENCY: 224 // throw new IllegalArgumentException("Can't match currency pattern"); 318 "//ldml/numbers/currencies/currency[@type=\"" + 321 // //ldml/numbers/currencies/currency[@type="SRD"]/symbol 389 public String getName(Currency currency, int count) { 390 final String currencyCode = currency.getCurrencyCode(); 394 String prefix = "//ldml/numbers/currencies/currency[@type=\"" + currencyCode + "\"]/" [all...] |
CheckDisplayCollisions.java | 57 CURRENCY("//ldml/numbers/currencies/currency", MatchType.PREFIX, 4), 341 // Collisions between display names and symbols for the same currency are allowed. 342 if (myType == Type.CURRENCY) { 347 String currency = parts.getAttributeValue(-2, "type"); local 352 if (currency.equals(parts.getAttributeValue(-2, "type")) || 355 log("Removed '" + curVal + "': COLLISON WITH CURRENCY " + currency); 604 if (myType == Type.CURRENCY && isCodeFallback(path)) { [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
NumberFormat.java | 30 import android.icu.util.Currency; 31 import android.icu.util.Currency.CurrencyUsage; 92 * currency number format. And use <code>getPercentInstance</code> to get a 105 * getInstance(...CURRENCYSTYLE) to get the currency number format, 106 * in which the currency is represented by its symbol, for example, "$3.00". 107 * getInstance(...ISOCURRENCYSTYLE) to get the currency number format, 108 * in which the currency is represented by its ISO code, for example "USD3.00". 109 * getInstance(...PLURALCURRENCYSTYLE) to get the currency number format, 110 * in which the currency is represented by its full name in plural format, 186 * <strong>[icu]</strong> Constant to specify general currency style of format. Defaults t 1693 private Currency currency; field in class:NumberFormat [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
DecimalFormatICU.java | 18 import java.util.Currency; 134 public Currency getCurrency() { 135 com.ibm.icu.util.Currency icuCurrency = fIcuDecfmt.getCurrency(); 139 return Currency.getInstance(icuCurrency.getCurrencyCode()); 251 public void setCurrency(Currency currency) { 252 if (currency == null) { 255 fIcuDecfmt.setCurrency(com.ibm.icu.util.Currency.getInstance(currency.getCurrencyCode())); 267 Currency currency = newSymbols.getCurrency() local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDecimalFormatAPIC.java | 334 // test currency instance with US Locale 338 // test negative currency instance with US Locale 364 // v.add(new FieldContainer(4, 6, NumberFormat.Field.CURRENCY)); 372 // v.add(new FieldContainer(5, 7, NumberFormat.Field.CURRENCY)); 378 v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY)); 389 v.add(new FieldContainer(1, 2, NumberFormat.Field.CURRENCY));
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDecimalFormatAPIC.java | 331 // test currency instance with US Locale 335 // test negative currency instance with US Locale 361 // v.add(new FieldContainer(4, 6, NumberFormat.Field.CURRENCY)); 369 // v.add(new FieldContainer(5, 7, NumberFormat.Field.CURRENCY)); 375 v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY)); 386 v.add(new FieldContainer(1, 2, NumberFormat.Field.CURRENCY));
|
/external/cldr/tools/java/org/unicode/cldr/icu/ |
LDMLConstants.java | 157 public static final String CURRENCY = "currency"; 549 public static final String CURRENCY_O = "<" + CURRENCY + ">"; 550 public static final String CURRENCY_C = "</" + CURRENCY + ">"; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
NumberFormat.java | 29 import com.ibm.icu.util.Currency; 30 import com.ibm.icu.util.Currency.CurrencyUsage; 91 * currency number format. And use <code>getPercentInstance</code> to get a 104 * getInstance(...CURRENCYSTYLE) to get the currency number format, 105 * in which the currency is represented by its symbol, for example, "$3.00". 106 * getInstance(...ISOCURRENCYSTYLE) to get the currency number format, 107 * in which the currency is represented by its ISO code, for example "USD3.00". 108 * getInstance(...PLURALCURRENCYSTYLE) to get the currency number format, 109 * in which the currency is represented by its full name in plural format, 187 * {@icu} Constant to specify general currency style of format. Defaults t 1846 private Currency currency; field in class:NumberFormat [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
CollationAPITest.java | [all...] |