/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | Precision.java | 460 static Precision constructSignificant(int minSig, int maxSig) { in constructSignificant() argument 461 if (minSig == 2 && maxSig == 2) { in constructSignificant() 463 } else if (minSig == 3 && maxSig == 3) { in constructSignificant() 465 } else if (minSig == 2 && maxSig == 3) { in constructSignificant() 468 return new SignificantRounderImpl(minSig, maxSig); in constructSignificant() 472 static Precision constructFractionSignificant(FractionPrecision base_, int minSig, int maxSig) { in constructFractionSignificant() argument 475 if (base.minFrac == 0 && base.maxFrac == 0 && minSig == 2 /* && maxSig == -1 */) { in constructFractionSignificant() 478 return new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig); in constructFractionSignificant() 622 final int minSig; field in Precision.SignificantRounderImpl 625 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument [all …]
|
D | NumberPropertyMapper.java | 141 int minSig = properties.getMinimumSignificantDigits(); in oldToNew() local 146 boolean explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 185 minSig = minSig < 1 ? 1 in oldToNew() 186 … : minSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG : minSig; in oldToNew() 188 : maxSig < minSig ? minSig in oldToNew() 191 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 335 int minSig_ = minSig; in oldToNew() 346 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1039 int minSig = 0; in parseDigitsStem() local 1043 minSig++; in parseDigitsStem() 1053 maxSig = minSig; in parseDigitsStem() 1063 maxSig = minSig; in parseDigitsStem() 1070 macros.precision = Precision.minSignificantDigits(minSig); in parseDigitsStem() 1072 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1076 private static void generateDigitsStem(int minSig, int maxSig, StringBuilder sb) { in generateDigitsStem() argument 1077 appendMultiple(sb, '@', minSig); in generateDigitsStem() 1081 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() 1091 int minSig = 0; in parseFracSigOption() local [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Precision.java | 472 static Precision constructSignificant(int minSig, int maxSig) { in constructSignificant() argument 473 if (minSig == 2 && maxSig == 2) { in constructSignificant() 475 } else if (minSig == 3 && maxSig == 3) { in constructSignificant() 477 } else if (minSig == 2 && maxSig == 3) { in constructSignificant() 480 return new SignificantRounderImpl(minSig, maxSig); in constructSignificant() 484 static Precision constructFractionSignificant(FractionPrecision base_, int minSig, int maxSig) { in constructFractionSignificant() argument 487 if (base.minFrac == 0 && base.maxFrac == 0 && minSig == 2 /* && maxSig == -1 */) { in constructFractionSignificant() 490 return new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig); in constructFractionSignificant() 634 final int minSig; field in Precision.SignificantRounderImpl 637 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument [all …]
|
D | NumberPropertyMapper.java | 140 int minSig = properties.getMinimumSignificantDigits(); in oldToNew() local 145 boolean explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 184 minSig = minSig < 1 ? 1 in oldToNew() 185 … : minSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG : minSig; in oldToNew() 187 : maxSig < minSig ? minSig in oldToNew() 190 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 334 int minSig_ = minSig; in oldToNew() 345 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1038 int minSig = 0; in parseDigitsStem() local 1042 minSig++; in parseDigitsStem() 1052 maxSig = minSig; in parseDigitsStem() 1062 maxSig = minSig; in parseDigitsStem() 1069 macros.precision = Precision.minSignificantDigits(minSig); in parseDigitsStem() 1071 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1075 private static void generateDigitsStem(int minSig, int maxSig, StringBuilder sb) { in generateDigitsStem() argument 1076 appendMultiple(sb, '@', minSig); in generateDigitsStem() 1080 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() 1090 int minSig = 0; in parseFracSigOption() local [all …]
|
/external/icu/icu4c/source/i18n/ |
D | number_mapper.cpp | 102 int32_t minSig = properties.minimumSignificantDigits; in oldToNew() local 107 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 146 minSig = minSig < 1 ? 1 : minSig > kMaxIntFracSig ? kMaxIntFracSig : minSig; in oldToNew() 147 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 149 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 292 int minSig_ = minSig; in oldToNew()
|
D | number_rounding.cpp | 47 int32_t getDisplayMagnitudeSignificant(const DecimalQuantity &value, int minSig) { in getDisplayMagnitudeSignificant() argument 49 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant() 234 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 238 settings.fMinSig = static_cast<digits_t>(minSig); in constructSignificant() 246 Precision::constructFractionSignificant(const FractionPrecision &base, int32_t minSig, int32_t maxS… in constructFractionSignificant() argument 248 settings.fMinSig = static_cast<digits_t>(minSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1021 int minSig = 0; in parseDigitsStem() local 1025 minSig++; in parseDigitsStem() 1035 maxSig = minSig; in parseDigitsStem() 1045 maxSig = minSig; in parseDigitsStem() 1054 macros.precision = Precision::minSignificantDigits(minSig); in parseDigitsStem() 1056 macros.precision = Precision::minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1061 blueprint_helpers::generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode… in generateDigitsStem() argument 1062 appendMultiple(sb, u'@', minSig); in generateDigitsStem() 1066 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() 1076 int minSig = 0; in parseFracSigOption() local [all …]
|
D | number_skeletons.h | 234 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
|
D | number_patternstring.cpp | 662 int minSig = uprv_min(properties.minimumSignificantDigits, dosMax); in propertiesToPatternString() local 711 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
D | decimfmt.cpp | 1071 int32_t minSig = useSignificantDigits ? 1 : -1; in setSignificantDigitsUsed() local 1073 fields->properties->minimumSignificantDigits = minSig; in setSignificantDigitsUsed()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PatternStringUtils.java | 44 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() local 94 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | PatternStringUtils.java | 46 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() local 96 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 782 static Precision constructSignificant(int32_t minSig, int32_t maxSig); 785 constructFractionSignificant(const FractionPrecision &base, int32_t minSig, int32_t maxSig);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | DecimalFormat.java | 1480 int minSig = useSignificantDigits ? 1 : -1; in setSignificantDigitsUsed() local 1482 properties.setMinimumSignificantDigits(minSig); in setSignificantDigitsUsed()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DecimalFormat.java | 1575 int minSig = useSignificantDigits ? 1 : -1; in setSignificantDigitsUsed() local 1577 properties.setMinimumSignificantDigits(minSig); in setSignificantDigitsUsed()
|