/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberSkeletonImpl.java | 551 MacroProps macros = parseSkeleton(skeletonString); in create() local 552 return NumberFormatter.with().macros(macros); in create() 562 public static String generate(MacroProps macros) { in generate() argument 564 generateSkeleton(macros, sb); in generate() 577 MacroProps macros = new MacroProps(); in parseSkeleton() local 607 stem = parseStem(segment, stemTrie, macros); in parseSkeleton() 611 stem = parseOption(stem, segment, macros); in parseSkeleton() 658 return macros; in parseSkeleton() 666 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() argument 670 checkNull(macros.precision, segment); in parseStem() [all …]
|
D | NumberFormatterImpl.java | 53 public NumberFormatterImpl(MacroProps macros) { in NumberFormatterImpl() argument 55 microPropsGenerator = macrosToMicroGenerator(macros, micros, true); in NumberFormatterImpl() 62 MacroProps macros, in formatStatic() argument 65 MicroProps result = preProcessUnsafe(macros, inValue); in formatStatic() 78 MacroProps macros, in getPrefixSuffixStatic() argument 83 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in getPrefixSuffixStatic() 116 private static MicroProps preProcessUnsafe(MacroProps macros, DecimalQuantity inValue) { in preProcessUnsafe() argument 118 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in preProcessUnsafe() 182 …private static MicroPropsGenerator macrosToMicroGenerator(MacroProps macros, MicroProps micros, bo… in macrosToMicroGenerator() argument 189 boolean isCurrency = unitIsCurrency(macros.unit); in macrosToMicroGenerator() [all …]
|
D | NumberFormatterSettings.java | 575 public T macros(MacroProps macros) { in macros() argument 576 return create(KEY_MACROS, macros); in macros() 635 MacroProps macros = new MacroProps(); in resolve() local 648 macros.fallback((MacroProps) current.value); in resolve() 651 macros.loc = (ULocale) current.value; in resolve() 654 macros.notation = (Notation) current.value; in resolve() 657 macros.unit = (MeasureUnit) current.value; in resolve() 660 macros.precision = (Precision) current.value; in resolve() 663 macros.roundingMode = (RoundingMode) current.value; in resolve() 666 macros.grouping = /* (Object) */ current.value; in resolve() [all …]
|
D | NumberPropertyMapper.java | 41 MacroProps macros = oldToNew(properties, symbols, null); in create() local 42 return NumberFormatter.with().macros(macros); in create() 50 MacroProps macros = oldToNew(properties, symbols, exportedProperties); in create() local 51 return NumberFormatter.with().macros(macros); in create() 83 MacroProps macros = new MacroProps(); in oldToNew() local 90 macros.symbols = symbols; in oldToNew() 100 macros.rules = rules; in oldToNew() 107 macros.affixProvider = affixProvider; in oldToNew() 124 macros.unit = currency; in oldToNew() 195 macros.precision = rounding; in oldToNew() [all …]
|
D | NumberRangeFormatterSettings.java | 151 RangeMacroProps macros = new RangeMacroProps(); in resolve() local 167 macros.loc = (ULocale) current.value; in resolve() 170 macros.formatter1 = (UnlocalizedNumberFormatter) current.value; in resolve() 173 macros.formatter2 = (UnlocalizedNumberFormatter) current.value; in resolve() 176 macros.sameFormatters = (boolean) current.value ? 1 : 0; in resolve() 179 macros.collapse = (RangeCollapse) current.value; in resolve() 182 macros.identityFallback = (RangeIdentityFallback) current.value; in resolve() 190 if (macros.formatter1 != null) { in resolve() 191 macros.formatter1.resolve().loc = macros.loc; in resolve() 193 if (macros.formatter2 != null) { in resolve() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberSkeletonImpl.java | 528 MacroProps macros = parseSkeleton(skeletonString); in create() local 529 return NumberFormatter.with().macros(macros); in create() 539 public static String generate(MacroProps macros) { in generate() argument 541 generateSkeleton(macros, sb); in generate() 554 MacroProps macros = new MacroProps(); in parseSkeleton() local 584 stem = parseStem(segment, stemTrie, macros); in parseSkeleton() 588 stem = parseOption(stem, segment, macros); in parseSkeleton() 633 return macros; in parseSkeleton() 641 …private static ParseState parseStem(StringSegment segment, CharsTrie stemTrie, MacroProps macros) { in parseStem() argument 645 checkNull(macros.precision, segment); in parseStem() [all …]
|
D | NumberFormatterSettings.java | 484 public T macros(MacroProps macros) { in macros() argument 485 return create(KEY_MACROS, macros); in macros() 540 MacroProps macros = new MacroProps(); in resolve() local 545 macros.fallback((MacroProps) current.value); in resolve() 548 if (macros.loc == null) { in resolve() 549 macros.loc = (ULocale) current.value; in resolve() 553 if (macros.notation == null) { in resolve() 554 macros.notation = (Notation) current.value; in resolve() 558 if (macros.unit == null) { in resolve() 559 macros.unit = (MeasureUnit) current.value; in resolve() [all …]
|
D | NumberFormatterImpl.java | 46 public NumberFormatterImpl(MacroProps macros) { in NumberFormatterImpl() argument 48 microPropsGenerator = macrosToMicroGenerator(macros, micros, true); in NumberFormatterImpl() 55 MacroProps macros, in formatStatic() argument 58 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic() 71 MacroProps macros, in getPrefixSuffixStatic() argument 76 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in getPrefixSuffixStatic() 109 private static MicroProps preProcessUnsafe(MacroProps macros, DecimalQuantity inValue) { in preProcessUnsafe() argument 111 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in preProcessUnsafe() 177 …private static MicroPropsGenerator macrosToMicroGenerator(MacroProps macros, MicroProps micros, bo… in macrosToMicroGenerator() argument 184 boolean isCurrency = unitIsCurrency(macros.unit); in macrosToMicroGenerator() [all …]
|
D | NumberRangeFormatterSettings.java | 147 RangeMacroProps macros = new RangeMacroProps(); in resolve() local 155 if (macros.loc == null) { in resolve() 156 macros.loc = (ULocale) current.value; in resolve() 160 if (macros.formatter1 == null) { in resolve() 161 macros.formatter1 = (UnlocalizedNumberFormatter) current.value; in resolve() 165 if (macros.formatter2 == null) { in resolve() 166 macros.formatter2 = (UnlocalizedNumberFormatter) current.value; in resolve() 170 if (macros.sameFormatters == -1) { in resolve() 171 macros.sameFormatters = (boolean) current.value ? 1 : 0; in resolve() 175 if (macros.collapse == null) { in resolve() [all …]
|
D | NumberPropertyMapper.java | 42 MacroProps macros = oldToNew(properties, symbols, null); in create() local 43 return NumberFormatter.with().macros(macros); in create() 51 MacroProps macros = oldToNew(properties, symbols, exportedProperties); in create() local 52 return NumberFormatter.with().macros(macros); in create() 84 MacroProps macros = new MacroProps(); in oldToNew() local 91 macros.symbols = symbols; in oldToNew() 101 macros.rules = rules; in oldToNew() 108 macros.affixProvider = affixProvider; in oldToNew() 125 macros.unit = currency; in oldToNew() 196 macros.precision = rounding; in oldToNew() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_formatimpl.cpp | 28 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, UErrorCode& status) in NumberFormatterImpl() argument 29 : NumberFormatterImpl(macros, true, status) { in NumberFormatterImpl() 32 int32_t NumberFormatterImpl::formatStatic(const MacroProps ¯os, UFormattedNumberData *results, in formatStatic() argument 36 NumberFormatterImpl impl(macros, false, status); in formatStatic() 46 int32_t NumberFormatterImpl::getPrefixSuffixStatic(const MacroProps& macros, Signum signum, in getPrefixSuffixStatic() argument 49 NumberFormatterImpl impl(macros, false, status); in getPrefixSuffixStatic() 117 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, bool safe, UErrorCode& status) { in NumberFormatterImpl() argument 118 fMicroPropsGenerator = macrosToMicroGenerator(macros, safe, status); in NumberFormatterImpl() 124 NumberFormatterImpl::macrosToMicroGenerator(const MacroProps& macros, bool safe, UErrorCode& status… in macrosToMicroGenerator() argument 129 if (macros.copyErrorTo(status)) { in macrosToMicroGenerator() [all …]
|
D | number_skeletons.cpp | 472 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create() local 474 return NumberFormatter::with().macros(macros); in create() 492 UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) { in generate() argument 495 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate() 509 MacroProps macros; in parseSkeleton() local 539 stem = parseStem(segment, stemTrie, seen, macros, status); in parseSkeleton() 543 stem = parseOption(stem, segment, macros, status); in parseSkeleton() 548 return macros; in parseSkeleton() 561 return macros; in parseSkeleton() 573 return macros; in parseSkeleton() [all …]
|
D | number_skeletons.h | 162 UnicodeString generate(const MacroProps& macros, UErrorCode& status); 177 MacroProps& macros, UErrorCode& status); 186 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status); 239 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 244 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 246 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 251 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 254 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 260 void parseIdentifierUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 262 void parseUnitUsageOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | number_formatimpl.cpp | 28 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, UErrorCode& status) in NumberFormatterImpl() argument 29 : NumberFormatterImpl(macros, true, status) { in NumberFormatterImpl() 32 int32_t NumberFormatterImpl::formatStatic(const MacroProps ¯os, UFormattedNumberData *results, in formatStatic() argument 36 NumberFormatterImpl impl(macros, false, status); in formatStatic() 46 int32_t NumberFormatterImpl::getPrefixSuffixStatic(const MacroProps& macros, Signum signum, in getPrefixSuffixStatic() argument 49 NumberFormatterImpl impl(macros, false, status); in getPrefixSuffixStatic() 117 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, bool safe, UErrorCode& status) { in NumberFormatterImpl() argument 118 fMicroPropsGenerator = macrosToMicroGenerator(macros, safe, status); in NumberFormatterImpl() 124 NumberFormatterImpl::macrosToMicroGenerator(const MacroProps& macros, bool safe, UErrorCode& status… in macrosToMicroGenerator() argument 129 if (macros.copyErrorTo(status)) { in macrosToMicroGenerator() [all …]
|
D | number_skeletons.cpp | 471 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create() local 473 return NumberFormatter::with().macros(macros); in create() 491 UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) { in generate() argument 494 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate() 508 MacroProps macros; in parseSkeleton() local 538 stem = parseStem(segment, stemTrie, seen, macros, status); in parseSkeleton() 542 stem = parseOption(stem, segment, macros, status); in parseSkeleton() 547 return macros; in parseSkeleton() 560 return macros; in parseSkeleton() 572 return macros; in parseSkeleton() [all …]
|
D | number_skeletons.h | 161 UnicodeString generate(const MacroProps& macros, UErrorCode& status); 176 MacroProps& macros, UErrorCode& status); 185 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status); 238 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 243 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 245 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 250 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 253 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 259 void parseIdentifierUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 261 void parseUnitUsageOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); [all …]
|
D | number_mapper.cpp | 26 … return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status)); in create() 34 return NumberFormatter::with().macros( in create() 44 MacroProps macros; in oldToNew() local 51 macros.symbols.setTo(symbols); in oldToNew() 58 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules(); in oldToNew() 66 macros.affixProvider = &warehouse.affixProvider.get(); in oldToNew() 81 macros.unit = currency; // NOLINT in oldToNew() 150 macros.roundingMode = roundingMode; in oldToNew() 151 macros.precision = precision; in oldToNew() 158 macros.integerWidth = IntegerWidth( in oldToNew() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_formatimpl.cpp | 28 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, UErrorCode& status) in NumberFormatterImpl() argument 29 : NumberFormatterImpl(macros, true, status) { in NumberFormatterImpl() 32 int32_t NumberFormatterImpl::formatStatic(const MacroProps ¯os, UFormattedNumberData *results, in formatStatic() argument 36 NumberFormatterImpl impl(macros, false, status); in formatStatic() 46 int32_t NumberFormatterImpl::getPrefixSuffixStatic(const MacroProps& macros, Signum signum, in getPrefixSuffixStatic() argument 49 NumberFormatterImpl impl(macros, false, status); in getPrefixSuffixStatic() 117 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, bool safe, UErrorCode& status) { in NumberFormatterImpl() argument 118 fMicroPropsGenerator = macrosToMicroGenerator(macros, safe, status); in NumberFormatterImpl() 124 NumberFormatterImpl::macrosToMicroGenerator(const MacroProps& macros, bool safe, UErrorCode& status… in macrosToMicroGenerator() argument 129 if (macros.copyErrorTo(status)) { in macrosToMicroGenerator() [all …]
|
D | number_skeletons.cpp | 471 MacroProps macros = parseSkeleton(skeletonString, errOffset, status); in create() local 473 return NumberFormatter::with().macros(macros); in create() 491 UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) { in generate() argument 494 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate() 508 MacroProps macros; in parseSkeleton() local 538 stem = parseStem(segment, stemTrie, seen, macros, status); in parseSkeleton() 542 stem = parseOption(stem, segment, macros, status); in parseSkeleton() 547 return macros; in parseSkeleton() 560 return macros; in parseSkeleton() 572 return macros; in parseSkeleton() [all …]
|
D | number_skeletons.h | 161 UnicodeString generate(const MacroProps& macros, UErrorCode& status); 176 MacroProps& macros, UErrorCode& status); 185 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status); 238 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 243 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 245 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 250 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 253 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 259 void parseIdentifierUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 261 void parseUnitUsageOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); [all …]
|
D | number_mapper.cpp | 26 … return NumberFormatter::with().macros(oldToNew(properties, symbols, warehouse, nullptr, status)); in create() 34 return NumberFormatter::with().macros( in create() 44 MacroProps macros; in oldToNew() local 51 macros.symbols.setTo(symbols); in oldToNew() 58 macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules(); in oldToNew() 66 macros.affixProvider = &warehouse.affixProvider.get(); in oldToNew() 81 macros.unit = currency; // NOLINT in oldToNew() 150 macros.roundingMode = roundingMode; in oldToNew() 151 macros.precision = precision; in oldToNew() 158 macros.integerWidth = IntegerWidth( in oldToNew() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_skeletons.cpp | 411 MacroProps macros = parseSkeleton(skeletonString, status); in create() local 412 return NumberFormatter::with().macros(macros); in create() 415 UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) { in generate() argument 418 GeneratorHelpers::generateSkeleton(macros, sb, status); in generate() 430 MacroProps macros; in parseSkeleton() local 460 stem = parseStem(segment, stemTrie, seen, macros, status); in parseSkeleton() 464 stem = parseOption(stem, segment, macros, status); in parseSkeleton() 467 if (U_FAILURE(status)) { return macros; } in parseSkeleton() 478 return macros; in parseSkeleton() 489 return macros; in parseSkeleton() [all …]
|
D | number_formatimpl.cpp | 70 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, UErrorCode& status) in NumberFormatterImpl() argument 71 : NumberFormatterImpl(macros, true, status) { in NumberFormatterImpl() 74 int32_t NumberFormatterImpl::formatStatic(const MacroProps& macros, DecimalQuantity& inValue, in formatStatic() argument 76 NumberFormatterImpl impl(macros, false, status); in formatStatic() 84 int32_t NumberFormatterImpl::getPrefixSuffixStatic(const MacroProps& macros, int8_t signum, in getPrefixSuffixStatic() argument 87 NumberFormatterImpl impl(macros, false, status); in getPrefixSuffixStatic() 154 NumberFormatterImpl::NumberFormatterImpl(const MacroProps& macros, bool safe, UErrorCode& status) { in NumberFormatterImpl() argument 155 fMicroPropsGenerator = macrosToMicroGenerator(macros, safe, status); in NumberFormatterImpl() 161 NumberFormatterImpl::macrosToMicroGenerator(const MacroProps& macros, bool safe, UErrorCode& status… in macrosToMicroGenerator() argument 166 if (macros.copyErrorTo(status)) { in macrosToMicroGenerator() [all …]
|
D | number_skeletons.h | 134 UnicodeString generate(const MacroProps& macros, UErrorCode& status); 149 MacroProps& macros, UErrorCode& status); 158 parseOption(ParseState stem, const StringSegment& segment, MacroProps& macros, UErrorCode& status); 211 bool parseExponentWidthOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 216 bool parseExponentSignOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 218 void parseCurrencyOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 222 void parseMeasureUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 226 void parseMeasurePerUnitOption(const StringSegment& segment, MacroProps& macros, UErrorCode& status… 228 void parseFractionStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status); 232 void parseDigitsStem(const StringSegment& segment, MacroProps& macros, UErrorCode& status); [all …]
|
/third_party/python/Lib/distutils/ |
D | ccompiler.py | 98 self.macros = [] 161 for defn in self.macros: 195 del self.macros[i] 197 self.macros.append((name, value)) 212 del self.macros[i] 215 self.macros.append(undefn) 310 def _setup_compile(self, outdir, macros, incdirs, sources, depends, argument 318 if macros is None: 319 macros = self.macros 320 elif isinstance(macros, list): [all …]
|