Home
last modified time | relevance | path

Searched refs:minSig (Results 1 – 25 of 38) 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.java426 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()
665 final int minSig; field in Precision.SignificantRounderImpl
668 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()
181 minSig = minSig < 1 ? 1 in oldToNew()
182 … : minSig > RoundingUtils.MAX_INT_FRAC_SIG ? RoundingUtils.MAX_INT_FRAC_SIG : minSig; in oldToNew()
184 : maxSig < minSig ? minSig in oldToNew()
187 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew()
331 int minSig_ = minSig; in oldToNew()
342 minSig_ = ((SignificantRounderImpl) rounding_).minSig; in oldToNew()
DNumberSkeletonImpl.java1183 int minSig = 0; in parseDigitsStem() local
1187 minSig++; in parseDigitsStem()
1197 maxSig = minSig; in parseDigitsStem()
1207 maxSig = minSig; in parseDigitsStem()
1214 macros.precision = Precision.minSignificantDigits(minSig); 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
1221 appendMultiple(sb, '@', minSig); in generateDigitsStem()
1225 appendMultiple(sb, '#', maxSig - minSig); in generateDigitsStem()
1301 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);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_mapper.cpp102 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()
Dnumber_rounding.cpp47 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()
Dnumber_skeletons.cpp1021 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 …]
Dnumber_skeletons.h234 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()
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);
/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()
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.cpp86 int32_t getDisplayMagnitudeSignificant(const DecimalQuantity &value, int minSig) { in getDisplayMagnitudeSignificant() argument
88 return magnitude - minSig + 1; in getDisplayMagnitudeSignificant()
305 Precision Precision::constructSignificant(int32_t minSig, int32_t maxSig) { in constructSignificant() argument
309 settings.fMinSig = static_cast<digits_t>(minSig); in constructSignificant()
319 int32_t minSig, in constructFractionSignificant() argument
323 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
117 while (digitsString.length() < minSig) { in propertiesToPatternString()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Dnumberformatter.h782 static Precision constructSignificant(int32_t minSig, int32_t maxSig);
785 constructFractionSignificant(const FractionPrecision &base, int32_t minSig, int32_t maxSig);

12