Home
last modified time | relevance | path

Searched refs:Rounder (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dnumber_rounding.cpp49 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 …]
Dnumber_formatimpl.cpp223 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()
Dnumber_utils.h56 Rounder rounding;
/external/icu/android_icu4j/src/main/java/android/icu/number/
DRounder.java26 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 …]
DNumberPropertyMapper.java22 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 …]
DFractionRounder.java19 public abstract class FractionRounder extends Rounder {
41 public Rounder withMinDigits(int minSignificantDigits) { in withMinDigits()
68 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits()
DCurrencyRounder.java19 public abstract class CurrencyRounder extends Rounder {
42 public Rounder withCurrency(Currency currency) { in withCurrency()
DNumberFormatterSettings.java170 public T rounding(Rounder rounder) { in rounding()
470 macros.rounder = (Rounder) current.value; in resolve()
DScientificNotation.java14 import android.icu.number.Rounder.SignificantRounderImpl;
178 micros.rounding = Rounder.constructPassThrough(); in processQuantity()
DNumberFormatterImpl.java167 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/
DRounder.java25 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 …]
DNumberPropertyMapper.java21 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 …]
DFractionRounder.java18 public abstract class FractionRounder extends Rounder {
41 public Rounder withMinDigits(int minSignificantDigits) { in withMinDigits()
69 public Rounder withMaxDigits(int maxSignificantDigits) { in withMaxDigits()
DCurrencyRounder.java18 public abstract class CurrencyRounder extends Rounder {
42 public Rounder withCurrency(Currency currency) { in withCurrency()
DNumberFormatterSettings.java172 public T rounding(Rounder rounder) { in rounding()
478 macros.rounder = (Rounder) current.value; in resolve()
DScientificNotation.java13 import com.ibm.icu.number.Rounder.SignificantRounderImpl;
179 micros.rounding = Rounder.constructPassThrough(); in processQuantity()
DNumberFormatterImpl.java166 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/
Dnumberformatter.h282 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;
807Rounder(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 &currency, 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/
DNumberFormatterApiTest.java28 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/
DNumberFormatterApiTest.java27 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/
Dnumbertest_api.cpp599 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/
DMicroProps.java10 import android.icu.number.Rounder;
28 public Rounder rounding;
DMacroProps.java13 import android.icu.number.Rounder;
24 public Rounder rounder;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java9 import com.ibm.icu.number.Rounder;
24 public Rounder rounding;
DMacroProps.java12 import com.ibm.icu.number.Rounder;
20 public Rounder rounder;

12