/external/icu/icu4c/source/i18n/ |
D | number_rounding.cpp | 49 Rounder Rounder::unlimited() { in unlimited() 50 return Rounder(RND_NONE, {}, kDefaultMode); in unlimited() 53 FractionRounder Rounder::integer() { in integer() 57 FractionRounder Rounder::fixedFraction(int32_t minMaxFractionPlaces) { in fixedFraction() 65 FractionRounder Rounder::minFraction(int32_t minFractionPlaces) { in minFraction() 73 FractionRounder Rounder::maxFraction(int32_t maxFractionPlaces) { in maxFraction() 81 FractionRounder Rounder::minMaxFraction(int32_t minFractionPlaces, int32_t maxFractionPlaces) { in minMaxFraction() 90 Rounder Rounder::fixedDigits(int32_t minMaxSignificantDigits) { in fixedDigits() 98 Rounder Rounder::minDigits(int32_t minSignificantDigits) { in minDigits() 106 Rounder Rounder::maxDigits(int32_t maxSignificantDigits) { in maxDigits() [all …]
|
D | number_formatimpl.cpp | 223 fMicros.rounding = Rounder::integer().withMinDigits(2); in macrosToMicroGenerator() 225 fMicros.rounding = Rounder::currency(UCURR_USAGE_STANDARD); in macrosToMicroGenerator() 227 fMicros.rounding = Rounder::maxFraction(6); in macrosToMicroGenerator()
|
D | number_utils.h | 56 Rounder rounding;
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | Rounder.java | 26 public abstract class Rounder implements Cloneable { class 30 /* package-private */ Rounder() { in Rounder() method in Rounder 51 public static Rounder unlimited() { in unlimited() 184 public static Rounder fixedDigits(int minMaxSignificantDigits) { in fixedDigits() 206 public static Rounder minDigits(int minSignificantDigits) { in minDigits() 224 public static Rounder maxDigits(int maxSignificantDigits) { in maxDigits() 245 public static Rounder minMaxDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxDigits() 277 public static Rounder increment(BigDecimal roundingIncrement) { in increment() 320 public Rounder withMode(RoundingMode roundingMode) { in withMode() 331 public Rounder withMode(MathContext mathContext) { in withMode() [all …]
|
D | NumberPropertyMapper.java | 22 import android.icu.number.Rounder.FractionRounderImpl; 23 import android.icu.number.Rounder.IncrementRounderImpl; 24 import android.icu.number.Rounder.SignificantRounderImpl; 157 Rounder rounding = null; in oldToNew() 159 rounding = Rounder.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 161 rounding = Rounder.constructIncrement(roundingIncrement); in oldToNew() 167 rounding = Rounder.constructSignificant(minSig, maxSig); in oldToNew() 169 rounding = Rounder.constructFraction(minFrac, maxFrac); in oldToNew() 171 rounding = Rounder.constructCurrency(currencyUsage); in oldToNew() 257 macros.rounder = Rounder.constructInfinite().withMode(mathContext); in oldToNew() [all …]
|
D | FractionRounder.java | 19 public abstract class FractionRounder extends Rounder { 41 public Rounder withMinDigits(int minSignificantDigits) { in withMinDigits() 68 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits()
|
D | CurrencyRounder.java | 19 public abstract class CurrencyRounder extends Rounder { 42 public Rounder withCurrency(Currency currency) { in withCurrency()
|
D | NumberFormatterSettings.java | 170 public T rounding(Rounder rounder) { in rounding() 470 macros.rounder = (Rounder) current.value; in resolve()
|
D | ScientificNotation.java | 14 import android.icu.number.Rounder.SignificantRounderImpl; 178 micros.rounding = Rounder.constructPassThrough(); in processQuantity()
|
D | NumberFormatterImpl.java | 167 micros.rounding = Rounder.COMPACT_STRATEGY; in macrosToMicroGenerator() 169 micros.rounding = Rounder.MONETARY_STANDARD; in macrosToMicroGenerator() 171 micros.rounding = Rounder.MAX_FRAC_6; in macrosToMicroGenerator()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Rounder.java | 25 public abstract class Rounder implements Cloneable { class 29 /* package-private */ Rounder() { in Rounder() method in Rounder 51 public static Rounder unlimited() { in unlimited() 190 public static Rounder fixedDigits(int minMaxSignificantDigits) { in fixedDigits() 213 public static Rounder minDigits(int minSignificantDigits) { in minDigits() 232 public static Rounder maxDigits(int maxSignificantDigits) { in maxDigits() 254 public static Rounder minMaxDigits(int minSignificantDigits, int maxSignificantDigits) { in minMaxDigits() 287 public static Rounder increment(BigDecimal roundingIncrement) { in increment() 332 public Rounder withMode(RoundingMode roundingMode) { in withMode() 343 public Rounder withMode(MathContext mathContext) { in withMode() [all …]
|
D | NumberPropertyMapper.java | 21 import com.ibm.icu.number.Rounder.FractionRounderImpl; 22 import com.ibm.icu.number.Rounder.IncrementRounderImpl; 23 import com.ibm.icu.number.Rounder.SignificantRounderImpl; 156 Rounder rounding = null; in oldToNew() 158 rounding = Rounder.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 160 rounding = Rounder.constructIncrement(roundingIncrement); in oldToNew() 166 rounding = Rounder.constructSignificant(minSig, maxSig); in oldToNew() 168 rounding = Rounder.constructFraction(minFrac, maxFrac); in oldToNew() 170 rounding = Rounder.constructCurrency(currencyUsage); in oldToNew() 256 macros.rounder = Rounder.constructInfinite().withMode(mathContext); in oldToNew() [all …]
|
D | FractionRounder.java | 18 public abstract class FractionRounder extends Rounder { 41 public Rounder withMinDigits(int minSignificantDigits) { in withMinDigits() 69 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits()
|
D | CurrencyRounder.java | 18 public abstract class CurrencyRounder extends Rounder { 42 public Rounder withCurrency(Currency currency) { in withCurrency()
|
D | NumberFormatterSettings.java | 172 public T rounding(Rounder rounder) { in rounding() 478 macros.rounder = (Rounder) current.value; in resolve()
|
D | ScientificNotation.java | 13 import com.ibm.icu.number.Rounder.SignificantRounderImpl; 179 micros.rounding = Rounder.constructPassThrough(); in processQuantity()
|
D | NumberFormatterImpl.java | 166 micros.rounding = Rounder.COMPACT_STRATEGY; in macrosToMicroGenerator() 168 micros.rounding = Rounder.MONETARY_STANDARD; in macrosToMicroGenerator() 170 micros.rounding = Rounder.MAX_FRAC_6; in macrosToMicroGenerator()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 282 class Rounder; variable 561 typedef Rounder DigitRounder; 571 class U_I18N_API Rounder : public UMemory { 590 static Rounder unlimited(); 771 Rounder withMode(UNumberFormatRoundingMode roundingMode) const; 807 …Rounder(const RounderType &type, const RounderUnion &union_, UNumberFormatRoundingMode roundingMod… in Rounder() function 810 Rounder(UErrorCode errorCode) : fType(RND_ERROR) { in Rounder() function 814 Rounder() : fType(RND_BOGUS) {} in Rounder() function 829 Rounder withCurrency(const CurrencyUnit ¤cy, UErrorCode &status) const; 845 static Rounder constructSignificant(int32_t minSig, int32_t maxSig); [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 28 import android.icu.number.Rounder; 634 NumberFormatter.with().rounding(Rounder.integer()), in roundingFraction() 649 NumberFormatter.with().rounding(Rounder.fixedFraction(3)), in roundingFraction() 664 NumberFormatter.with().rounding(Rounder.minFraction(1)), in roundingFraction() 679 NumberFormatter.with().rounding(Rounder.maxFraction(1)), in roundingFraction() 694 NumberFormatter.with().rounding(Rounder.minMaxFraction(1, 3)), in roundingFraction() 712 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 720 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 728 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 736 NumberFormatter.with().rounding(Rounder.minDigits(2)), in roundingFigures() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 27 import com.ibm.icu.number.Rounder; 631 NumberFormatter.with().rounding(Rounder.integer()), in roundingFraction() 646 NumberFormatter.with().rounding(Rounder.fixedFraction(3)), in roundingFraction() 661 NumberFormatter.with().rounding(Rounder.minFraction(1)), in roundingFraction() 676 NumberFormatter.with().rounding(Rounder.maxFraction(1)), in roundingFraction() 691 NumberFormatter.with().rounding(Rounder.minMaxFraction(1, 3)), in roundingFraction() 709 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 717 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 725 NumberFormatter.with().rounding(Rounder.fixedDigits(3)), in roundingFigures() 733 NumberFormatter.with().rounding(Rounder.minDigits(2)), in roundingFigures() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 599 NumberFormatter::with().rounding(Rounder::integer()), in roundingFraction() 613 NumberFormatter::with().rounding(Rounder::fixedFraction(3)), in roundingFraction() 627 NumberFormatter::with().rounding(Rounder::minFraction(1)), in roundingFraction() 641 NumberFormatter::with().rounding(Rounder::maxFraction(1)), in roundingFraction() 655 NumberFormatter::with().rounding(Rounder::minMaxFraction(1, 3)), in roundingFraction() 671 NumberFormatter::with().rounding(Rounder::fixedDigits(3)), in roundingFigures() 678 NumberFormatter::with().rounding(Rounder::fixedDigits(3)), in roundingFigures() 685 NumberFormatter::with().rounding(Rounder::fixedDigits(3)), in roundingFigures() 692 NumberFormatter::with().rounding(Rounder::minDigits(2)), in roundingFigures() 699 NumberFormatter::with().rounding(Rounder::maxDigits(4)), in roundingFigures() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MicroProps.java | 10 import android.icu.number.Rounder; 28 public Rounder rounding;
|
D | MacroProps.java | 13 import android.icu.number.Rounder; 24 public Rounder rounder;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MicroProps.java | 9 import com.ibm.icu.number.Rounder; 24 public Rounder rounding;
|
D | MacroProps.java | 12 import com.ibm.icu.number.Rounder; 20 public Rounder rounder;
|