Lines Matching full:properties
93 fields->properties->currencyPluralInfo.fPtr.adoptInstead(cpi.orphan()); in DecimalFormat()
108 fields->properties.adoptInsteadAndCheckErrorCode(new DecimalFormatProperties(), status); in DecimalFormat()
120 if (value == fields->properties->parseAllInput) { return; } in setParseAllInput()
121 fields->properties->parseAllInput = value; in setParseAllInput()
350 if (UBOOL_TO_BOOL(enabled) == fields->properties->groupingUsed) { return; } in setGroupingUsed()
352 fields->properties->groupingUsed = enabled; in setGroupingUsed()
357 if (UBOOL_TO_BOOL(value) == fields->properties->parseIntegerOnly) { return; } in setParseIntegerOnly()
359 fields->properties->parseIntegerOnly = value; in setParseIntegerOnly()
365 …if (!fields->properties->parseMode.isNull() && mode == fields->properties->parseMode.getNoError())… in setLenient()
367 fields->properties->parseMode = mode; in setLenient()
394 fields->properties.adoptInstead(new DecimalFormatProperties(*source.fields->properties)); in DecimalFormat()
397 …if (fields->properties == nullptr || fields->symbols == nullptr || fields->exportedProperties == n… in DecimalFormat()
404 *fields->properties = *rhs.fields->properties; in operator =()
426 …return *fields->properties == *otherDF->fields->properties && *fields->symbols == *otherDF->fields… in operator ==()
561 …// TODO: Do we need to check for fImpl->properties->parseAllInput (UCONFIG_HAVE_PARSEALLINPUT) her… in parse()
583 …// TODO: Do we need to check for fImpl->properties->parseAllInput (UCONFIG_HAVE_PARSEALLINPUT) her… in parseCurrency()
613 return fields->properties->currencyPluralInfo.fPtr.getAlias(); in getCurrencyPluralInfo()
617 fields->properties->currencyPluralInfo.fPtr.adoptInstead(toAdopt); in adoptCurrencyPluralInfo()
622 if (fields->properties->currencyPluralInfo.fPtr.isNull()) { in setCurrencyPluralInfo()
623 fields->properties->currencyPluralInfo.fPtr.adoptInstead(info.clone()); in setCurrencyPluralInfo()
625 *fields->properties->currencyPluralInfo.fPtr = info; // copy-assignment operator in setCurrencyPluralInfo()
637 if (newValue == fields->properties->positivePrefix) { return; } in setPositivePrefix()
638 fields->properties->positivePrefix = newValue; in setPositivePrefix()
649 if (newValue == fields->properties->negativePrefix) { return; } in setNegativePrefix()
650 fields->properties->negativePrefix = newValue; in setNegativePrefix()
661 if (newValue == fields->properties->positiveSuffix) { return; } in setPositiveSuffix()
662 fields->properties->positiveSuffix = newValue; in setPositiveSuffix()
673 if (newValue == fields->properties->negativeSuffix) { return; } in setNegativeSuffix()
674 fields->properties->negativeSuffix = newValue; in setNegativeSuffix()
679 return fields->properties->signAlwaysShown; in isSignAlwaysShown()
683 if (UBOOL_TO_BOOL(value) == fields->properties->signAlwaysShown) { return; } in setSignAlwaysShown()
684 fields->properties->signAlwaysShown = value; in setSignAlwaysShown()
689 if (fields->properties->multiplier != 1) { in getMultiplier()
690 return fields->properties->multiplier; in getMultiplier()
691 } else if (fields->properties->magnitudeMultiplier != 0) { in getMultiplier()
692 return static_cast<int32_t>(uprv_pow10(fields->properties->magnitudeMultiplier)); in getMultiplier()
716 fields->properties->magnitudeMultiplier = delta; in setMultiplier()
717 fields->properties->multiplier = 1; in setMultiplier()
719 fields->properties->magnitudeMultiplier = 0; in setMultiplier()
720 fields->properties->multiplier = multiplier; in setMultiplier()
726 return fields->properties->multiplierScale; in getMultiplierScale()
730 if (newValue == fields->properties->multiplierScale) { return; } in setMultiplierScale()
731 fields->properties->multiplierScale = newValue; in setMultiplierScale()
740 if (newValue == fields->properties->roundingIncrement) { return; } in setRoundingIncrement()
741 fields->properties->roundingIncrement = newValue; in setRoundingIncrement()
752 …if (!fields->properties->roundingMode.isNull() && uRoundingMode == fields->properties->roundingMod… in setRoundingMode()
756 fields->properties->roundingMode = uRoundingMode; in setRoundingMode()
761 return fields->properties->formatWidth; in getFormatWidth()
765 if (width == fields->properties->formatWidth) { return; } in setFormatWidth()
766 fields->properties->formatWidth = width; in setFormatWidth()
771 if (fields->properties->padString.isBogus()) { in getPadCharacterString()
775 return fields->properties->padString; in getPadCharacterString()
780 if (padChar == fields->properties->padString) { return; } in setPadCharacter()
782 fields->properties->padString = UnicodeString(padChar.char32At(0)); in setPadCharacter()
784 fields->properties->padString.setToBogus(); in setPadCharacter()
790 if (fields->properties->padPosition.isNull()) { in getPadPosition()
794 return static_cast<EPadPosition>(fields->properties->padPosition.getNoError()); in getPadPosition()
800 …if (!fields->properties->padPosition.isNull() && uPadPos == fields->properties->padPosition.getNoE… in setPadPosition()
803 fields->properties->padPosition = uPadPos; in setPadPosition()
808 return fields->properties->minimumExponentDigits != -1; in isScientificNotation()
813 if (fields->properties->minimumExponentDigits == minExp) { return; } in setScientificNotation()
815 fields->properties->minimumExponentDigits = 1; in setScientificNotation()
817 fields->properties->minimumExponentDigits = -1; in setScientificNotation()
823 return static_cast<int8_t>(fields->properties->minimumExponentDigits); in getMinimumExponentDigits()
827 if (minExpDig == fields->properties->minimumExponentDigits) { return; } in setMinimumExponentDigits()
828 fields->properties->minimumExponentDigits = minExpDig; in setMinimumExponentDigits()
833 return fields->properties->exponentSignAlwaysShown; in isExponentSignAlwaysShown()
837 if (UBOOL_TO_BOOL(expSignAlways) == fields->properties->exponentSignAlwaysShown) { return; } in setExponentSignAlwaysShown()
838 fields->properties->exponentSignAlwaysShown = expSignAlways; in setExponentSignAlwaysShown()
843 if (fields->properties->groupingSize < 0) { in getGroupingSize()
846 return fields->properties->groupingSize; in getGroupingSize()
850 if (newValue == fields->properties->groupingSize) { return; } in setGroupingSize()
851 fields->properties->groupingSize = newValue; in setGroupingSize()
856 int grouping2 = fields->properties->secondaryGroupingSize; in getSecondaryGroupingSize()
864 if (newValue == fields->properties->secondaryGroupingSize) { return; } in setSecondaryGroupingSize()
865 fields->properties->secondaryGroupingSize = newValue; in setSecondaryGroupingSize()
870 return fields->properties->minimumGroupingDigits; in getMinimumGroupingDigits()
874 if (newValue == fields->properties->minimumGroupingDigits) { return; } in setMinimumGroupingDigits()
875 fields->properties->minimumGroupingDigits = newValue; in setMinimumGroupingDigits()
880 return fields->properties->decimalSeparatorAlwaysShown; in isDecimalSeparatorAlwaysShown()
884 if (UBOOL_TO_BOOL(newValue) == fields->properties->decimalSeparatorAlwaysShown) { return; } in setDecimalSeparatorAlwaysShown()
885 fields->properties->decimalSeparatorAlwaysShown = newValue; in setDecimalSeparatorAlwaysShown()
890 return fields->properties->decimalPatternMatchRequired; in isDecimalPatternMatchRequired()
894 if (UBOOL_TO_BOOL(newValue) == fields->properties->decimalPatternMatchRequired) { return; } in setDecimalPatternMatchRequired()
895 fields->properties->decimalPatternMatchRequired = newValue; in setDecimalPatternMatchRequired()
900 return fields->properties->parseNoExponent; in isParseNoExponent()
904 if (UBOOL_TO_BOOL(value) == fields->properties->parseNoExponent) { return; } in setParseNoExponent()
905 fields->properties->parseNoExponent = value; in setParseNoExponent()
910 return fields->properties->parseCaseSensitive; in isParseCaseSensitive()
914 if (UBOOL_TO_BOOL(value) == fields->properties->parseCaseSensitive) { return; } in setParseCaseSensitive()
915 fields->properties->parseCaseSensitive = value; in setParseCaseSensitive()
920 return fields->properties->formatFailIfMoreThanMaxDigits; in isFormatFailIfMoreThanMaxDigits()
924 if (UBOOL_TO_BOOL(value) == fields->properties->formatFailIfMoreThanMaxDigits) { return; } in setFormatFailIfMoreThanMaxDigits()
925 fields->properties->formatFailIfMoreThanMaxDigits = value; in setFormatFailIfMoreThanMaxDigits()
930 // Pull some properties from exportedProperties and others from properties in toPattern()
931 // to keep affix patterns intact. In particular, pull rounding properties in toPattern()
935 DecimalFormatProperties tprops(*fields->properties); in toPattern()
983 if (newValue == fields->properties->maximumIntegerDigits) { return; } in setMaximumIntegerDigits()
985 int32_t min = fields->properties->minimumIntegerDigits; in setMaximumIntegerDigits()
987 fields->properties->minimumIntegerDigits = newValue; in setMaximumIntegerDigits()
989 fields->properties->maximumIntegerDigits = newValue; in setMaximumIntegerDigits()
994 if (newValue == fields->properties->minimumIntegerDigits) { return; } in setMinimumIntegerDigits()
996 int32_t max = fields->properties->maximumIntegerDigits; in setMinimumIntegerDigits()
998 fields->properties->maximumIntegerDigits = newValue; in setMinimumIntegerDigits()
1000 fields->properties->minimumIntegerDigits = newValue; in setMinimumIntegerDigits()
1005 if (newValue == fields->properties->maximumFractionDigits) { return; } in setMaximumFractionDigits()
1007 int32_t min = fields->properties->minimumFractionDigits; in setMaximumFractionDigits()
1009 fields->properties->minimumFractionDigits = newValue; in setMaximumFractionDigits()
1011 fields->properties->maximumFractionDigits = newValue; in setMaximumFractionDigits()
1016 if (newValue == fields->properties->minimumFractionDigits) { return; } in setMinimumFractionDigits()
1018 int32_t max = fields->properties->maximumFractionDigits; in setMinimumFractionDigits()
1020 fields->properties->maximumFractionDigits = newValue; in setMinimumFractionDigits()
1022 fields->properties->minimumFractionDigits = newValue; in setMinimumFractionDigits()
1035 if (value == fields->properties->minimumSignificantDigits) { return; } in setMinimumSignificantDigits()
1036 int32_t max = fields->properties->maximumSignificantDigits; in setMinimumSignificantDigits()
1038 fields->properties->maximumSignificantDigits = value; in setMinimumSignificantDigits()
1040 fields->properties->minimumSignificantDigits = value; in setMinimumSignificantDigits()
1045 if (value == fields->properties->maximumSignificantDigits) { return; } in setMaximumSignificantDigits()
1046 int32_t min = fields->properties->minimumSignificantDigits; in setMaximumSignificantDigits()
1048 fields->properties->minimumSignificantDigits = value; in setMaximumSignificantDigits()
1050 fields->properties->maximumSignificantDigits = value; in setMaximumSignificantDigits()
1055 …return fields->properties->minimumSignificantDigits != -1 || fields->properties->maximumSignifican… in areSignificantDigitsUsed()
1061 if (fields->properties->minimumSignificantDigits != -1 || in setSignificantDigitsUsed()
1062 fields->properties->maximumSignificantDigits != -1) { in setSignificantDigitsUsed()
1066 if (fields->properties->minimumSignificantDigits == -1 && in setSignificantDigitsUsed()
1067 fields->properties->maximumSignificantDigits == -1) { in setSignificantDigitsUsed()
1073 fields->properties->minimumSignificantDigits = minSig; in setSignificantDigitsUsed()
1074 fields->properties->maximumSignificantDigits = maxSig; in setSignificantDigitsUsed()
1081 …if (!fields->properties->currency.isNull() && fields->properties->currency.getNoError() == currenc… in setCurrency()
1085 fields->properties->currency = currencyUnit; in setCurrency()
1099 …if (!fields->properties->currencyUsage.isNull() && newUsage == fields->properties->currencyUsage.g… in setCurrencyUsage()
1102 fields->properties->currencyUsage = newUsage; in setCurrencyUsage()
1109 if (fields->properties->currencyUsage.isNull()) { in getCurrencyUsage()
1112 return fields->properties->currencyUsage.getNoError(); in getCurrencyUsage()
1150 …*fields->properties, *fields->symbols, fields->warehouse, *fields->exportedProperties, status).loc… in touch()
1166 …// fImpl->properties, not fields->exportedProperties, since this information comes from the patter… in touch()
1167 NumberFormat::setGroupingUsed(fields->properties->groupingUsed); in touch()
1180 …PatternParser::parseToExistingProperties(pattern, *fields->properties, actualIgnoreRounding, stat… in setPropertiesFromPattern()
1199 …auto* temp = NumberParserImpl::createParserFromProperties(*fields->properties, *fields->symbols, f… in getParser()
1232 …auto* temp = NumberParserImpl::createParserFromProperties(*fields->properties, *fields->symbols, t… in getCurrencyParser()
1278 // Check the majority of properties: in setupFastFormat()
1279 if (!fields->properties->equalsDefaultExceptFastFormat()) { in setupFastFormat()
1285 // Now check the remaining properties. in setupFastFormat()
1287 UBool trivialPP = fields->properties->positivePrefixPattern.isEmpty(); in setupFastFormat()
1288 UBool trivialPS = fields->properties->positiveSuffixPattern.isEmpty(); in setupFastFormat()
1289 UBool trivialNP = fields->properties->negativePrefixPattern.isBogus() || ( in setupFastFormat()
1290 fields->properties->negativePrefixPattern.length() == 1 && in setupFastFormat()
1291 fields->properties->negativePrefixPattern.charAt(0) == u'-'); in setupFastFormat()
1292 UBool trivialNS = fields->properties->negativeSuffixPattern.isEmpty(); in setupFastFormat()
1300 bool groupingUsed = fields->properties->groupingUsed; in setupFastFormat()
1301 int32_t groupingSize = fields->properties->groupingSize; in setupFastFormat()