/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
H A D | ScientificNotation.java | 21 * A class that defines the scientific notation style to be used when formatting numbers in 49 * Sets the minimum number of digits to show in the exponent of scientific notation, padding with 76 * Sets whether to show the sign on positive and negative exponents in scientific notation. The 129 final ScientificNotation notation; field in ScientificNotation.ScientificHandler 136 ScientificNotation notation, in ScientificHandler() 140 this.notation = notation; in ScientificHandler() 160 // Do not apply scientific notation to special doubles in processQuantity() 169 if (notation.requireMinInt && micros.rounder instanceof SignificantRounderImpl) { in processQuantity() 172 notation in processQuantity() 135 ScientificHandler( ScientificNotation notation, DecimalFormatSymbols symbols, boolean safe, MicroPropsGenerator parent) ScientificHandler() argument [all...] |
H A D | CompactNotation.java | 26 * A class that defines the scientific notation style to be used when formatting numbers in 42 * Create a compact notation with custom data. 83 CompactNotation notation, in CompactHandler() 94 if (notation.compactStyle != null) { in CompactHandler() 95 data.populate(locale, nsName, notation.compactStyle, compactType); in CompactHandler() 97 data.populate(notation.compactCustomData); in CompactHandler() 82 CompactHandler( CompactNotation notation, ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) CompactHandler() argument
|
H A D | NumberSkeletonImpl.java | 162 b.add("notation-simple", StemEnum.STEM_NOTATION_SIMPLE.ordinal()); in buildStemTrie() 243 private static Notation notation(StemEnum stem) { in notation() method in NumberSkeletonImpl.StemToObject 680 checkNull(macros.notation, segment); in parseStem() 707 checkNull(macros.notation, segment); in parseStem() 708 macros.notation = StemToObject.notation(stem); in parseStem() 949 if (macros.notation != null && GeneratorHelpers.notation(macros, sb)) { in generateSkeleton() 1035 macros.notation = ((ScientificNotation) macros.notation) in parseExponentWidthOption() 1492 private static boolean notation(MacroProps macros, StringBuilder sb) { notation() method in NumberSkeletonImpl.GeneratorHelpers [all...] |
H A D | NumberFormatterSettings.java | 65 * Specifies the notation style (simple, scientific, or compact) for rendering numbers. 68 * <li>Simple notation: "12,300" 69 * <li>Scientific notation: "1.23E4" 70 * <li>Compact notation: "12K" 74 * All notation styles will be properly localized with locale data, and all notation styles are 81 * NumberFormatter.with().notation(Notation.compactShort()) 84 * The default is to use simple notation. 86 * @param notation 87 * The notation strateg 92 notation(Notation notation) notation() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
H A D | ScientificNotation.java | 22 * A class that defines the scientific notation style to be used when formatting numbers in 50 * Sets the minimum number of digits to show in the exponent of scientific notation, padding with 76 * Sets whether to show the sign on positive and negative exponents in scientific notation. The 128 final ScientificNotation notation; field in ScientificNotation.ScientificHandler 135 ScientificNotation notation, in ScientificHandler() 139 this.notation = notation; in ScientificHandler() 159 // Do not apply scientific notation to special doubles in processQuantity() 168 if (notation.requireMinInt && micros.rounder instanceof SignificantRounderImpl) { in processQuantity() 171 notation in processQuantity() 134 ScientificHandler( ScientificNotation notation, DecimalFormatSymbols symbols, boolean safe, MicroPropsGenerator parent) ScientificHandler() argument [all...] |
H A D | NumberFormatterSettings.java | 62 * Specifies the notation style (simple, scientific, or compact) for rendering numbers. 65 * <li>Simple notation: "12,300" 66 * <li>Scientific notation: "1.23E4" 67 * <li>Compact notation: "12K" 71 * All notation styles will be properly localized with locale data, and all notation styles are 78 * NumberFormatter.with().notation(Notation.compactShort()) 81 * The default is to use simple notation. 83 * @param notation 84 * The notation strateg 88 notation(Notation notation) notation() argument [all...] |
H A D | CompactNotation.java | 28 * A class that defines the scientific notation style to be used when formatting numbers in 44 * Create a compact notation with custom data. 85 CompactNotation notation, in CompactHandler() 96 if (notation.compactStyle != null) { in CompactHandler() 97 data.populate(locale, nsName, notation.compactStyle, compactType); in CompactHandler() 99 data.populate(notation.compactCustomData); in CompactHandler() 84 CompactHandler( CompactNotation notation, ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) CompactHandler() argument
|
H A D | NumberSkeletonImpl.java | 153 b.add("notation-simple", StemEnum.STEM_NOTATION_SIMPLE.ordinal()); in buildStemTrie() 228 private static Notation notation(StemEnum stem) { in notation() method in NumberSkeletonImpl.StemToObject 653 checkNull(macros.notation, segment); in parseStem() 657 checkNull(macros.notation, segment); in parseStem() 680 checkNull(macros.notation, segment); in parseStem() 681 macros.notation = StemToObject.notation(stem); in parseStem() 889 if (macros.notation != null && GeneratorHelpers.notation(macros, sb)) { in generateSkeleton() 971 macros.notation in parseExponentWidthOption() 1398 private static boolean notation(MacroProps macros, StringBuilder sb) { notation() method in NumberSkeletonImpl.GeneratorHelpers [all...] |
H A D | NumberFormatterImpl.java | 258 } else if (macros.notation instanceof CompactNotation) { in macrosToMicroGenerator() 276 } else if (macros.notation instanceof CompactNotation) { in macrosToMicroGenerator() 277 // Compact notation uses minGrouping by default since ICU 59 in macrosToMicroGenerator() 315 // Inner modifier (scientific notation) in macrosToMicroGenerator() 316 if (macros.notation instanceof ScientificNotation) { in macrosToMicroGenerator() 317 chain = ((ScientificNotation) macros.notation).withLocaleData(micros.symbols, safe, chain); in macrosToMicroGenerator() 361 // Compact notation in macrosToMicroGenerator() 362 if (macros.notation instanceof CompactNotation) { in macrosToMicroGenerator() 370 chain = ((CompactNotation) macros.notation).withLocaleData(macros.loc, in macrosToMicroGenerator()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
H A D | MacroProps.java | 24 public Notation notation; field in MacroProps 49 if (notation == null) in fallback() 50 notation = fallback.notation; in fallback() 85 return Objects.hash(notation, in hashCode() 112 return Objects.equals(notation, other.notation) in equals()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
H A D | NumberFormatterApiTest.java | 97 "notation-simple", in notationSimple() 99 NumberFormatter.with().notation(Notation.simple()), in notationSimple() 127 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 143 NumberFormatter.with().notation(Notation.engineering()), in notationScientific() 159 NumberFormatter.with().notation(Notation.scientific().withExponentSignDisplay(SignDisplay.ALWAYS)), in notationScientific() 175 NumberFormatter.with().notation(Notation.scientific().withMinExponentDigits(2)), in notationScientific() 191 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 200 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 209 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 221 NumberFormatter.with().notation(Notatio in notationCompact() [all...] |
H A D | NumberRangeFormatterTest.java | 431 "Default collapse, long-form compact notation", in testCollapse() 433 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactLong())), in testCollapse() 447 "Unit collapse, long-form compact notation", in testCollapse() 450 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactLong())), in testCollapse() 464 "Default collapse on measurement unit with compact-short notation", in testCollapse() 466 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactShort()).unit(MeasureUnit.METER)), in testCollapse() 480 "No collapse on measurement unit with compact-short notation", in testCollapse() 483 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactShort()).unit(MeasureUnit.METER)), in testCollapse() 497 "Unit collapse on measurement unit with compact-short notation", in testCollapse() 500 .numberFormatterBoth(NumberFormatter.with().notation(Notatio in testCollapse() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
H A D | MacroProps.java | 20 public Notation notation; field in MacroProps 48 if (notation == null) in fallback() 49 notation = fallback.notation; in fallback() 90 return Objects.hash(notation, in hashCode() 120 return Objects.equals(notation, other.notation) in equals()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
H A D | NumberFormatterApiTest.java | 98 "notation-simple", in notationSimple() 100 NumberFormatter.with().notation(Notation.simple()), in notationSimple() 128 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 144 NumberFormatter.with().notation(Notation.engineering()), in notationScientific() 160 NumberFormatter.with().notation(Notation.scientific().withExponentSignDisplay(SignDisplay.ALWAYS)), in notationScientific() 176 NumberFormatter.with().notation(Notation.scientific().withMinExponentDigits(2)), in notationScientific() 192 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 201 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 210 NumberFormatter.with().notation(Notation.scientific()), in notationScientific() 222 NumberFormatter.with().notation(Notatio in notationCompact() [all...] |
H A D | NumberRangeFormatterTest.java | 429 "Default collapse, long-form compact notation", in testCollapse() 431 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactLong())), in testCollapse() 445 "Unit collapse, long-form compact notation", in testCollapse() 448 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactLong())), in testCollapse() 462 "Default collapse on measurement unit with compact-short notation", in testCollapse() 464 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactShort()).unit(MeasureUnit.METER)), in testCollapse() 478 "No collapse on measurement unit with compact-short notation", in testCollapse() 481 .numberFormatterBoth(NumberFormatter.with().notation(Notation.compactShort()).unit(MeasureUnit.METER)), in testCollapse() 495 "Unit collapse on measurement unit with compact-short notation", in testCollapse() 498 .numberFormatterBoth(NumberFormatter.with().notation(Notatio in testCollapse() [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | numbertest_api.cpp | 158 u"notation-simple", in notationSimple() 160 NumberFormatter::with().notation(Notation::simple()), in notationSimple() 188 NumberFormatter::with().notation(Notation::scientific()), in notationScientific() 204 NumberFormatter::with().notation(Notation::engineering()), in notationScientific() 220 NumberFormatter::with().notation( in notationScientific() 237 NumberFormatter::with().notation(Notation::scientific().withMinExponentDigits(2)), in notationScientific() 253 NumberFormatter::with().notation(Notation::scientific()), in notationScientific() 262 NumberFormatter::with().notation(Notation::scientific()), in notationScientific() 271 NumberFormatter::with().notation(Notation::scientific()), in notationScientific() 282 NumberFormatter::with().notation(Notatio in notationCompact() [all...] |
H A D | numbertest_range.cpp | 436 u"Default collapse, long-form compact notation", in testCollapse() 438 .numberFormatterBoth(NumberFormatter::with().notation(Notation::compactLong())), in testCollapse() 452 u"Unit collapse, long-form compact notation", in testCollapse() 455 .numberFormatterBoth(NumberFormatter::with().notation(Notation::compactLong())), in testCollapse() 469 u"Default collapse on measurement unit with compact-short notation", in testCollapse() 471 .numberFormatterBoth(NumberFormatter::with().notation(Notation::compactShort()).unit(METER)), in testCollapse() 485 u"No collapse on measurement unit with compact-short notation", in testCollapse() 488 .numberFormatterBoth(NumberFormatter::with().notation(Notation::compactShort()).unit(METER)), in testCollapse() 502 u"Unit collapse on measurement unit with compact-short notation", in testCollapse() 505 .numberFormatterBoth(NumberFormatter::with().notation(Notatio in testCollapse() [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | number_fluent.cpp | 35 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation) const& { in notation() function in NumberFormatterSettings 38 copy.fMacros.notation = notation; in notation() 43 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation)&& { in notation() argument 46 move.fMacros.notation = notation; in notation()
|
H A D | number_skeletons.cpp | 58 b.add(u"notation-simple", STEM_NOTATION_SIMPLE, status); in initNumberSkeletons() 166 Notation stem_to_object::notation(skeleton::StemEnum stem) { in notation() function in stem_to_object 621 CHECK_NULL(seen, notation, status); in parseStem() 651 CHECK_NULL(seen, notation, status); in parseStem() 652 macros.notation = stem_to_object::notation(stem); in parseStem() 892 if (GeneratorHelpers::notation(macros, sb, status)) { in generateSkeleton() 984 macros.notation = static_cast<ScientificNotation&>(macros.notation).withMinExponentDigits(minExp); in parseExponentWidthOption() 1008 macros.notation in parseExponentSignOption() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | number_fluent.cpp | 35 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation) const& { in notation() function in NumberFormatterSettings 38 copy.fMacros.notation = notation; in notation() 43 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation)&& { in notation() argument 46 move.fMacros.notation = notation; in notation()
|
H A D | number_skeletons.cpp | 58 b.add(u"notation-simple", STEM_NOTATION_SIMPLE, status); in initNumberSkeletons() 167 Notation stem_to_object::notation(skeleton::StemEnum stem) { in notation() function in stem_to_object 622 CHECK_NULL(seen, notation, status); in parseStem() 652 CHECK_NULL(seen, notation, status); in parseStem() 653 macros.notation = stem_to_object::notation(stem); in parseStem() 898 if (GeneratorHelpers::notation(macros, sb, status)) { in generateSkeleton() 990 macros.notation = static_cast<ScientificNotation&>(macros.notation).withMinExponentDigits(minExp); in parseExponentWidthOption() 1014 macros.notation in parseExponentSignOption() 1526 bool GeneratorHelpers::notation(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { notation() function in GeneratorHelpers [all...] |
H A D | number_skeletons.h | 197 Notation notation(skeleton::StemEnum stem); 323 static bool notation(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 354 bool notation = false; member
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | number_fluent.cpp | 35 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation) const& { in notation() function in NumberFormatterSettings 38 copy.fMacros.notation = notation; in notation() 43 Derived NumberFormatterSettings<Derived>::notation(const Notation& notation)&& { in notation() argument 46 move.fMacros.notation = notation; in notation()
|
H A D | number_skeletons.cpp | 58 b.add(u"notation-simple", STEM_NOTATION_SIMPLE, status); in initNumberSkeletons() 167 Notation stem_to_object::notation(skeleton::StemEnum stem) { in notation() function in stem_to_object 622 CHECK_NULL(seen, notation, status); in parseStem() 652 CHECK_NULL(seen, notation, status); in parseStem() 653 macros.notation = stem_to_object::notation(stem); in parseStem() 898 if (GeneratorHelpers::notation(macros, sb, status)) { in generateSkeleton() 990 macros.notation = static_cast<ScientificNotation&>(macros.notation).withMinExponentDigits(minExp); in parseExponentWidthOption() 1014 macros.notation in parseExponentSignOption() 1526 bool GeneratorHelpers::notation(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { notation() function in GeneratorHelpers [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | js-number-format.cc | 70 // in scientific notation, scaled to the nearest thousand with the power of 71 // ten in scientific notation, or scaled to the nearest locale-dependent 72 // compact decimal notation power of ten with the corresponding compact 73 // decimal notation affix. 83 // specifying whether to display compact notation affixes in short form ("5K") 84 // or long form ("5 thousand") if formatting with the "compact" notation. It 192 icu::number::Notation ToICUNotation(Notation notation, in ToICUNotation() argument 194 switch (notation) { in ToICUNotation() 201 // 29. If notation is "compact", then in ToICUNotation() 520 Handle<String> NotationAsString(Isolate* isolate, Notation notation) { in NotationAsString() argument 1049 Notation notation = NotationFromSkeleton(skeleton); ResolvedOptions() local 1416 Notation notation = Notation::STANDARD; New() local [all...] |