Lines Matching full:properties

32     DecimalFormatProperties properties;  in parseToProperties()  local
33 parseToExistingPropertiesImpl(pattern, properties, ignoreRounding, status); in parseToProperties()
34 return properties; in parseToProperties()
43 …arser::parseToExistingProperties(const UnicodeString& pattern, DecimalFormatProperties& properties, in parseToExistingProperties() argument
45 parseToExistingPropertiesImpl(pattern, properties, ignoreRounding, status); in parseToExistingProperties()
461 DecimalFormatProperties& properties, in parseToExistingPropertiesImpl() argument
465 // TODO: Only overwrite the properties that "saveToProperties" normally touches? in parseToExistingPropertiesImpl()
466 properties.clear(); in parseToExistingPropertiesImpl()
473 patternInfoToProperties(properties, patternInfo, ignoreRounding, status); in parseToExistingPropertiesImpl()
477 PatternParser::patternInfoToProperties(DecimalFormatProperties& properties, ParsedPatternInfo& patt… in patternInfoToProperties() argument
479 // Translate from PatternParseResult to Properties. in patternInfoToProperties()
499 properties.groupingSize = grouping1; in patternInfoToProperties()
500 properties.groupingUsed = true; in patternInfoToProperties()
502 properties.groupingSize = -1; in patternInfoToProperties()
503 properties.groupingUsed = false; in patternInfoToProperties()
506 properties.secondaryGroupingSize = grouping2; in patternInfoToProperties()
508 properties.secondaryGroupingSize = -1; in patternInfoToProperties()
529 properties.minimumFractionDigits = -1; in patternInfoToProperties()
530 properties.maximumFractionDigits = -1; in patternInfoToProperties()
531 properties.roundingIncrement = 0.0; in patternInfoToProperties()
532 properties.minimumSignificantDigits = positive.integerAtSigns; in patternInfoToProperties()
533properties.maximumSignificantDigits = positive.integerAtSigns + positive.integerTrailingHashSigns; in patternInfoToProperties()
536 properties.minimumFractionDigits = minFrac; in patternInfoToProperties()
537 properties.maximumFractionDigits = positive.fractionTotal; in patternInfoToProperties()
538 properties.roundingIncrement = positive.rounding.toDouble(); in patternInfoToProperties()
540 properties.minimumFractionDigits = -1; in patternInfoToProperties()
541 properties.maximumFractionDigits = -1; in patternInfoToProperties()
542 properties.roundingIncrement = 0.0; in patternInfoToProperties()
544 properties.minimumSignificantDigits = -1; in patternInfoToProperties()
545 properties.maximumSignificantDigits = -1; in patternInfoToProperties()
548 properties.minimumFractionDigits = minFrac; in patternInfoToProperties()
549 properties.maximumFractionDigits = positive.fractionTotal; in patternInfoToProperties()
550 properties.roundingIncrement = 0.0; in patternInfoToProperties()
552 properties.minimumFractionDigits = -1; in patternInfoToProperties()
553 properties.maximumFractionDigits = -1; in patternInfoToProperties()
554 properties.roundingIncrement = 0.0; in patternInfoToProperties()
556 properties.minimumSignificantDigits = -1; in patternInfoToProperties()
557 properties.maximumSignificantDigits = -1; in patternInfoToProperties()
562 properties.decimalSeparatorAlwaysShown = true; in patternInfoToProperties()
564 properties.decimalSeparatorAlwaysShown = false; in patternInfoToProperties()
569 properties.exponentSignAlwaysShown = positive.exponentHasPlusSign; in patternInfoToProperties()
570 properties.minimumExponentDigits = positive.exponentZeros; in patternInfoToProperties()
573 properties.minimumIntegerDigits = positive.integerNumerals; in patternInfoToProperties()
574 properties.maximumIntegerDigits = positive.integerTotal; in patternInfoToProperties()
577 properties.minimumIntegerDigits = 1; in patternInfoToProperties()
578 properties.maximumIntegerDigits = -1; in patternInfoToProperties()
581 properties.exponentSignAlwaysShown = false; in patternInfoToProperties()
582 properties.minimumExponentDigits = -1; in patternInfoToProperties()
583 properties.minimumIntegerDigits = minInt; in patternInfoToProperties()
584 properties.maximumIntegerDigits = -1; in patternInfoToProperties()
597 properties.formatWidth = paddingWidth; in patternInfoToProperties()
600 properties.padString = rawPaddingString; in patternInfoToProperties()
603 properties.padString.setTo(u"'", -1); in patternInfoToProperties()
605 properties.padString = rawPaddingString; in patternInfoToProperties()
608properties.padString = UnicodeString(rawPaddingString, 1, rawPaddingString.length() - 2); in patternInfoToProperties()
610 properties.padPosition = positive.paddingLocation; in patternInfoToProperties()
612 properties.formatWidth = -1; in patternInfoToProperties()
613 properties.padString.setToBogus(); in patternInfoToProperties()
614 properties.padPosition.nullify(); in patternInfoToProperties()
620 properties.positivePrefixPattern = posPrefix; in patternInfoToProperties()
621 properties.positiveSuffixPattern = posSuffix; in patternInfoToProperties()
623 properties.negativePrefixPattern = patternInfo.getString( in patternInfoToProperties()
625 properties.negativeSuffixPattern = patternInfo.getString( in patternInfoToProperties()
628 properties.negativePrefixPattern.setToBogus(); in patternInfoToProperties()
629 properties.negativeSuffixPattern.setToBogus(); in patternInfoToProperties()
634 properties.magnitudeMultiplier = 2; in patternInfoToProperties()
636 properties.magnitudeMultiplier = 3; in patternInfoToProperties()
638 properties.magnitudeMultiplier = 0; in patternInfoToProperties()
646 …codeString PatternStringUtils::propertiesToPatternString(const DecimalFormatProperties& properties, in propertiesToPatternString() argument
653 int groupingSize = uprv_min(properties.secondaryGroupingSize, dosMax); in propertiesToPatternString()
654 int firstGroupingSize = uprv_min(properties.groupingSize, dosMax); in propertiesToPatternString()
655 int paddingWidth = uprv_min(properties.formatWidth, dosMax); in propertiesToPatternString()
656 NullableValue<PadPosition> paddingLocation = properties.padPosition; in propertiesToPatternString()
657 UnicodeString paddingString = properties.padString; in propertiesToPatternString()
658 int minInt = uprv_max(uprv_min(properties.minimumIntegerDigits, dosMax), 0); in propertiesToPatternString()
659 int maxInt = uprv_min(properties.maximumIntegerDigits, dosMax); in propertiesToPatternString()
660 int minFrac = uprv_max(uprv_min(properties.minimumFractionDigits, dosMax), 0); in propertiesToPatternString()
661 int maxFrac = uprv_min(properties.maximumFractionDigits, dosMax); in propertiesToPatternString()
662 int minSig = uprv_min(properties.minimumSignificantDigits, dosMax); in propertiesToPatternString()
663 int maxSig = uprv_min(properties.maximumSignificantDigits, dosMax); in propertiesToPatternString()
664 bool alwaysShowDecimal = properties.decimalSeparatorAlwaysShown; in propertiesToPatternString()
665 int exponentDigits = uprv_min(properties.minimumExponentDigits, dosMax); in propertiesToPatternString()
666 bool exponentShowPlusSign = properties.exponentSignAlwaysShown; in propertiesToPatternString()
667 UnicodeString pp = properties.positivePrefix; in propertiesToPatternString()
668 UnicodeString ppp = properties.positivePrefixPattern; in propertiesToPatternString()
669 UnicodeString ps = properties.positiveSuffix; in propertiesToPatternString()
670 UnicodeString psp = properties.positiveSuffixPattern; in propertiesToPatternString()
671 UnicodeString np = properties.negativePrefix; in propertiesToPatternString()
672 UnicodeString npp = properties.negativePrefixPattern; in propertiesToPatternString()
673 UnicodeString ns = properties.negativeSuffix; in propertiesToPatternString()
674 UnicodeString nsp = properties.negativeSuffixPattern; in propertiesToPatternString()
706 double roundingInterval = properties.roundingIncrement; in propertiesToPatternString()