Home
last modified time | relevance | path

Searched refs:minSig (Results 1 – 25 of 31) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DPrecision.java391 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 …]
DNumberPropertyMapper.java136 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()
DNumberSkeletonImpl.java1123 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/
DPrecision.java437 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 …]
DNumberPropertyMapper.java135 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()
DNumberSkeletonImpl.java1190 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/
Dnumber_mapper.cpp92 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()
Dnumber_rounding.cpp83 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()
Dnumber_skeletons.cpp1186 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 …]
Dnumber_skeletons.h269 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
Dnumber_patternstring.cpp683 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/
Dnumber_mapper.cpp92 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()
Dnumber_rounding.cpp83 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()
Dnumber_skeletons.cpp1192 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 …]
Dnumber_skeletons.h270 void generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode& status);
/third_party/icu/icu4c/source/i18n/
Dnumber_mapper.cpp92 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()
Dnumber_rounding.cpp83 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()
Dnumber_skeletons.cpp1192 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 …]
Dnumber_skeletons.h270 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/
DPatternStringUtils.java96 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/
DPatternStringUtils.java91 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/
Dnumberformatter.h791 static Precision constructSignificant(int32_t minSig, int32_t maxSig);
795 int32_t minSig,
/third_party/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h790 static Precision constructSignificant(int32_t minSig, int32_t maxSig);
794 int32_t minSig,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dnumberformatter.h756 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/
DDecimalFormat.java1600 int minSig = useSignificantDigits ? 1 : -1; in setSignificantDigitsUsed() local
1602 properties.setMinimumSignificantDigits(minSig); in setSignificantDigitsUsed()

12