Lines Matching full:properties

23 UnlocalizedNumberFormatter NumberPropertyMapper::create(const DecimalFormatProperties& properties,  in create()  argument
27 … return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status)); in create()
30 UnlocalizedNumberFormatter NumberPropertyMapper::create(const DecimalFormatProperties& properties, in create() argument
37 properties, symbols, warehouse, &exportedProperties, status)); in create()
40 MacroProps NumberPropertyMapper::oldToNew(const DecimalFormatProperties& properties, in oldToNew() argument
58 if (!properties.currencyPluralInfo.fPtr.isNull()) { in oldToNew()
59 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules(); in oldToNew()
67 if (properties.currencyPluralInfo.fPtr.isNull()) { in oldToNew()
69 warehouse.propertiesAPP.setTo(properties, status); in oldToNew()
72 … warehouse.currencyPluralInfoAPP.setTo(*properties.currencyPluralInfo.fPtr, properties, status); in oldToNew()
83 !properties.currency.isNull() || !properties.currencyPluralInfo.fPtr.isNull() || in oldToNew()
84 !properties.currencyUsage.isNull() || affixProvider->hasCurrencySign()); in oldToNew()
85 CurrencyUnit currency = resolveCurrency(properties, locale, status); in oldToNew()
86 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew()
98 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew()
99 int32_t minInt = properties.minimumIntegerDigits; in oldToNew()
100 int32_t maxFrac = properties.maximumFractionDigits; in oldToNew()
101 int32_t minFrac = properties.minimumFractionDigits; in oldToNew()
102 int32_t minSig = properties.minimumSignificantDigits; in oldToNew()
103 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew()
104 double roundingIncrement = properties.roundingIncrement; in oldToNew()
105 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew()
141 if (!properties.currencyUsage.isNull()) { in oldToNew()
167 properties.formatFailIfMoreThanMaxDigits); in oldToNew()
173 macros.grouper = Grouper::forProperties(properties); in oldToNew()
179 if (properties.formatWidth != -1) { in oldToNew()
180 macros.padder = Padder::forProperties(properties); in oldToNew()
187 macros.decimal = properties.decimalSeparatorAlwaysShown ? UNUM_DECIMAL_SEPARATOR_ALWAYS in oldToNew()
194 macros.sign = properties.signAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO; in oldToNew()
200 if (properties.minimumExponentDigits != -1) { in oldToNew()
221 static_cast<digits_t>(properties.minimumExponentDigits), in oldToNew()
223 properties.exponentSignAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO); in oldToNew()
229 int maxInt_ = properties.maximumIntegerDigits; in oldToNew()
230 int minInt_ = properties.minimumIntegerDigits; in oldToNew()
231 int minFrac_ = properties.minimumFractionDigits; in oldToNew()
232 int maxFrac_ = properties.maximumFractionDigits; in oldToNew()
257 if (!properties.compactStyle.isNull()) { in oldToNew()
258 if (properties.compactStyle.getNoError() == UNumberCompactStyle::UNUM_LONG) { in oldToNew()
271 macros.scale = scaleFromProperties(properties); in oldToNew()
318 void PropertiesAffixPatternProvider::setTo(const DecimalFormatProperties& properties, UErrorCode&) { in setTo() argument
332 // Convenience: Extract the properties into local variables. in setTo()
337 UnicodeString ppo = AffixUtils::escape(properties.positivePrefix); in setTo()
338 UnicodeString pso = AffixUtils::escape(properties.positiveSuffix); in setTo()
339 UnicodeString npo = AffixUtils::escape(properties.negativePrefix); in setTo()
340 UnicodeString nso = AffixUtils::escape(properties.negativeSuffix); in setTo()
341 const UnicodeString& ppp = properties.positivePrefixPattern; in setTo()
342 const UnicodeString& psp = properties.positiveSuffixPattern; in setTo()
343 const UnicodeString& npp = properties.negativePrefixPattern; in setTo()
344 const UnicodeString& nsp = properties.negativeSuffixPattern; in setTo()
346 if (!properties.positivePrefix.isBogus()) { in setTo()
355 if (!properties.positiveSuffix.isBogus()) { in setTo()
364 if (!properties.negativePrefix.isBogus()) { in setTo()
374 if (!properties.negativeSuffix.isBogus()) { in setTo()
449 const DecimalFormatProperties& properties, in setTo() argument
454 DecimalFormatProperties pluralProperties(properties); in setTo()