Home
last modified time | relevance | path

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

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DNumberPropertyMapper.java119 CurrencyUsage currencyUsage = properties.getCurrencyUsage(); in oldToNew() local
120 boolean explicitCurrencyUsage = currencyUsage != null; in oldToNew()
122 currencyUsage = CurrencyUsage.STANDARD; in oldToNew()
147 minFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
148 maxFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
150 minFrac = Math.min(maxFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
152 maxFrac = Math.max(minFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
174 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
192 rounding = Precision.constructCurrency(currencyUsage); in oldToNew()
DPrecision.java319 public static CurrencyPrecision currency(CurrencyUsage currencyUsage) { in currency() argument
320 if (currencyUsage != null) { in currency()
321 return constructCurrency(currencyUsage); in currency()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberPropertyMapper.java118 CurrencyUsage currencyUsage = properties.getCurrencyUsage(); in oldToNew() local
119 boolean explicitCurrencyUsage = currencyUsage != null; in oldToNew()
121 currencyUsage = CurrencyUsage.STANDARD; in oldToNew()
146 minFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
147 maxFrac = currency.getDefaultFractionDigits(currencyUsage); in oldToNew()
149 minFrac = Math.min(maxFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
151 maxFrac = Math.max(minFrac, currency.getDefaultFractionDigits(currencyUsage)); in oldToNew()
173 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
194 rounding = Precision.constructCurrency(currencyUsage); in oldToNew()
DPrecision.java334 public static CurrencyPrecision currency(CurrencyUsage currencyUsage) { in currency() argument
335 if (currencyUsage != null) { in currency()
336 return constructCurrency(currencyUsage); in currency()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java91 private transient CurrencyUsage currencyUsage; field in DecimalFormatProperties
164 currencyUsage = null; in _clear()
211 currencyUsage = other.currencyUsage; in _copyFrom()
259 eq = eq && _equalsHelper(currencyUsage, other.currencyUsage); in _equals()
323 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
436 return currencyUsage; in getCurrencyUsage()
733 public DecimalFormatProperties setCurrencyUsage(CurrencyUsage currencyUsage) { in setCurrencyUsage() argument
734 this.currencyUsage = currencyUsage; in setCurrencyUsage()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DDecimalFormatProperties.java96 private transient CurrencyUsage currencyUsage; field in DecimalFormatProperties
168 currencyUsage = null; in _clear()
214 currencyUsage = other.currencyUsage; in _copyFrom()
261 eq = eq && _equalsHelper(currencyUsage, other.currencyUsage); in _equals()
324 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
436 return currencyUsage; in getCurrencyUsage()
729 public DecimalFormatProperties setCurrencyUsage(CurrencyUsage currencyUsage) { in setCurrencyUsage() argument
730 this.currencyUsage = currencyUsage; in setCurrencyUsage()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_mapper.cpp75 !properties.currencyUsage.isNull() || in oldToNew()
78 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew() local
106 currency.getISOCurrency(), currencyUsage, &status); in oldToNew()
131 if (!properties.currencyUsage.isNull()) { in oldToNew()
132 precision = Precision::constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
147 precision = Precision::constructCurrency(currencyUsage); in oldToNew()
Dnumber_decimfmtprops.cpp39 currencyUsage.nullify(); in clear()
88 eq = eq && currencyUsage == other.currencyUsage; in _equals()
Dnumber_rounding.cpp210 CurrencyPrecision Precision::currency(UCurrencyUsage currencyUsage) { in currency() argument
211 return constructCurrency(currencyUsage); in currency()
262 double increment = ucurr_getRoundingIncrementForUsage(isoCode, fUnion.currencyUsage, &status); in withCurrency()
264 isoCode, fUnion.currencyUsage, &status); in withCurrency()
355 union_.currencyUsage = usage; in constructCurrency()
Dnumber_decimfmtprops.h104 NullableValue<UCurrencyUsage> currencyUsage; member
/third_party/node/deps/icu-small/source/i18n/
Dnumber_mapper.cpp75 !properties.currencyUsage.isNull() || in oldToNew()
78 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew() local
106 currency.getISOCurrency(), currencyUsage, &status); in oldToNew()
131 if (!properties.currencyUsage.isNull()) { in oldToNew()
132 precision = Precision::constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
148 precision = Precision::constructCurrency(currencyUsage); in oldToNew()
Dnumber_decimfmtprops.cpp39 currencyUsage.nullify(); in clear()
89 eq = eq && currencyUsage == other.currencyUsage; in _equals()
Dnumber_rounding.cpp194 CurrencyPrecision Precision::currency(UCurrencyUsage currencyUsage) { in currency() argument
195 return constructCurrency(currencyUsage); in currency()
249 double increment = ucurr_getRoundingIncrementForUsage(isoCode, fUnion.currencyUsage, &status); in withCurrency()
251 isoCode, fUnion.currencyUsage, &status); in withCurrency()
343 union_.currencyUsage = usage; in constructCurrency()
Dnumber_decimfmtprops.h104 NullableValue<UCurrencyUsage> currencyUsage; member
Ddecimfmt.cpp1324 !tprops.currencyUsage.isNull() || in toPattern()
1548 …if (!fields->properties.currencyUsage.isNull() && newUsage == fields->properties.currencyUsage.get… in setCurrencyUsage()
1551 fields->properties.currencyUsage = newUsage; in setCurrencyUsage()
1558 if (fields == nullptr || fields->properties.currencyUsage.isNull()) { in getCurrencyUsage()
1561 return fields->properties.currencyUsage.getNoError(); in getCurrencyUsage()
/third_party/icu/icu4c/source/i18n/
Dnumber_mapper.cpp75 !properties.currencyUsage.isNull() || in oldToNew()
78 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew() local
106 currency.getISOCurrency(), currencyUsage, &status); in oldToNew()
131 if (!properties.currencyUsage.isNull()) { in oldToNew()
132 precision = Precision::constructCurrency(currencyUsage).withCurrency(currency); in oldToNew()
148 precision = Precision::constructCurrency(currencyUsage); in oldToNew()
Dnumber_decimfmtprops.cpp39 currencyUsage.nullify(); in clear()
89 eq = eq && currencyUsage == other.currencyUsage; in _equals()
Dnumber_rounding.cpp194 CurrencyPrecision Precision::currency(UCurrencyUsage currencyUsage) { in currency() argument
195 return constructCurrency(currencyUsage); in currency()
249 double increment = ucurr_getRoundingIncrementForUsage(isoCode, fUnion.currencyUsage, &status); in withCurrency()
251 isoCode, fUnion.currencyUsage, &status); in withCurrency()
343 union_.currencyUsage = usage; in constructCurrency()
Dnumber_decimfmtprops.h104 NullableValue<UCurrencyUsage> currencyUsage; member
Ddecimfmt.cpp1324 !tprops.currencyUsage.isNull() || in toPattern()
1548 …if (!fields->properties.currencyUsage.isNull() && newUsage == fields->properties.currencyUsage.get… in setCurrencyUsage()
1551 fields->properties.currencyUsage = newUsage; in setCurrencyUsage()
1558 if (fields == nullptr || fields->properties.currencyUsage.isNull()) { in getCurrencyUsage()
1561 return fields->properties.currencyUsage.getNoError(); in getCurrencyUsage()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DNumberFormatDataDrivenTest.java245 if (tuple.currencyUsage != null) {
246 fmt.setCurrencyUsage(tuple.currencyUsage);
418 if (tuple.currencyUsage != null) {
525 if (tuple.currencyUsage != null) { in propertiesFromTuple()
526 properties.setCurrencyUsage(tuple.currencyUsage); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java105 public Currency.CurrencyUsage currencyUsage = null; field in DataDrivenNumberFormatTestData
351 currencyUsage = fromString(currencyUsageMap, value); in setCurrencyUsage()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java242 if (tuple.currencyUsage != null) {
243 fmt.setCurrencyUsage(tuple.currencyUsage);
415 if (tuple.currencyUsage != null) {
522 if (tuple.currencyUsage != null) { in propertiesFromTuple()
523 properties.setCurrencyUsage(tuple.currencyUsage); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java102 public Currency.CurrencyUsage currencyUsage = null; field in DataDrivenNumberFormatTestData
348 currencyUsage = fromString(currencyUsageMap, value); in setCurrencyUsage()
/third_party/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.cpp226 UCurrencyUsage currencyUsage = in currencyUsageToStr() local
231 currencyUsage, in currencyUsageToStr()
319 FIELD_INIT(currencyUsage, &gCurrencyUsageOps),

12