/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MacroProps.java | 22 public MeasureUnit perUnit; field in MacroProps 49 if (perUnit == null) in fallback() 50 perUnit = fallback.perUnit; in fallback() 83 perUnit, in hashCode() 110 && Objects.equals(perUnit, other.perUnit) in equals()
|
D | LongNameHandler.java | 196 MeasureUnit perUnit, in forMeasureUnit() argument 200 if (perUnit != null) { in forMeasureUnit() 202 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit() 207 return forCompoundUnit(locale, unit, perUnit, width, rules, parent); in forMeasureUnit() 224 MeasureUnit perUnit, in forCompoundUnit() argument 231 getMeasureData(locale, perUnit, width, secondaryData); in forCompoundUnit()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MacroProps.java | 26 public MeasureUnit perUnit; field in MacroProps 53 if (perUnit == null) in fallback() 54 perUnit = fallback.perUnit; in fallback() 87 perUnit, in hashCode() 114 && Objects.equals(perUnit, other.perUnit) in equals()
|
D | LongNameHandler.java | 200 MeasureUnit perUnit, in forMeasureUnit() argument 204 if (perUnit != null) { in forMeasureUnit() 206 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit() 211 return forCompoundUnit(locale, unit, perUnit, width, rules, parent); in forMeasureUnit() 228 MeasureUnit perUnit, in forCompoundUnit() argument 235 getMeasureData(locale, perUnit, width, secondaryData); in forCompoundUnit()
|
/external/icu/icu4c/source/i18n/ |
D | number_fluent.cpp | 84 Derived NumberFormatterSettings<Derived>::perUnit(const icu::MeasureUnit& perUnit) const& { in perUnit() function in NumberFormatterSettings 87 copy.fMacros.perUnit = perUnit; in perUnit() 92 Derived NumberFormatterSettings<Derived>::perUnit(const icu::MeasureUnit& perUnit)&& { in perUnit() argument 95 move.fMacros.perUnit = perUnit; in perUnit() 100 Derived NumberFormatterSettings<Derived>::adoptPerUnit(icu::MeasureUnit* perUnit) const& { in adoptPerUnit() 103 if (perUnit != nullptr) { in adoptPerUnit() 105 copy.fMacros.perUnit = std::move(*perUnit); in adoptPerUnit() 106 delete perUnit; in adoptPerUnit() 112 Derived NumberFormatterSettings<Derived>::adoptPerUnit(icu::MeasureUnit* perUnit)&& { in adoptPerUnit() argument 115 if (perUnit != nullptr) { in adoptPerUnit() [all …]
|
D | number_longnames.cpp | 188 …eHandler::forMeasureUnit(const Locale &loc, const MeasureUnit &unitRef, const MeasureUnit &perUnit, in forMeasureUnit() argument 192 if (uprv_strcmp(perUnit.getType(), "none") != 0) { in forMeasureUnit() 195 MeasureUnit resolved = MeasureUnit::resolveUnitPerUnit(unit, perUnit, &isResolved); in forMeasureUnit() 200 return forCompoundUnit(loc, unit, perUnit, width, rules, parent, status); in forMeasureUnit() 217 …ameHandler::forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit, in forCompoundUnit() argument 229 getMeasureData(loc, perUnit, width, secondaryData, status); in forCompoundUnit()
|
D | number_longnames.h | 37 forMeasureUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit, 55 forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
|
D | number_skeletons.cpp | 683 CHECK_NULL(seen, perUnit, status); in parseStem() 792 if (GeneratorHelpers::perUnit(macros, sb, status)) { in generateSkeleton() 989 macros.perUnit = macros.unit; in parseMeasurePerUnitOption() 1388 bool GeneratorHelpers::perUnit(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in perUnit() function in GeneratorHelpers 1390 if (utils::unitIsNoUnit(macros.perUnit)) { in perUnit() 1391 if (utils::unitIsPercent(macros.perUnit) || utils::unitIsPermille(macros.perUnit)) { in perUnit() 1398 } else if (utils::unitIsCurrency(macros.perUnit)) { in perUnit() 1403 blueprint_helpers::generateMeasureUnitOption(macros.perUnit, sb, status); in perUnit()
|
D | number_skeletons.h | 281 static bool perUnit(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 310 bool perUnit = false; member
|
D | measfmt.cpp | 494 const MeasureUnit &perUnit, in formatMeasurePerUnit() argument 510 .perUnit(perUnit) in formatMeasurePerUnit()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MeasureFormat.java | 386 MeasureUnit perUnit, in formatMeasurePerUnit() argument 391 perUnit).format(measure.getNumber()); in formatMeasurePerUnit() 701 MeasureUnit perUnit; field in MeasureFormat.NumberFormatterCacheEntry 713 MeasureUnit perUnit) { in getUnitFormatterFromCache() argument 715 … if (formatter1.type == type && formatter1.unit == unit && formatter1.perUnit == perUnit) { in getUnitFormatterFromCache() 721 && formatter2.perUnit == perUnit) { in getUnitFormatterFromCache() 727 && formatter3.perUnit == perUnit) { in getUnitFormatterFromCache() 737 formatter = getNumberFormatter().unit(unit).perUnit(perUnit) in getUnitFormatterFromCache() 740 formatter = NumberFormatter.withLocale(getLocale()).unit(unit).perUnit(perUnit) in getUnitFormatterFromCache() 744 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MeasureFormat.java | 361 MeasureUnit perUnit, in formatMeasurePerUnit() argument 366 perUnit).format(measure.getNumber()); in formatMeasurePerUnit() 660 MeasureUnit perUnit; field in MeasureFormat.NumberFormatterCacheEntry 672 MeasureUnit perUnit) { in getUnitFormatterFromCache() argument 674 … if (formatter1.type == type && formatter1.unit == unit && formatter1.perUnit == perUnit) { in getUnitFormatterFromCache() 680 && formatter2.perUnit == perUnit) { in getUnitFormatterFromCache() 686 && formatter3.perUnit == perUnit) { in getUnitFormatterFromCache() 696 formatter = getNumberFormatter().unit(unit).perUnit(perUnit) in getUnitFormatterFromCache() 699 formatter = NumberFormatter.withLocale(getLocale()).unit(unit).perUnit(perUnit) in getUnitFormatterFromCache() 703 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberFormatterSettings.java | 165 public T perUnit(MeasureUnit perUnit) { in perUnit() method in NumberFormatterSettings 166 return create(KEY_PER_UNIT, perUnit); in perUnit() 614 if (macros.perUnit == null) { in resolve() 615 macros.perUnit = (MeasureUnit) current.value; in resolve()
|
D | NumberSkeletonImpl.java | 721 checkNull(macros.perUnit, segment); in parseStem() 826 if (macros.perUnit != null && GeneratorHelpers.perUnit(macros, sb)) { in generateSkeleton() 978 macros.perUnit = macros.unit; in parseMeasurePerUnitOption() 1310 private static boolean perUnit(MacroProps macros, StringBuilder sb) { in perUnit() method in NumberSkeletonImpl.GeneratorHelpers 1312 if (macros.perUnit instanceof Currency || macros.perUnit instanceof NoUnit) { in perUnit() 1317 BlueprintHelpers.generateMeasureUnitOption(macros.perUnit, sb); in perUnit()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberFormatterSettings.java | 172 public T perUnit(MeasureUnit perUnit) { in perUnit() argument 173 return create(KEY_PER_UNIT, perUnit); in perUnit() 631 if (macros.perUnit == null) { in resolve() 632 macros.perUnit = (MeasureUnit) current.value; in resolve()
|
D | NumberSkeletonImpl.java | 720 checkNull(macros.perUnit, segment); in parseStem() 825 if (macros.perUnit != null && GeneratorHelpers.perUnit(macros, sb)) { in generateSkeleton() 977 macros.perUnit = macros.unit; in parseMeasurePerUnitOption() 1309 private static boolean perUnit(MacroProps macros, StringBuilder sb) { in perUnit() method in NumberSkeletonImpl.GeneratorHelpers 1311 if (macros.perUnit instanceof Currency || macros.perUnit instanceof NoUnit) { in perUnit() 1316 BlueprintHelpers.generateMeasureUnitOption(macros.perUnit, sb); in perUnit()
|
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/number/ |
D | NumberFormatterSettings.java.patch | 5 * See {@link #perUnit} for information on how to format strings like "5 meters per second". 16 * @see #perUnit
|
/external/skia/tests/ |
D | SkGlyphBufferTest.cpp | 18 const int perUnit = 1u << (PG::kSubPixelPosLen + 2); in DEF_TEST() local 19 const float step = 1.f / perUnit; in DEF_TEST() 20 const int testLimit = 2 * perUnit; in DEF_TEST()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numberformatter.h | 1372 MeasureUnit perUnit; // = NoUnit::base(); member 1589 Derived perUnit(const icu::MeasureUnit &perUnit) const &; 1600 Derived perUnit(const icu::MeasureUnit &perUnit) &&; 1615 Derived adoptPerUnit(icu::MeasureUnit *perUnit) const &; 1626 Derived adoptPerUnit(icu::MeasureUnit *perUnit) &&;
|
D | measfmt.h | 219 const MeasureUnit &perUnit,
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 587 NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND), in unitCompoundMeasure() 602 NumberFormatter.with().unit(MeasureUnit.POUND).perUnit(MeasureUnit.SQUARE_MILE), in unitCompoundMeasure() 617 NumberFormatter.with().unit(MeasureUnit.JOULE).perUnit(MeasureUnit.FURLONG), in unitCompoundMeasure() 2331 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).perUnit(MeasureUnit.DAY), in fieldPositionCoverage() 2370 …NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND).unitWidth(UnitWidth.FUL… in fieldPositionCoverage()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 590 NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND), in unitCompoundMeasure() 605 NumberFormatter.with().unit(MeasureUnit.POUND).perUnit(MeasureUnit.SQUARE_MILE), in unitCompoundMeasure() 620 NumberFormatter.with().unit(MeasureUnit.JOULE).perUnit(MeasureUnit.FURLONG), in unitCompoundMeasure() 2334 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).perUnit(MeasureUnit.DAY), in fieldPositionCoverage() 2373 …NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND).unitWidth(UnitWidth.FUL… in fieldPositionCoverage()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | MeasureUnit.java | 214 public static MeasureUnit resolveUnitPerUnit(MeasureUnit unit, MeasureUnit perUnit) { in resolveUnitPerUnit() argument 215 return unitPerUnitToSingleUnit.get(Pair.of(unit, perUnit)); in resolveUnitPerUnit()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | MeasureUnit.java | 204 public static MeasureUnit resolveUnitPerUnit(MeasureUnit unit, MeasureUnit perUnit) { in resolveUnitPerUnit() argument 205 return unitPerUnitToSingleUnit.get(Pair.of(unit, perUnit)); in resolveUnitPerUnit()
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 633 NumberFormatter::with().unit(METER).perUnit(SECOND), in unitCompoundMeasure() 663 NumberFormatter::with().unit(JOULE).perUnit(FURLONG), in unitCompoundMeasure() 2450 NumberFormatter::with().unit(FAHRENHEIT).perUnit(DAY), in fieldPositionCoverage() 2492 … NumberFormatter::with().unit(METER).perUnit(SECOND).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME), in fieldPositionCoverage()
|