• Home
  • Raw
  • Download

Lines Matching refs:sb

147 inline void appendMultiple(UnicodeString& sb, UChar32 cp, int32_t count) {  in appendMultiple()  argument
149 sb.append(cp); in appendMultiple()
316 void enum_to_stem_string::roundingMode(UNumberFormatRoundingMode value, UnicodeString& sb) { in roundingMode() argument
319 sb.append(u"rounding-mode-ceiling", -1); in roundingMode()
322 sb.append(u"rounding-mode-floor", -1); in roundingMode()
325 sb.append(u"rounding-mode-down", -1); in roundingMode()
328 sb.append(u"rounding-mode-up", -1); in roundingMode()
331 sb.append(u"rounding-mode-half-even", -1); in roundingMode()
334 sb.append(u"rounding-mode-half-odd", -1); in roundingMode()
337 sb.append(u"rounding-mode-half-ceiling", -1); in roundingMode()
340 sb.append(u"rounding-mode-half-floor", -1); in roundingMode()
343 sb.append(u"rounding-mode-half-down", -1); in roundingMode()
346 sb.append(u"rounding-mode-half-up", -1); in roundingMode()
349 sb.append(u"rounding-mode-unnecessary", -1); in roundingMode()
356 void enum_to_stem_string::groupingStrategy(UNumberGroupingStrategy value, UnicodeString& sb) { in groupingStrategy() argument
359 sb.append(u"group-off", -1); in groupingStrategy()
362 sb.append(u"group-min2", -1); in groupingStrategy()
365 sb.append(u"group-auto", -1); in groupingStrategy()
368 sb.append(u"group-on-aligned", -1); in groupingStrategy()
371 sb.append(u"group-thousands", -1); in groupingStrategy()
378 void enum_to_stem_string::unitWidth(UNumberUnitWidth value, UnicodeString& sb) { in unitWidth() argument
381 sb.append(u"unit-width-narrow", -1); in unitWidth()
384 sb.append(u"unit-width-short", -1); in unitWidth()
387 sb.append(u"unit-width-full-name", -1); in unitWidth()
390 sb.append(u"unit-width-iso-code", -1); in unitWidth()
393 sb.append(u"unit-width-formal", -1); in unitWidth()
396 sb.append(u"unit-width-variant", -1); in unitWidth()
399 sb.append(u"unit-width-hidden", -1); in unitWidth()
406 void enum_to_stem_string::signDisplay(UNumberSignDisplay value, UnicodeString& sb) { in signDisplay() argument
409 sb.append(u"sign-auto", -1); in signDisplay()
412 sb.append(u"sign-always", -1); in signDisplay()
415 sb.append(u"sign-never", -1); in signDisplay()
418 sb.append(u"sign-accounting", -1); in signDisplay()
421 sb.append(u"sign-accounting-always", -1); in signDisplay()
424 sb.append(u"sign-except-zero", -1); in signDisplay()
427 sb.append(u"sign-accounting-except-zero", -1); in signDisplay()
430 sb.append(u"sign-negative", -1); in signDisplay()
433 sb.append(u"sign-accounting-negative", -1); in signDisplay()
441 …_to_stem_string::decimalSeparatorDisplay(UNumberDecimalSeparatorDisplay value, UnicodeString& sb) { in decimalSeparatorDisplay() argument
444 sb.append(u"decimal-auto", -1); in decimalSeparatorDisplay()
447 sb.append(u"decimal-always", -1); in decimalSeparatorDisplay()
494 UnicodeString sb; in generate() local
495 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate()
496 return sb; in generate()
894 void GeneratorHelpers::generateSkeleton(const MacroProps& macros, UnicodeString& sb, UErrorCode& st… in generateSkeleton() argument
898 if (GeneratorHelpers::notation(macros, sb, status)) { in generateSkeleton()
899 sb.append(u' '); in generateSkeleton()
902 if (GeneratorHelpers::unit(macros, sb, status)) { in generateSkeleton()
903 sb.append(u' '); in generateSkeleton()
906 if (GeneratorHelpers::usage(macros, sb, status)) { in generateSkeleton()
907 sb.append(u' '); in generateSkeleton()
910 if (GeneratorHelpers::precision(macros, sb, status)) { in generateSkeleton()
911 sb.append(u' '); in generateSkeleton()
914 if (GeneratorHelpers::roundingMode(macros, sb, status)) { in generateSkeleton()
915 sb.append(u' '); in generateSkeleton()
918 if (GeneratorHelpers::grouping(macros, sb, status)) { in generateSkeleton()
919 sb.append(u' '); in generateSkeleton()
922 if (GeneratorHelpers::integerWidth(macros, sb, status)) { in generateSkeleton()
923 sb.append(u' '); in generateSkeleton()
926 if (GeneratorHelpers::symbols(macros, sb, status)) { in generateSkeleton()
927 sb.append(u' '); in generateSkeleton()
930 if (GeneratorHelpers::unitWidth(macros, sb, status)) { in generateSkeleton()
931 sb.append(u' '); in generateSkeleton()
934 if (GeneratorHelpers::sign(macros, sb, status)) { in generateSkeleton()
935 sb.append(u' '); in generateSkeleton()
938 if (GeneratorHelpers::decimal(macros, sb, status)) { in generateSkeleton()
939 sb.append(u' '); in generateSkeleton()
942 if (GeneratorHelpers::scale(macros, sb, status)) { in generateSkeleton()
943 sb.append(u' '); in generateSkeleton()
966 if (sb.length() > 0) { in generateSkeleton()
967 sb.truncate(sb.length() - 1); in generateSkeleton()
995 blueprint_helpers::generateExponentWidthOption(int32_t minExponentDigits, UnicodeString& sb, UError… in generateExponentWidthOption() argument
996 sb.append(kWildcardChar); in generateExponentWidthOption()
997 appendMultiple(sb, u'e', minExponentDigits); in generateExponentWidthOption()
1039 blueprint_helpers::generateCurrencyOption(const CurrencyUnit& currency, UnicodeString& sb, UErrorCo… in generateCurrencyOption() argument
1040 sb.append(currency.getISOCurrency(), -1); in generateCurrencyOption()
1174 blueprint_helpers::generateFractionStem(int32_t minFrac, int32_t maxFrac, UnicodeString& sb, UError… in generateFractionStem() argument
1176 sb.append(u"precision-integer", -1); in generateFractionStem()
1179 sb.append(u'.'); in generateFractionStem()
1180 appendMultiple(sb, u'0', minFrac); in generateFractionStem()
1182 sb.append(kWildcardChar); in generateFractionStem()
1184 appendMultiple(sb, u'#', maxFrac - minFrac); in generateFractionStem()
1232 blueprint_helpers::generateDigitsStem(int32_t minSig, int32_t maxSig, UnicodeString& sb, UErrorCode… in generateDigitsStem() argument
1233 appendMultiple(sb, u'@', minSig); in generateDigitsStem()
1235 sb.append(kWildcardChar); in generateDigitsStem()
1237 appendMultiple(sb, u'#', maxSig - minSig); in generateDigitsStem()
1402 …id blueprint_helpers::generateIncrementOption(double increment, int32_t minFrac, UnicodeString& sb, in generateIncrementOption() argument
1409 sb.append(dq.toPlainString()); in generateIncrementOption()
1455 …id blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& sb, in generateIntegerWidthOption() argument
1458 sb.append(kWildcardChar); in generateIntegerWidthOption()
1460 appendMultiple(sb, u'#', maxInt - minInt); in generateIntegerWidthOption()
1462 appendMultiple(sb, u'0', minInt); in generateIntegerWidthOption()
1482 void blueprint_helpers::generateNumberingSystemOption(const NumberingSystem& ns, UnicodeString& sb, in generateNumberingSystemOption() argument
1485 sb.append(UnicodeString(ns.getName(), -1, US_INV)); in generateNumberingSystemOption()
1508 …ueprint_helpers::generateScaleOption(int32_t magnitude, const DecNum* arbitrary, UnicodeString& sb, in generateScaleOption() argument
1520 sb.append(dq.toPlainString()); in generateScaleOption()
1524 bool GeneratorHelpers::notation(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in notation() argument
1528 sb.append(u"compact-long", -1); in notation()
1531 sb.append(u"compact-short", -1); in notation()
1542 sb.append(u"engineering", -1); in notation()
1544 sb.append(u"scientific", -1); in notation()
1547 sb.append(u'/'); in notation()
1548 blueprint_helpers::generateExponentWidthOption(impl.fMinExponentDigits, sb, status); in notation()
1554 sb.append(u'/'); in notation()
1555 enum_to_stem_string::signDisplay(impl.fExponentSignDisplay, sb); in notation()
1564 bool GeneratorHelpers::unit(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in unit() argument
1575 sb.append(u"currency/", -1); in unit()
1580 blueprint_helpers::generateCurrencyOption(currency, sb, status); in unit()
1586 sb.append(u"percent", -1); in unit()
1589 sb.append(u"permille", -1); in unit()
1592 sb.append(u"unit/", -1); in unit()
1593 sb.append(unit.getIdentifier()); in unit()
1598 bool GeneratorHelpers::usage(const MacroProps& macros, UnicodeString& sb, UErrorCode& /* status */)… in usage() argument
1600 sb.append(u"usage/", -1); in usage()
1601 sb.append(UnicodeString(macros.usage.fValue, -1, US_INV)); in usage()
1607 bool GeneratorHelpers::precision(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in precision() argument
1609 sb.append(u"precision-unlimited", -1); in precision()
1612 blueprint_helpers::generateFractionStem(impl.fMinFrac, impl.fMaxFrac, sb, status); in precision()
1615 blueprint_helpers::generateDigitsStem(impl.fMinSig, impl.fMaxSig, sb, status); in precision()
1618 blueprint_helpers::generateFractionStem(impl.fMinFrac, impl.fMaxFrac, sb, status); in precision()
1619 sb.append(u'/'); in precision()
1620 blueprint_helpers::generateDigitsStem(impl.fMinSig, impl.fMaxSig, sb, status); in precision()
1622 sb.append(u'r'); in precision()
1624 sb.append(u's'); in precision()
1630 sb.append(u"precision-increment/", -1); in precision()
1634 sb, in precision()
1639 sb.append(u"precision-currency-standard", -1); in precision()
1641 sb.append(u"precision-currency-cash", -1); in precision()
1649 sb.append(u"/w", -1); in precision()
1656 bool GeneratorHelpers::roundingMode(const MacroProps& macros, UnicodeString& sb, UErrorCode&) { in roundingMode() argument
1660 enum_to_stem_string::roundingMode(macros.roundingMode, sb); in roundingMode()
1664 bool GeneratorHelpers::grouping(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in grouping() argument
1673 enum_to_stem_string::groupingStrategy(macros.grouper.fStrategy, sb); in grouping()
1678 bool GeneratorHelpers::integerWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status… in integerWidth() argument
1686 sb.append(u"integer-width-trunc", -1); in integerWidth()
1689 sb.append(u"integer-width/", -1); in integerWidth()
1693 sb, in integerWidth()
1698 bool GeneratorHelpers::symbols(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in symbols() argument
1702 sb.append(u"latin", -1); in symbols()
1704 sb.append(u"numbering-system/", -1); in symbols()
1705 blueprint_helpers::generateNumberingSystemOption(ns, sb, status); in symbols()
1717 bool GeneratorHelpers::unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode&) { in unitWidth() argument
1721 enum_to_stem_string::unitWidth(macros.unitWidth, sb); in unitWidth()
1725 bool GeneratorHelpers::sign(const MacroProps& macros, UnicodeString& sb, UErrorCode&) { in sign() argument
1729 enum_to_stem_string::signDisplay(macros.sign, sb); in sign()
1733 bool GeneratorHelpers::decimal(const MacroProps& macros, UnicodeString& sb, UErrorCode&) { in decimal() argument
1737 enum_to_stem_string::decimalSeparatorDisplay(macros.decimal, sb); in decimal()
1741 bool GeneratorHelpers::scale(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in scale() argument
1745 sb.append(u"scale/", -1); in scale()
1749 sb, in scale()