/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 407 if (base.minFrac == 0 && base.maxFrac == 0 && minSig == 2 /* && maxSig == -1 */) { in constructFractionSignificant() 410 returnValue = new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig); in constructFractionSignificant() 579 final int minSig; field in Precision.SignificantRounderImpl 582 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument [all …]
|
D | NumberPropertyMapper.java | 136 int minSig = properties.getMinimumSignificantDigits(); in oldToNew() local 141 boolean explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 182 minSig = minSig < 1 ? 1 in oldToNew() 183 … : minSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG : minSig; in oldToNew() 185 : maxSig < minSig ? minSig in oldToNew() 188 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 332 int minSig_ = minSig; in oldToNew() 343 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1123 int minSig = 0; in parseDigitsStem() local 1127 minSig++; in parseDigitsStem() 1137 maxSig = minSig; in parseDigitsStem() 1147 maxSig = minSig; in parseDigitsStem() 1154 macros.precision = Precision.minSignificantDigits(minSig); 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 1161 appendMultiple(sb, '@', minSig); in generateDigitsStem() 1165 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() 1240 int minSig = 0; in parseFracSigOption() local [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | Precision.java | 437 static Precision constructSignificant(int minSig, int maxSig) { in constructSignificant() argument 438 if (minSig == 2 && maxSig == 2) { in constructSignificant() 440 } else if (minSig == 3 && maxSig == 3) { in constructSignificant() 442 } else if (minSig == 2 && maxSig == 3) { in constructSignificant() 445 return new SignificantRounderImpl(minSig, maxSig); in constructSignificant() 449 static Precision constructFractionSignificant(FractionPrecision base_, int minSig, int maxSig, in constructFractionSignificant() argument 454 …if (base.minFrac == 0 && base.maxFrac == 0 && minSig == 1 && maxSig == 2 && priority == RoundingPr… in constructFractionSignificant() 458 …returnValue = new FracSigRounderImpl(base.minFrac, base.maxFrac, minSig, maxSig, priority, retain); in constructFractionSignificant() 676 final int minSig; field in Precision.SignificantRounderImpl 679 public SignificantRounderImpl(int minSig, int maxSig) { in SignificantRounderImpl() argument [all …]
|
D | NumberPropertyMapper.java | 135 int minSig = properties.getMinimumSignificantDigits(); in oldToNew() local 140 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() 332 int minSig_ = minSig; in oldToNew() 343 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
|
D | NumberSkeletonImpl.java | 1190 int minSig = 0; in parseDigitsStem() local 1194 minSig++; in parseDigitsStem() 1204 maxSig = minSig; in parseDigitsStem() 1214 maxSig = minSig; in parseDigitsStem() 1221 macros.precision = Precision.minSignificantDigits(minSig); in parseDigitsStem() 1223 macros.precision = Precision.minMaxSignificantDigits(minSig, maxSig); in parseDigitsStem() 1227 private static void generateDigitsStem(int minSig, int maxSig, StringBuilder sb) { in generateDigitsStem() argument 1228 appendMultiple(sb, '@', minSig); in generateDigitsStem() 1232 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem() 1308 int minSig = 0; in parseFracSigOption() local [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_mapper.cpp | 92 int32_t minSig = properties.minimumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 140 minSig = minSig < 1 ? 1 : minSig > kMaxIntFracSig ? kMaxIntFracSig : minSig; in oldToNew() 141 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 143 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 287 int minSig_ = minSig; in oldToNew()
|
D | number_rounding.cpp | 83 int32_t getDisplayMagnitudeSignificant(const DecimalQuantity &value, int minSig) { in getDisplayMagnitudeSignificant() argument 85 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant() 302 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 306 settings.fMinSig = static_cast<digits_t>(minSig); in constructSignificant() 316 int32_t minSig, in constructFractionSignificant() argument 320 settings.fMinSig = static_cast<digits_t>(minSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1186 int32_t minSig = 0; in parseDigitsStem() local 1190 minSig++; in parseDigitsStem() 1200 maxSig = minSig; in parseDigitsStem() 1210 maxSig = minSig; in parseDigitsStem() 1219 macros.precision = Precision::minSignificantDigits(minSig); 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 1227 appendMultiple(sb, u'@', minSig); in generateDigitsStem() 1231 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() 1311 int minSig = 0; in parseFracSigOption() local [all …]
|
D | number_skeletons.h | 269 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
|
D | number_patternstring.cpp | 683 int32_t minSig = uprv_min(properties.minimumSignificantDigits, dosMax); in propertiesToPatternString() local 710 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_mapper.cpp | 92 int32_t minSig = properties.minimumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 141 minSig = minSig < 1 ? 1 : minSig > kMaxIntFracSig ? kMaxIntFracSig : minSig; in oldToNew() 142 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 144 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 286 int minSig_ = minSig; in oldToNew()
|
D | number_rounding.cpp | 83 int32_t getDisplayMagnitudeSignificant(const DecimalQuantity &value, int minSig) { in getDisplayMagnitudeSignificant() argument 85 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant() 291 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 295 settings.fMinSig = static_cast<digits_t>(minSig); in constructSignificant() 305 int32_t minSig, in constructFractionSignificant() argument 310 settings.fMinSig = static_cast<digits_t>(minSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1192 int32_t minSig = 0; in parseDigitsStem() local 1196 minSig++; in parseDigitsStem() 1206 maxSig = minSig; in parseDigitsStem() 1216 maxSig = minSig; in parseDigitsStem() 1225 macros.precision = Precision::minSignificantDigits(minSig); 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 1233 appendMultiple(sb, u'@', minSig); in generateDigitsStem() 1237 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() 1317 int minSig = 0; in parseFracSigOption() local [all …]
|
D | number_skeletons.h | 270 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
|
/third_party/icu/icu4c/source/i18n/ |
D | number_mapper.cpp | 92 int32_t minSig = properties.minimumSignificantDigits; in oldToNew() local 99 bool explicitMinMaxSig = minSig != -1 || maxSig != -1; in oldToNew() 141 minSig = minSig < 1 ? 1 : minSig > kMaxIntFracSig ? kMaxIntFracSig : minSig; in oldToNew() 142 maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig in oldToNew() 144 precision = Precision::constructSignificant(minSig, maxSig); in oldToNew() 286 int minSig_ = minSig; in oldToNew()
|
D | number_rounding.cpp | 83 int32_t getDisplayMagnitudeSignificant(const DecimalQuantity &value, int minSig) { in getDisplayMagnitudeSignificant() argument 85 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant() 291 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument 295 settings.fMinSig = static_cast<digits_t>(minSig); in constructSignificant() 305 int32_t minSig, in constructFractionSignificant() argument 310 settings.fMinSig = static_cast<digits_t>(minSig); in constructFractionSignificant()
|
D | number_skeletons.cpp | 1192 int32_t minSig = 0; in parseDigitsStem() local 1196 minSig++; in parseDigitsStem() 1206 maxSig = minSig; in parseDigitsStem() 1216 maxSig = minSig; in parseDigitsStem() 1225 macros.precision = Precision::minSignificantDigits(minSig); 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 1233 appendMultiple(sb, u'@', minSig); in generateDigitsStem() 1237 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem() 1317 int minSig = 0; in parseFracSigOption() local [all …]
|
D | number_skeletons.h | 270 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | PatternStringUtils.java | 96 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() local 122 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | PatternStringUtils.java | 91 int minSig = Math.min(properties.getMinimumSignificantDigits(), dosMax); in propertiesToPatternString() local 118 while (digitsString.length() < minSig) { in propertiesToPatternString()
|
/third_party/node/deps/icu-small/source/i18n/unicode/ |
D | numberformatter.h | 791 static Precision constructSignificant(int32_t minSig, int32_t maxSig); 795 int32_t minSig,
|
/third_party/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 790 static Precision constructSignificant(int32_t minSig, int32_t maxSig); 794 int32_t minSig,
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
D | numberformatter.h | 756 static Precision constructSignificant(int32_t minSig, int32_t maxSig); 760 int32_t minSig,
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DecimalFormat.java | 1600 int minSig = useSignificantDigits ? 1 : -1; in setSignificantDigitsUsed() local 1602 properties.setMinimumSignificantDigits(minSig); in setSignificantDigitsUsed()
|