Home | History | Annotate | Download | only in i18n

Lines Matching refs:newValue

127 DecimalFormat::setAttribute(UNumberFormatAttribute attr, int32_t newValue, UErrorCode& status) {
132 setLenient(newValue != 0);
136 setParseIntegerOnly(newValue != 0);
140 setGroupingUsed(newValue != 0);
144 setDecimalSeparatorAlwaysShown(newValue != 0);
148 setMaximumIntegerDigits(newValue);
152 setMinimumIntegerDigits(newValue);
156 setMinimumIntegerDigits(newValue);
157 setMaximumIntegerDigits(newValue);
161 setMaximumFractionDigits(newValue);
165 setMinimumFractionDigits(newValue);
169 setMinimumFractionDigits(newValue);
170 setMaximumFractionDigits(newValue);
174 setSignificantDigitsUsed(newValue != 0);
178 setMaximumSignificantDigits(newValue);
182 setMinimumSignificantDigits(newValue);
186 setMultiplier(newValue);
190 setMultiplierScale(newValue);
194 setGroupingSize(newValue);
198 setRoundingMode((DecimalFormat::ERoundingMode) newValue);
202 setFormatWidth(newValue);
207 setPadPosition((DecimalFormat::EPadPosition) newValue);
211 setSecondaryGroupingSize(newValue);
216 setParseAllInput((UNumberFormatAttributeValue) newValue);
221 setParseNoExponent((UBool) newValue);
225 setDecimalPatternMatchRequired((UBool) newValue);
229 setCurrencyUsage((UCurrencyUsage) newValue, &status);
233 setMinimumGroupingDigits(newValue);
237 setParseCaseSensitive(static_cast<UBool>(newValue));
241 setSignAlwaysShown(static_cast<UBool>(newValue));
245 setFormatFailIfMoreThanMaxDigits(static_cast<UBool>(newValue));
636 void DecimalFormat::setPositivePrefix(const UnicodeString& newValue) {
637 if (newValue == fields->properties->positivePrefix) { return; }
638 fields->properties->positivePrefix = newValue;
648 void DecimalFormat::setNegativePrefix(const UnicodeString& newValue) {
649 if (newValue == fields->properties->negativePrefix) { return; }
650 fields->properties->negativePrefix = newValue;
660 void DecimalFormat::setPositiveSuffix(const UnicodeString& newValue) {
661 if (newValue == fields->properties->positiveSuffix) { return; }
662 fields->properties->positiveSuffix = newValue;
672 void DecimalFormat::setNegativeSuffix(const UnicodeString& newValue) {
673 if (newValue == fields->properties->negativeSuffix) { return; }
674 fields->properties->negativeSuffix = newValue;
729 void DecimalFormat::setMultiplierScale(int32_t newValue) {
730 if (newValue == fields->properties->multiplierScale) { return; }
731 fields->properties->multiplierScale = newValue;
739 void DecimalFormat::setRoundingIncrement(double newValue) {
740 if (newValue == fields->properties->roundingIncrement) { return; }
741 fields->properties->roundingIncrement = newValue;
849 void DecimalFormat::setGroupingSize(int32_t newValue) {
850 if (newValue == fields->properties->groupingSize) { return; }
851 fields->properties->groupingSize = newValue;
863 void DecimalFormat::setSecondaryGroupingSize(int32_t newValue) {
864 if (newValue == fields->properties->secondaryGroupingSize) { return; }
865 fields->properties->secondaryGroupingSize = newValue;
873 void DecimalFormat::setMinimumGroupingDigits(int32_t newValue) {
874 if (newValue == fields->properties->minimumGroupingDigits) { return; }
875 fields->properties->minimumGroupingDigits = newValue;
883 void DecimalFormat::setDecimalSeparatorAlwaysShown(UBool newValue) {
884 if (UBOOL_TO_BOOL(newValue) == fields->properties->decimalSeparatorAlwaysShown) { return; }
885 fields->properties->decimalSeparatorAlwaysShown = newValue;
893 void DecimalFormat::setDecimalPatternMatchRequired(UBool newValue) {
894 if (UBOOL_TO_BOOL(newValue) == fields->properties->decimalPatternMatchRequired) { return; }
895 fields->properties->decimalPatternMatchRequired = newValue;
982 void DecimalFormat::setMaximumIntegerDigits(int32_t newValue) {
983 if (newValue == fields->properties->maximumIntegerDigits) { return; }
986 if (min >= 0 && min > newValue) {
987 fields->properties->minimumIntegerDigits = newValue;
989 fields->properties->maximumIntegerDigits = newValue;
993 void DecimalFormat::setMinimumIntegerDigits(int32_t newValue) {
994 if (newValue == fields->properties->minimumIntegerDigits) { return; }
997 if (max >= 0 && max < newValue) {
998 fields->properties->maximumIntegerDigits = newValue;
1000 fields->properties->minimumIntegerDigits = newValue;
1004 void DecimalFormat::setMaximumFractionDigits(int32_t newValue) {
1005 if (newValue == fields->properties->maximumFractionDigits) { return; }
1008 if (min >= 0 && min > newValue) {
1009 fields->properties->minimumFractionDigits = newValue;
1011 fields->properties->maximumFractionDigits = newValue;
1015 void DecimalFormat::setMinimumFractionDigits(int32_t newValue) {
1016 if (newValue == fields->properties->minimumFractionDigits) { return; }
1019 if (max >= 0 && max < newValue) {
1020 fields->properties->maximumFractionDigits = newValue;
1022 fields->properties->minimumFractionDigits = newValue;