Lines Matching refs:newValue
136 DecimalFormat::setAttribute(UNumberFormatAttribute attr, int32_t newValue, UErrorCode& status) { in setAttribute() argument
147 setLenient(newValue != 0); in setAttribute()
151 setParseIntegerOnly(newValue != 0); in setAttribute()
155 setGroupingUsed(newValue != 0); in setAttribute()
159 setDecimalSeparatorAlwaysShown(newValue != 0); in setAttribute()
163 setMaximumIntegerDigits(newValue); in setAttribute()
167 setMinimumIntegerDigits(newValue); in setAttribute()
171 setMinimumIntegerDigits(newValue); in setAttribute()
172 setMaximumIntegerDigits(newValue); in setAttribute()
176 setMaximumFractionDigits(newValue); in setAttribute()
180 setMinimumFractionDigits(newValue); in setAttribute()
184 setMinimumFractionDigits(newValue); in setAttribute()
185 setMaximumFractionDigits(newValue); in setAttribute()
189 setSignificantDigitsUsed(newValue != 0); in setAttribute()
193 setMaximumSignificantDigits(newValue); in setAttribute()
197 setMinimumSignificantDigits(newValue); in setAttribute()
201 setMultiplier(newValue); in setAttribute()
205 setMultiplierScale(newValue); in setAttribute()
209 setGroupingSize(newValue); in setAttribute()
213 setRoundingMode((DecimalFormat::ERoundingMode) newValue); in setAttribute()
217 setFormatWidth(newValue); in setAttribute()
222 setPadPosition((DecimalFormat::EPadPosition) newValue); in setAttribute()
226 setSecondaryGroupingSize(newValue); in setAttribute()
231 setParseAllInput((UNumberFormatAttributeValue) newValue); in setAttribute()
236 setParseNoExponent((UBool) newValue); in setAttribute()
240 setDecimalPatternMatchRequired((UBool) newValue); in setAttribute()
244 setCurrencyUsage((UCurrencyUsage) newValue, &status); in setAttribute()
248 setMinimumGroupingDigits(newValue); in setAttribute()
252 setParseCaseSensitive(static_cast<UBool>(newValue)); in setAttribute()
256 setSignAlwaysShown(static_cast<UBool>(newValue)); in setAttribute()
260 setFormatFailIfMoreThanMaxDigits(static_cast<UBool>(newValue)); in setAttribute()
872 void DecimalFormat::setPositivePrefix(const UnicodeString& newValue) { in setPositivePrefix() argument
876 if (newValue == fields->properties.positivePrefix) { return; } in setPositivePrefix()
877 fields->properties.positivePrefix = newValue; in setPositivePrefix()
892 void DecimalFormat::setNegativePrefix(const UnicodeString& newValue) { in setNegativePrefix() argument
896 if (newValue == fields->properties.negativePrefix) { return; } in setNegativePrefix()
897 fields->properties.negativePrefix = newValue; in setNegativePrefix()
912 void DecimalFormat::setPositiveSuffix(const UnicodeString& newValue) { in setPositiveSuffix() argument
916 if (newValue == fields->properties.positiveSuffix) { return; } in setPositiveSuffix()
917 fields->properties.positiveSuffix = newValue; in setPositiveSuffix()
932 void DecimalFormat::setNegativeSuffix(const UnicodeString& newValue) { in setNegativeSuffix() argument
936 if (newValue == fields->properties.negativeSuffix) { return; } in setNegativeSuffix()
937 fields->properties.negativeSuffix = newValue; in setNegativeSuffix()
1013 void DecimalFormat::setMultiplierScale(int32_t newValue) { in setMultiplierScale() argument
1015 if (newValue == fields->properties.multiplierScale) { return; } in setMultiplierScale()
1016 fields->properties.multiplierScale = newValue; in setMultiplierScale()
1029 void DecimalFormat::setRoundingIncrement(double newValue) { in setRoundingIncrement() argument
1031 if (newValue == fields->properties.roundingIncrement) { return; } in setRoundingIncrement()
1032 fields->properties.roundingIncrement = newValue; in setRoundingIncrement()
1180 void DecimalFormat::setGroupingSize(int32_t newValue) { in setGroupingSize() argument
1182 if (newValue == fields->properties.groupingSize) { return; } in setGroupingSize()
1183 fields->properties.groupingSize = newValue; in setGroupingSize()
1202 void DecimalFormat::setSecondaryGroupingSize(int32_t newValue) { in setSecondaryGroupingSize() argument
1204 if (newValue == fields->properties.secondaryGroupingSize) { return; } in setSecondaryGroupingSize()
1205 fields->properties.secondaryGroupingSize = newValue; in setSecondaryGroupingSize()
1218 void DecimalFormat::setMinimumGroupingDigits(int32_t newValue) { in setMinimumGroupingDigits() argument
1220 if (newValue == fields->properties.minimumGroupingDigits) { return; } in setMinimumGroupingDigits()
1221 fields->properties.minimumGroupingDigits = newValue; in setMinimumGroupingDigits()
1234 void DecimalFormat::setDecimalSeparatorAlwaysShown(UBool newValue) { in setDecimalSeparatorAlwaysShown() argument
1236 if (UBOOL_TO_BOOL(newValue) == fields->properties.decimalSeparatorAlwaysShown) { return; } in setDecimalSeparatorAlwaysShown()
1237 fields->properties.decimalSeparatorAlwaysShown = newValue; in setDecimalSeparatorAlwaysShown()
1250 void DecimalFormat::setDecimalPatternMatchRequired(UBool newValue) { in setDecimalPatternMatchRequired() argument
1252 if (UBOOL_TO_BOOL(newValue) == fields->properties.decimalPatternMatchRequired) { return; } in setDecimalPatternMatchRequired()
1253 fields->properties.decimalPatternMatchRequired = newValue; in setDecimalPatternMatchRequired()
1382 void DecimalFormat::setMaximumIntegerDigits(int32_t newValue) { in setMaximumIntegerDigits() argument
1384 if (newValue == fields->properties.maximumIntegerDigits) { return; } in setMaximumIntegerDigits()
1387 if (min >= 0 && min > newValue) { in setMaximumIntegerDigits()
1388 fields->properties.minimumIntegerDigits = newValue; in setMaximumIntegerDigits()
1390 fields->properties.maximumIntegerDigits = newValue; in setMaximumIntegerDigits()
1394 void DecimalFormat::setMinimumIntegerDigits(int32_t newValue) { in setMinimumIntegerDigits() argument
1396 if (newValue == fields->properties.minimumIntegerDigits) { return; } in setMinimumIntegerDigits()
1399 if (max >= 0 && max < newValue) { in setMinimumIntegerDigits()
1400 fields->properties.maximumIntegerDigits = newValue; in setMinimumIntegerDigits()
1402 fields->properties.minimumIntegerDigits = newValue; in setMinimumIntegerDigits()
1406 void DecimalFormat::setMaximumFractionDigits(int32_t newValue) { in setMaximumFractionDigits() argument
1408 if (newValue == fields->properties.maximumFractionDigits) { return; } in setMaximumFractionDigits()
1410 if (newValue > kMaxIntFracSig) { in setMaximumFractionDigits()
1411 newValue = kMaxIntFracSig; in setMaximumFractionDigits()
1415 if (min >= 0 && min > newValue) { in setMaximumFractionDigits()
1416 fields->properties.minimumFractionDigits = newValue; in setMaximumFractionDigits()
1418 fields->properties.maximumFractionDigits = newValue; in setMaximumFractionDigits()
1422 void DecimalFormat::setMinimumFractionDigits(int32_t newValue) { in setMinimumFractionDigits() argument
1424 if (newValue == fields->properties.minimumFractionDigits) { return; } in setMinimumFractionDigits()
1427 if (max >= 0 && max < newValue) { in setMinimumFractionDigits()
1428 fields->properties.maximumFractionDigits = newValue; in setMinimumFractionDigits()
1430 fields->properties.minimumFractionDigits = newValue; in setMinimumFractionDigits()