• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching full:properties

22 UnlocalizedNumberFormatter NumberPropertyMapper::create(const DecimalFormatProperties& properties,  in create()  argument
26 … return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status)); in create()
29 UnlocalizedNumberFormatter NumberPropertyMapper::create(const DecimalFormatProperties& properties, in create() argument
36 properties, symbols, warehouse, &exportedProperties, status)); in create()
39 MacroProps NumberPropertyMapper::oldToNew(const DecimalFormatProperties& properties, in oldToNew() argument
57 if (!properties.currencyPluralInfo.fPtr.isNull()) { in oldToNew()
58 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules(); in oldToNew()
65 warehouse.affixProvider.setTo(properties, status); in oldToNew()
73 !properties.currency.isNull() || in oldToNew()
74 !properties.currencyPluralInfo.fPtr.isNull() || in oldToNew()
75 !properties.currencyUsage.isNull() || in oldToNew()
77 CurrencyUnit currency = resolveCurrency(properties, locale, status); in oldToNew()
78 UCurrencyUsage currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD); in oldToNew()
88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew()
89 int32_t minInt = properties.minimumIntegerDigits; in oldToNew()
90 int32_t maxFrac = properties.maximumFractionDigits; in oldToNew()
91 int32_t minFrac = properties.minimumFractionDigits; in oldToNew()
92 int32_t minSig = properties.minimumSignificantDigits; in oldToNew()
93 int32_t maxSig = properties.maximumSignificantDigits; in oldToNew()
94 double roundingIncrement = properties.roundingIncrement; in oldToNew()
97 RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN); in oldToNew()
131 if (!properties.currencyUsage.isNull()) { in oldToNew()
161 properties.formatFailIfMoreThanMaxDigits); in oldToNew()
167 macros.grouper = Grouper::forProperties(properties); in oldToNew()
173 if (properties.formatWidth > 0) { in oldToNew()
174 macros.padder = Padder::forProperties(properties); in oldToNew()
181 macros.decimal = properties.decimalSeparatorAlwaysShown ? UNUM_DECIMAL_SEPARATOR_ALWAYS in oldToNew()
188 macros.sign = properties.signAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO; in oldToNew()
194 if (properties.minimumExponentDigits != -1) { in oldToNew()
215 static_cast<digits_t>(properties.minimumExponentDigits), in oldToNew()
217 properties.exponentSignAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO); in oldToNew()
223 int maxInt_ = properties.maximumIntegerDigits; in oldToNew()
224 int minInt_ = properties.minimumIntegerDigits; in oldToNew()
225 int minFrac_ = properties.minimumFractionDigits; in oldToNew()
226 int maxFrac_ = properties.maximumFractionDigits; in oldToNew()
252 if (!properties.compactStyle.isNull()) { in oldToNew()
253 if (properties.compactStyle.getNoError() == UNumberCompactStyle::UNUM_LONG) { in oldToNew()
266 macros.scale = scaleFromProperties(properties); in oldToNew()
315 void PropertiesAffixPatternProvider::setTo(const DecimalFormatProperties& properties, UErrorCode& s… in setTo() argument
327 // Convenience: Extract the properties into local variables. in setTo()
332 UnicodeString ppo = AffixUtils::escape(properties.positivePrefix); in setTo()
333 UnicodeString pso = AffixUtils::escape(properties.positiveSuffix); in setTo()
334 UnicodeString npo = AffixUtils::escape(properties.negativePrefix); in setTo()
335 UnicodeString nso = AffixUtils::escape(properties.negativeSuffix); in setTo()
336 const UnicodeString& ppp = properties.positivePrefixPattern; in setTo()
337 const UnicodeString& psp = properties.positiveSuffixPattern; in setTo()
338 const UnicodeString& npp = properties.negativePrefixPattern; in setTo()
339 const UnicodeString& nsp = properties.negativeSuffixPattern; in setTo()
341 if (!properties.positivePrefix.isBogus()) { in setTo()
350 if (!properties.positiveSuffix.isBogus()) { in setTo()
359 if (!properties.negativePrefix.isBogus()) { in setTo()
369 if (!properties.negativeSuffix.isBogus()) { in setTo()
451 const DecimalFormatProperties& properties, in setTo() argument
456 DecimalFormatProperties pluralProperties(properties); in setTo()