/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | Precision.java | 391 static Precision constructSignificant(int minSig, int maxSig) { in constructSignificant() argument 392 if (minSig == 2 && maxSig == 2) { in constructSignificant() 394 } else if (minSig == 3 && maxSig == 3) { in constructSignificant() 396 } else if (minSig == 2 && maxSig == 3) { in constructSignificant() 399 return new SignificantRounderImpl(minSig, maxSig); in constructSignificant() 403 static Precision constructFractionSignificant(FractionPrecision base_, int minSig, int maxSig) { in constructFractionSignificant() argument 410 returnValue = new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig); in constructFractionSignificant() 580 final int maxSig; field in Precision.SignificantRounderImpl 582 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument 584 this.maxSig = maxSig; in SignificantRounderImpl() [all …]
|
D | NumberPropertyMapper.java | 137 int maxSig = properties.getMaximumSignificantDigits(); in oldToNew() local 141 boolean explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 184 maxSig = maxSig < 0 ? RoundingUtils.MAX_INT_FRAC_SIG in oldToNew() 185 : maxSig < minSig ? minSig in oldToNew() 186 … : maxSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG in oldToNew() 187 : maxSig; in oldToNew() 188 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 333 int maxSig_ = maxSig; in oldToNew() 344 maxSig_ = ((SignificantRounderImpl) rounding_).maxSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1124 int maxSig; in parseDigitsStem() local 1134 maxSig = -1; in parseDigitsStem() 1137 maxSig = minSig; in parseDigitsStem() 1140 maxSig++; in parseDigitsStem() 1147 maxSig = minSig; in parseDigitsStem() 1153 if (maxSig == -1) { in parseDigitsStem() 1156 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1160 private static void generateDigitsStem(int minSig, int maxSig, StringBuilder sb) { in generateDigitsStem() argument 1162 if (maxSig == -1) { in generateDigitsStem() 1165 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Precision.java | 426 static Precision constructSignificant(int minSig, int maxSig) { in constructSignificant() argument 427 if (minSig == 2 && maxSig == 2) { in constructSignificant() 429 } else if (minSig == 3 && maxSig == 3) { in constructSignificant() 431 } else if (minSig == 2 && maxSig == 3) { in constructSignificant() 434 return new SignificantRounderImpl(minSig, maxSig); in constructSignificant() 439 FractionPrecision base_, int minSig, int maxSig, RoundingPriority priority) { in constructFractionSignificant() argument 443 if (base.minFrac == 0 && base.maxFrac == 0 && minSig == 1 && maxSig == 2 && in constructFractionSignificant() 447 … returnValue = new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig, priority); in constructFractionSignificant() 666 final int maxSig; field in Precision.SignificantRounderImpl 668 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument [all …]
|
D | NumberPropertyMapper.java | 136 int maxSig = properties.getMaximumSignificantDigits(); in oldToNew() local 140 boolean explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 183 maxSig = maxSig < 0 ? RoundingUtils.MAX_INT_FRAC_SIG in oldToNew() 184 : maxSig < minSig ? minSig in oldToNew() 185 … : maxSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG in oldToNew() 186 : maxSig; in oldToNew() 187 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 332 int maxSig_ = maxSig; in oldToNew() 343 maxSig_ = ((SignificantRounderImpl) rounding_).maxSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1184 int maxSig; in parseDigitsStem() local 1194 maxSig = -1; in parseDigitsStem() 1197 maxSig = minSig; in parseDigitsStem() 1200 maxSig++; in parseDigitsStem() 1207 maxSig = minSig; in parseDigitsStem() 1213 if (maxSig == -1) { in parseDigitsStem() 1216 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1220 private static void generateDigitsStem(int minSig, int maxSig, StringBuilder sb) { in generateDigitsStem() argument 1222 if (maxSig == -1) { in generateDigitsStem() 1225 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_mapper.cpp | 93 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 141 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 142 ? kMaxIntFracSig : maxSig; in oldToNew() 143 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 288 int maxSig_ = maxSig; in oldToNew()
|
D | number_rounding.cpp | 68 int32_t getRoundingMagnitudeSignificant(const DecimalQuantity &value, int maxSig) { in getRoundingMagnitudeSignificant() argument 69 if (maxSig == -1) { in getRoundingMagnitudeSignificant() 73 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant() 302 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 307 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructSignificant() 317 int32_t maxSig, in constructFractionSignificant() argument 321 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1187 int32_t maxSig; in parseDigitsStem() local 1197 maxSig = -1; in parseDigitsStem() 1200 maxSig = minSig; in parseDigitsStem() 1203 maxSig++; in parseDigitsStem() 1210 maxSig = minSig; in parseDigitsStem() 1218 if (maxSig == -1) { in parseDigitsStem() 1221 macros.precision = Precision::minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1226 blueprint_helpers::generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode… in generateDigitsStem() argument 1228 if (maxSig == -1) { in generateDigitsStem() 1231 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() [all …]
|
D | number_patternstring.cpp | 684 int32_t maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString() local 708 if (maxSig != uprv_min(dosMax, -1)) { in propertiesToPatternString() 713 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_mapper.cpp | 103 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew() local 107 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 147 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 148 ? kMaxIntFracSig : maxSig; in oldToNew() 149 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 293 int maxSig_ = maxSig; in oldToNew()
|
D | number_rounding.cpp | 32 int32_t getRoundingMagnitudeSignificant(const DecimalQuantity &value, int maxSig) { in getRoundingMagnitudeSignificant() argument 33 if (maxSig == -1) { in getRoundingMagnitudeSignificant() 37 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant() 234 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 239 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructSignificant() 246 …sion::constructFractionSignificant(const FractionPrecision &base, int32_t minSig, int32_t maxSig) { in constructFractionSignificant() argument 249 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1022 int maxSig; in parseDigitsStem() local 1032 maxSig = -1; in parseDigitsStem() 1035 maxSig = minSig; in parseDigitsStem() 1038 maxSig++; in parseDigitsStem() 1045 maxSig = minSig; in parseDigitsStem() 1053 if (maxSig == -1) { 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 1063 if (maxSig == -1) { in generateDigitsStem() 1066 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() [all …]
|
D | number_patternstring.cpp | 663 int maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString() local 709 if (maxSig != uprv_min(dosMax, -1)) { in propertiesToPatternString() 714 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|
D | number_skeletons.h | 234 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
|
/third_party/icu/icu4c/source/i18n/ |
D | number_mapper.cpp | 93 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 141 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 142 ? kMaxIntFracSig : maxSig; in oldToNew() 143 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 288 int maxSig_ = maxSig; in oldToNew()
|
D | number_rounding.cpp | 68 int32_t getRoundingMagnitudeSignificant(const DecimalQuantity &value, int maxSig) { in getRoundingMagnitudeSignificant() argument 69 if (maxSig == -1) { in getRoundingMagnitudeSignificant() 73 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant() 302 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 307 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructSignificant() 317 int32_t maxSig, in constructFractionSignificant() argument 321 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1187 int32_t maxSig; in parseDigitsStem() local 1197 maxSig = -1; in parseDigitsStem() 1200 maxSig = minSig; in parseDigitsStem() 1203 maxSig++; in parseDigitsStem() 1210 maxSig = minSig; in parseDigitsStem() 1218 if (maxSig == -1) { in parseDigitsStem() 1221 macros.precision = Precision::minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1226 blueprint_helpers::generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode… in generateDigitsStem() argument 1228 if (maxSig == -1) { in generateDigitsStem() 1231 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() [all …]
|
D | number_patternstring.cpp | 684 int32_t maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString() local 708 if (maxSig != uprv_min(dosMax, -1)) { in propertiesToPatternString() 713 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_mapper.cpp | 93 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 141 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 142 ? kMaxIntFracSig : maxSig; in oldToNew() 143 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 288 int maxSig_ = maxSig; in oldToNew()
|
D | number_rounding.cpp | 71 int32_t getRoundingMagnitudeSignificant(const DecimalQuantity &value, int maxSig) { in getRoundingMagnitudeSignificant() argument 72 if (maxSig == -1) { in getRoundingMagnitudeSignificant() 76 return magnitude - maxSig + 1; in getRoundingMagnitudeSignificant() 305 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 310 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructSignificant() 320 int32_t maxSig, in constructFractionSignificant() argument 324 settings.fMaxSig = static_cast<digits_t>(maxSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1193 int32_t maxSig; in parseDigitsStem() local 1203 maxSig = -1; in parseDigitsStem() 1206 maxSig = minSig; in parseDigitsStem() 1209 maxSig++; in parseDigitsStem() 1216 maxSig = minSig; in parseDigitsStem() 1224 if (maxSig == -1) { in parseDigitsStem() 1227 macros.precision = Precision::minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1232 blueprint_helpers::generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode… in generateDigitsStem() argument 1234 if (maxSig == -1) { in generateDigitsStem() 1237 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() [all …]
|
D | number_patternstring.cpp | 732 int32_t maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString() local 756 if (maxSig != uprv_min(dosMax, -1)) { in propertiesToPatternString() 761 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | PatternStringUtils.java | 97 int maxSig = Math.min(properties.getMaximumSignificantDigits(), dosMax); in propertiesToPatternString() local 120 if (maxSig != Math.min(dosMax, -1)) { in propertiesToPatternString() 125 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PatternStringUtils.java | 92 int maxSig = Math.min(properties.getMaximumSignificantDigits(), dosMax); in propertiesToPatternString() local 115 if (maxSig != Math.min(dosMax, -1)) { in propertiesToPatternString() 120 while (digitsString.length() < maxSig) { in propertiesToPatternString()
|