/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 266 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 282 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 318 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 335 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 510 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 527 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 559 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 587 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 597 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure() 608 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure() [all …]
|
D | NumberRangeFormatterTest.java | 115 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 131 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 299 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 319 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 339 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 359 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 631 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), in testIdentity() 698 .unitWidth(UnitWidth.FULL_NAME) in testPlurals()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | MacroProps.java | 33 public UnitWidth unitWidth; field in MacroProps 67 if (unitWidth == null) in fallback() 68 unitWidth = fallback.unitWidth; in fallback() 94 unitWidth, in hashCode() 121 && Objects.equals(unitWidth, other.unitWidth) in equals()
|
D | MutablePatternModifier.java | 50 UnitWidth unitWidth; field in MutablePatternModifier 116 UnitWidth unitWidth, in setSymbols() argument 121 this.unitWidth = unitWidth; in setSymbols() 404 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol() 406 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol() 410 switch (unitWidth) { in getSymbol()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MacroProps.java | 29 public UnitWidth unitWidth; field in MacroProps 65 if (unitWidth == null) in fallback() 66 unitWidth = fallback.unitWidth; in fallback() 96 unitWidth, in hashCode() 125 && Objects.equals(unitWidth, other.unitWidth) in equals()
|
D | MutablePatternModifier.java | 48 UnitWidth unitWidth; field in MutablePatternModifier 114 UnitWidth unitWidth, in setSymbols() argument 119 this.unitWidth = unitWidth; in setSymbols() 399 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol() 401 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol() 405 switch (unitWidth) { in getSymbol()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 269 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 285 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 321 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 338 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 504 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 521 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 537 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 565 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 575 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure() 586 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure() [all …]
|
D | NumberRangeFormatterTest.java | 119 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 135 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 303 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 323 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 343 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 363 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 635 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), in testIdentity() 682 .unitWidth(UnitWidth.FULL_NAME) in testPlurals()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 324 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact() 342 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact() 380 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact() 399 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact() 556 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 574 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 632 … NumberFormatter::with().unit(DAY).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 642 NumberFormatter::with().unit(DAY).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure() 653 … NumberFormatter::with().unit(SQUARE_METER).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure() 663 … NumberFormatter::with().unit(SQUARE_METER).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure() [all …]
|
D | numbertest_range.cpp | 119 … .numberFormatterBoth(NumberFormatter::with().unit(METER).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testBasic() 135 ….numberFormatterBoth(NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)… in testBasic() 302 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 322 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 342 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 362 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 633 NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testIdentity() 680 .unitWidth(UNUM_UNIT_WIDTH_FULL_NAME) in testPlurals()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberFormatterImpl.java | 199 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local 200 if (macros.unitWidth != null) { in macrosToMicroGenerator() 201 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 211 && (unitWidth == UnitWidth.FULL_NAME in macrosToMicroGenerator() 255 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 371 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator() 373 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator() 399 unitWidth, in macrosToMicroGenerator() 407 unitWidth, in macrosToMicroGenerator() 427 unitWidth, in macrosToMicroGenerator() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_formatimpl.cpp | 150 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local 151 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator() 152 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 162 && (unitWidth == UNUM_UNIT_WIDTH_FULL_NAME in macrosToMicroGenerator() 218 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 365 unitWidth, in macrosToMicroGenerator() 369 patternModifier->setSymbols(fMicros.symbols, currency, unitWidth, nullptr, status); in macrosToMicroGenerator() 393 … macros.locale, *fUsagePrefsHandler->getOutputUnits(), unitWidth, unitDisplayCase, in macrosToMicroGenerator() 401 macros.locale, macros.unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() 421 LongNameHandler::forMeasureUnit(macros.locale, unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() [all …]
|
D | number_skeletons.h | 207 UNumberUnitWidth unitWidth(skeleton::StemEnum stem); 225 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 339 static bool unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 364 bool unitWidth = false; member
|
/third_party/icu/icu4c/source/i18n/ |
D | number_formatimpl.cpp | 150 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local 151 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator() 152 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 162 && (unitWidth == UNUM_UNIT_WIDTH_FULL_NAME in macrosToMicroGenerator() 218 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 364 unitWidth, in macrosToMicroGenerator() 368 patternModifier->setSymbols(fMicros.symbols, currency, unitWidth, nullptr, status); in macrosToMicroGenerator() 387 … macros.locale, *fUsagePrefsHandler->getOutputUnits(), unitWidth, unitDisplayCase, in macrosToMicroGenerator() 395 macros.locale, macros.unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() 415 LongNameHandler::forMeasureUnit(macros.locale, unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() [all …]
|
D | number_skeletons.h | 206 UNumberUnitWidth unitWidth(skeleton::StemEnum stem); 224 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 338 static bool unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 363 bool unitWidth = false; member
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_formatimpl.cpp | 150 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local 151 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator() 152 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 162 && (unitWidth == UNUM_UNIT_WIDTH_FULL_NAME in macrosToMicroGenerator() 218 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 364 unitWidth, in macrosToMicroGenerator() 368 patternModifier->setSymbols(fMicros.symbols, currency, unitWidth, nullptr, status); in macrosToMicroGenerator() 387 … macros.locale, *fUsagePrefsHandler->getOutputUnits(), unitWidth, unitDisplayCase, in macrosToMicroGenerator() 395 macros.locale, macros.unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() 415 LongNameHandler::forMeasureUnit(macros.locale, unit, unitWidth, unitDisplayCase, in macrosToMicroGenerator() [all …]
|
D | number_skeletons.h | 206 UNumberUnitWidth unitWidth(skeleton::StemEnum stem); 224 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 338 static bool unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 363 bool unitWidth = false; member
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberFormatterImpl.java | 192 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local 193 if (macros.unitWidth != null) { in macrosToMicroGenerator() 194 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 197 (unitWidth == UnitWidth.FULL_NAME || !(isPercent || isPermille)); in macrosToMicroGenerator() 232 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 333 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator() 335 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator() 349 … .forMeasureUnit(macros.loc, macros.unit, macros.perUnit, unitWidth, rules, chain); in macrosToMicroGenerator() 350 } else if (isCurrency && unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 368 && macros.unitWidth != UnitWidth.FULL_NAME) ? CompactType.CURRENCY in macrosToMicroGenerator()
|
D | NumberFormatterSettings.java | 389 public T unitWidth(UnitWidth style) { in unitWidth() method in NumberFormatterSettings 593 if (macros.unitWidth == null) { in resolve() 594 macros.unitWidth = (UnitWidth) current.value; in resolve()
|
D | NumberSkeletonImpl.java | 313 private static UnitWidth unitWidth(StemEnum stem) { in unitWidth() method in NumberSkeletonImpl.StemToObject 426 private static void unitWidth(UnitWidth value, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.EnumToStemString 750 checkNull(macros.unitWidth, segment); in parseStem() 751 macros.unitWidth = StemToObject.unitWidth(stem); in parseStem() 913 if (macros.unitWidth != null && GeneratorHelpers.unitWidth(macros, sb)) { in generateSkeleton() 1556 private static boolean unitWidth(MacroProps macros, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.GeneratorHelpers 1557 if (macros.unitWidth == UnitWidth.SHORT) { in unitWidth() 1560 EnumToStemString.unitWidth(macros.unitWidth, sb); in unitWidth()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | number_formatimpl.cpp | 193 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local 194 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator() 195 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 246 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 353 unitWidth, in macrosToMicroGenerator() 356 patternModifier->setSymbols(fMicros.symbols, currencySymbols, unitWidth, nullptr); in macrosToMicroGenerator() 373 unitWidth, in macrosToMicroGenerator() 378 } else if (isCurrency && unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 396 CompactType compactType = (isCurrency && unitWidth != UNUM_UNIT_WIDTH_FULL_NAME) in macrosToMicroGenerator()
|
D | number_skeletons.h | 179 UNumberUnitWidth unitWidth(skeleton::StemEnum stem); 197 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 292 static bool unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 316 bool unitWidth = false; member
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MeasureFormat.java | 204 final UnitWidth unitWidth; field in MeasureFormat.FormatWidth 214 UnitWidth unitWidth, in FormatWidth() argument 217 this.unitWidth = unitWidth; in FormatWidth() 489 return LongNameHandler.getUnitDisplayName(getLocale(), unit, formatWidth.unitWidth); in getUnitDisplayName() 648 .unitWidth(formatWidth.unitWidth); in MeasureFormat() 744 .unitWidth(formatWidth.unitWidth); in getUnitFormatterFromCache() 747 .unitWidth(formatWidth.currencyWidth); in getUnitFormatterFromCache() 750 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | MeasureFormat.java | 193 final UnitWidth unitWidth; field in MeasureFormat.FormatWidth 201 … private FormatWidth(ListFormatter.Style style, UnitWidth unitWidth, UnitWidth currencyWidth) { in FormatWidth() argument 203 this.unitWidth = unitWidth; in FormatWidth() 467 return LongNameHandler.getUnitDisplayName(getLocale(), unit, formatWidth.unitWidth); in getUnitDisplayName() 613 .unitWidth(formatWidth.unitWidth); in MeasureFormat() 709 .unitWidth(formatWidth.unitWidth); in getUnitFormatterFromCache() 712 .unitWidth(formatWidth.currencyWidth); in getUnitFormatterFromCache() 715 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRangesTest.java | 106 final UnitWidth unitWidth = (UnitWidth) test[3]; in TestFormatting() local 111 .numberFormatterBoth(NumberFormatter.with().unit(unit).unitWidth(unitWidth)) in TestFormatting()
|