Home
last modified time | relevance | path

Searched refs:currencyUsage (Results 1 – 25 of 27) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberPropertyMapper.java124 CurrencyUsage currencyUsage = properties.getCurrencyUsage(); in oldToNew() local
125 boolean explicitCurrencyUsage = currencyUsage != null; in oldToNew()
127 currencyUsage = CurrencyUsage.STANDARD; in oldToNew()
152 minFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
153 maxFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
155 minFrac = Math.min(maxFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
157 maxFrac = Math.max(minFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
181 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
195 rounding = Precision.constructCurrency(currencyUsage); in oldToNew()
DPrecision.java358 public static CurrencyPrecision currency(CurrencyUsage currencyUsage) { in currency() argument
359 if (currencyUsage != null) { in currency()
360 return constructCurrency(currencyUsage); in currency()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberPropertyMapper.java123 CurrencyUsage currencyUsage = properties.getCurrencyUsage(); in oldToNew() local
124 boolean explicitCurrencyUsage = currencyUsage != null; in oldToNew()
126 currencyUsage = CurrencyUsage.STANDARD; in oldToNew()
151 minFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
152 maxFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
154 minFrac = Math.min(maxFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
156 maxFrac = Math.max(minFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
180 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
194 rounding = Precision.constructCurrency(currencyUsage); in oldToNew()
DPrecision.java369 public static CurrencyPrecision currency(CurrencyUsage currencyUsage) { in currency() argument
370 if (currencyUsage != null) { in currency()
371 return constructCurrency(currencyUsage); in currency()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java89 private transient CurrencyUsage currencyUsage; field in DecimalFormatProperties
161 currencyUsage = null; in _clear()
207 currencyUsage = other.currencyUsage; in _copyFrom()
254 eq = eq && _equalsHelper(currencyUsage, other.currencyUsage); in _equals()
317 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
429 return currencyUsage; in getCurrencyUsage()
722 public DecimalFormatProperties setCurrencyUsage(CurrencyUsage currencyUsage) { in setCurrencyUsage() argument
723 this.currencyUsage = currencyUsage; in setCurrencyUsage()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java84 private transient CurrencyUsage currencyUsage; field in DecimalFormatProperties
156 currencyUsage = null; in _clear()
202 currencyUsage = other.currencyUsage; in _copyFrom()
249 eq = eq && _equalsHelper(currencyUsage, other.currencyUsage); in _equals()
312 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
424 return currencyUsage; in getCurrencyUsage()
717 public DecimalFormatProperties setCurrencyUsage(CurrencyUsage currencyUsage) { in setCurrencyUsage() argument
718 this.currencyUsage = currencyUsage; in setCurrencyUsage()
/external/icu/icu4c/source/i18n/
Dnumber_mapper.cpp84 !properties.currencyUsage.isNull() || affixProvider->hasCurrencySign()); in oldToNew()
86 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew() local
114 currency.getISOCurrency(), currencyUsage, &status); in oldToNew()
141 if (!properties.currencyUsage.isNull()) { in oldToNew()
142 precision = Precision::constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
153 precision = Precision::constructCurrency(currencyUsage); in oldToNew()
Dnumber_rounding.cpp160 CurrencyPrecision Precision::currency(UCurrencyUsage currencyUsage) { in currency() argument
161 return constructCurrency(currencyUsage); in currency()
194 double increment = ucurr_getRoundingIncrementForUsage(isoCode, fUnion.currencyUsage, &status); in withCurrency()
196 isoCode, fUnion.currencyUsage, &status); in withCurrency()
269 union_.currencyUsage = usage; in constructCurrency()
Dnumber_decimfmtprops.cpp38 currencyUsage.nullify(); in clear()
87 eq = eq && currencyUsage == other.currencyUsage; in _equals()
Dnumber_decimfmtprops.h99 NullableValue<UCurrencyUsage> currencyUsage; member
Ddecimfmt.cpp937 !tprops.currencyUsage.isNull() || AffixUtils::hasCurrencySymbols( in toPattern()
1099 …if (!fields->properties->currencyUsage.isNull() && newUsage == fields->properties->currencyUsage.g… in setCurrencyUsage()
1102 fields->properties->currencyUsage = newUsage; in setCurrencyUsage()
1109 if (fields->properties->currencyUsage.isNull()) { in getCurrencyUsage()
1112 return fields->properties->currencyUsage.getNoError(); in getCurrencyUsage()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java245 if (tuple.currencyUsage != null) {
246 fmt.setCurrencyUsage(tuple.currencyUsage);
606 if (tuple.currencyUsage != null) {
713 if (tuple.currencyUsage != null) { in propertiesFromTuple()
714 properties.setCurrencyUsage(tuple.currencyUsage); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java105 public Currency.CurrencyUsage currencyUsage = null; field in DataDrivenNumberFormatTestData
351 currencyUsage = fromString(currencyUsageMap, value); in setCurrencyUsage()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java242 if (tuple.currencyUsage != null) {
243 fmt.setCurrencyUsage(tuple.currencyUsage);
603 if (tuple.currencyUsage != null) {
710 if (tuple.currencyUsage != null) { in propertiesFromTuple()
711 properties.setCurrencyUsage(tuple.currencyUsage); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java102 public Currency.CurrencyUsage currencyUsage = null; field in DataDrivenNumberFormatTestData
348 currencyUsage = fromString(currencyUsageMap, value); in setCurrencyUsage()
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.cpp223 UCurrencyUsage currencyUsage = in currencyUsageToStr() local
228 currencyUsage, in currencyUsageToStr()
316 FIELD_INIT(currencyUsage, &gCurrencyUsageOps),
Dnumberformattesttuple.h112 UCurrencyUsage currencyUsage; variable
Dnumfmtdatadriventest.cpp133 fmt.setCurrencyUsage(tuple.currencyUsage, &status); in adjustDecimalFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java3995 other.currencyUsage = currencyUsage;
4038 && currencyUsage.equals(other.currencyUsage);
5238 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in applyPatternWithoutExpandAffix()
5239 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in applyPatternWithoutExpandAffix()
5401 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in setCurrency()
5402 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in setCurrency()
5425 currencyUsage = newUsage; in setCurrencyUsage()
5430 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in setCurrencyUsage()
5431 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in setCurrencyUsage()
5442 return currencyUsage; in getCurrencyUsage()
[all …]
DCurrencyMetaInfo.java556 public CurrencyDigits currencyDigits(String isoCode, CurrencyUsage currencyUsage) { in currencyDigits() argument
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java3936 other.currencyUsage = currencyUsage;
3978 && currencyUsage.equals(other.currencyUsage);
5169 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in applyPatternWithoutExpandAffix()
5170 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in applyPatternWithoutExpandAffix()
5323 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in setCurrency()
5324 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in setCurrency()
5346 currencyUsage = newUsage; in setCurrencyUsage()
5351 setRoundingIncrement(theCurrency.getRoundingIncrement(currencyUsage)); in setCurrencyUsage()
5352 int d = theCurrency.getDefaultFractionDigits(currencyUsage); in setCurrencyUsage()
5362 return currencyUsage; in getCurrencyUsage()
[all …]
DCurrencyMetaInfo.java514 public CurrencyDigits currencyDigits(String isoCode, CurrencyUsage currencyUsage) { in currencyDigits() argument
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h694 static CurrencyPrecision currency(UCurrencyUsage currencyUsage);
745 UCurrencyUsage currencyUsage; // For RND_CURRENCY member
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt567 format currency currencyUsage output breaks
576 currency currencyUsage toPattern breaks
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt567 format currency currencyUsage output breaks
576 currency currencyUsage toPattern breaks

12