Lines Matching defs:macros
26 return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status));
34 return NumberFormatter::with().macros(
44 MacroProps macros;
51 macros.symbols.setTo(symbols);
58 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules();
66 macros.affixProvider = &warehouse.affixProvider.get();
81 macros.unit = currency; // NOLINT
95 // Not assigning directly to macros.roundingMode here: we change
96 // roundingMode if and when we also change macros.precision.
151 macros.roundingMode = roundingMode;
152 macros.precision = precision;
159 macros.integerWidth = IntegerWidth(
168 macros.grouper = Grouper::forProperties(properties);
175 macros.padder = Padder::forProperties(properties);
182 macros.decimal = properties.decimalSeparatorAlwaysShown ? UNUM_DECIMAL_SEPARATOR_ALWAYS
189 macros.sign = properties.signAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO;
203 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt);
207 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt);
210 macros.notation = ScientificNotation(
221 if (macros.precision.fType == Precision::PrecisionType::RND_FRACTION) {
230 macros.precision = Precision::unlimited();
233 macros.precision = Precision::constructSignificant(1, maxFrac_ + 1);
243 macros.precision = Precision::constructSignificant(minSig_, maxSig_);
245 macros.roundingMode = roundingMode;
255 macros.notation = Notation::compactLong();
257 macros.notation = Notation::compactShort();
265 macros.scale = scaleFromProperties(properties);
315 return macros;