Lines Matching refs:properties

33     DecimalFormatProperties properties;
34 parseToExistingPropertiesImpl(pattern, properties, ignoreRounding, status);
35 return properties;
44 PatternParser::parseToExistingProperties(const UnicodeString& pattern, DecimalFormatProperties& properties,
46 parseToExistingPropertiesImpl(pattern, properties, ignoreRounding, status);
507 DecimalFormatProperties& properties,
511 // TODO: Only overwrite the properties that "saveToProperties" normally touches?
512 properties.clear();
519 patternInfoToProperties(properties, patternInfo, ignoreRounding, status);
523 PatternParser::patternInfoToProperties(DecimalFormatProperties& properties, ParsedPatternInfo& patternInfo,
545 properties.groupingSize = grouping1;
546 properties.groupingUsed = true;
548 properties.groupingSize = -1;
549 properties.groupingUsed = false;
552 properties.secondaryGroupingSize = grouping2;
554 properties.secondaryGroupingSize = -1;
575 properties.minimumFractionDigits = -1;
576 properties.maximumFractionDigits = -1;
577 properties.roundingIncrement = 0.0;
578 properties.minimumSignificantDigits = positive.integerAtSigns;
579 properties.maximumSignificantDigits = positive.integerAtSigns + positive.integerTrailingHashSigns;
582 properties.minimumFractionDigits = minFrac;
583 properties.maximumFractionDigits = positive.fractionTotal;
584 properties.roundingIncrement = positive.rounding.toDouble();
586 properties.minimumFractionDigits = -1;
587 properties.maximumFractionDigits = -1;
588 properties.roundingIncrement = 0.0;
590 properties.minimumSignificantDigits = -1;
591 properties.maximumSignificantDigits = -1;
594 properties.minimumFractionDigits = minFrac;
595 properties.maximumFractionDigits = positive.fractionTotal;
596 properties.roundingIncrement = 0.0;
598 properties.minimumFractionDigits = -1;
599 properties.maximumFractionDigits = -1;
600 properties.roundingIncrement = 0.0;
602 properties.minimumSignificantDigits = -1;
603 properties.maximumSignificantDigits = -1;
608 properties.decimalSeparatorAlwaysShown = true;
610 properties.decimalSeparatorAlwaysShown = false;
614 properties.currencyAsDecimal = positive.hasCurrencyDecimal;
618 properties.exponentSignAlwaysShown = positive.exponentHasPlusSign;
619 properties.minimumExponentDigits = positive.exponentZeros;
622 properties.minimumIntegerDigits = positive.integerNumerals;
623 properties.maximumIntegerDigits = positive.integerTotal;
626 properties.minimumIntegerDigits = 1;
627 properties.maximumIntegerDigits = -1;
630 properties.exponentSignAlwaysShown = false;
631 properties.minimumExponentDigits = -1;
632 properties.minimumIntegerDigits = minInt;
633 properties.maximumIntegerDigits = -1;
646 properties.formatWidth = paddingWidth;
649 properties.padString = rawPaddingString;
652 properties.padString.setTo(u"'", -1);
654 properties.padString = rawPaddingString;
657 properties.padString = UnicodeString(rawPaddingString, 1, rawPaddingString.length() - 2);
659 properties.padPosition = positive.paddingLocation;
661 properties.formatWidth = -1;
662 properties.padString.setToBogus();
663 properties.padPosition.nullify();
669 properties.positivePrefixPattern = posPrefix;
670 properties.positiveSuffixPattern = posSuffix;
672 properties.negativePrefixPattern = patternInfo.getString(
674 properties.negativeSuffixPattern = patternInfo.getString(
677 properties.negativePrefixPattern.setToBogus();
678 properties.negativeSuffixPattern.setToBogus();
683 properties.magnitudeMultiplier = 2;
685 properties.magnitudeMultiplier = 3;
687 properties.magnitudeMultiplier = 0;
714 UnicodeString PatternStringUtils::propertiesToPatternString(const DecimalFormatProperties& properties,
721 int32_t grouping1 = uprv_max(0, uprv_min(properties.groupingSize, dosMax));
722 int32_t grouping2 = uprv_max(0, uprv_min(properties.secondaryGroupingSize, dosMax));
723 bool useGrouping = properties.groupingUsed;
724 int32_t paddingWidth = uprv_min(properties.formatWidth, dosMax);
725 NullableValue<PadPosition> paddingLocation = properties.padPosition;
726 UnicodeString paddingString = properties.padString;
727 int32_t minInt = uprv_max(0, uprv_min(properties.minimumIntegerDigits, dosMax));
728 int32_t maxInt = uprv_min(properties.maximumIntegerDigits, dosMax);
729 int32_t minFrac = uprv_max(0, uprv_min(properties.minimumFractionDigits, dosMax));
730 int32_t maxFrac = uprv_min(properties.maximumFractionDigits, dosMax);
731 int32_t minSig = uprv_min(properties.minimumSignificantDigits, dosMax);
732 int32_t maxSig = uprv_min(properties.maximumSignificantDigits, dosMax);
733 bool alwaysShowDecimal = properties.decimalSeparatorAlwaysShown;
734 int32_t exponentDigits = uprv_min(properties.minimumExponentDigits, dosMax);
735 bool exponentShowPlusSign = properties.exponentSignAlwaysShown;
737 AutoAffixPatternProvider affixProvider(properties, status);
753 double increment = properties.roundingIncrement;
801 if (properties.currencyAsDecimal) {