Home
last modified time | relevance | path

Searched refs:perUnit (Results 1 – 25 of 34) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMacroProps.java22 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()
DLongNameHandler.java188 MeasureUnit perUnit, in forMeasureUnit() argument
192 if (perUnit != null) { in forMeasureUnit()
194 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit()
199 return forCompoundUnit(locale, unit, perUnit, width, rules, parent); in forMeasureUnit()
217 MeasureUnit perUnit, in forCompoundUnit() argument
224 getMeasureData(locale, perUnit, width, secondaryData); in forCompoundUnit()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMacroProps.java26 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()
DLongNameHandler.java192 MeasureUnit perUnit, in forMeasureUnit() argument
196 if (perUnit != null) { in forMeasureUnit()
198 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit()
203 return forCompoundUnit(locale, unit, perUnit, width, rules, parent); in forMeasureUnit()
221 MeasureUnit perUnit, in forCompoundUnit() argument
228 getMeasureData(locale, perUnit, width, secondaryData); in forCompoundUnit()
/external/icu/icu4c/source/i18n/
Dnumber_fluent.cpp84 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 …]
Dnumber_longnames.cpp160 …eHandler::forMeasureUnit(const Locale &loc, const MeasureUnit &unitRef, const MeasureUnit &perUnit, in forMeasureUnit() argument
164 if (uprv_strcmp(perUnit.getType(), "none") != 0) { in forMeasureUnit()
167 MeasureUnit resolved = MeasureUnit::resolveUnitPerUnit(unit, perUnit, &isResolved); in forMeasureUnit()
172 return forCompoundUnit(loc, unit, perUnit, width, rules, parent, status); in forMeasureUnit()
190 …ameHandler::forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit, in forCompoundUnit() argument
202 getMeasureData(loc, perUnit, width, secondaryData, status); in forCompoundUnit()
Dnumber_longnames.h24 forMeasureUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
42 forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
Dnumber_skeletons.cpp648 CHECK_NULL(seen, perUnit, status); in parseStem()
758 if (GeneratorHelpers::perUnit(macros, sb, status)) { in generateSkeleton()
955 macros.perUnit = macros.unit; in parseMeasurePerUnitOption()
1354 bool GeneratorHelpers::perUnit(const MacroProps& macros, UnicodeString& sb, UErrorCode& status) { in perUnit() function in GeneratorHelpers
1356 if (utils::unitIsNoUnit(macros.perUnit)) { in perUnit()
1357 if (utils::unitIsPercent(macros.perUnit) || utils::unitIsPermille(macros.perUnit)) { in perUnit()
1364 } else if (utils::unitIsCurrency(macros.perUnit)) { in perUnit()
1369 blueprint_helpers::generateMeasureUnitOption(macros.perUnit, sb, status); in perUnit()
Dnumber_skeletons.h280 static bool perUnit(const MacroProps& macros, UnicodeString& sb, UErrorCode& status);
309 bool perUnit = false; member
Dmeasfmt.cpp760 const MeasureUnit &perUnit, in formatMeasurePerUnit() argument
769 MeasureUnit::resolveUnitPerUnit(measure.getUnit(), perUnit, &isResolved); in formatMeasurePerUnit()
780 perUnit, in formatMeasurePerUnit()
1168 const MeasureUnit &perUnit, in withPerUnitAndAppend() argument
1175 const SimpleFormatter *perUnitFormatter = getFormatterOrNull(perUnit, fWidth, PER_UNIT_INDEX); in withPerUnitAndAppend()
1189 getPluralFormatter(perUnit, fWidth, StandardPlural::ONE, status); in withPerUnitAndAppend()
Dmeasunit.cpp1278 const MeasureUnit &unit, const MeasureUnit &perUnit, bool* isResolved) { in resolveUnitPerUnit() argument
1280 int32_t perUnitOffset = perUnit.getOffset(); in resolveUnitPerUnit()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java385 MeasureUnit perUnit, in formatMeasurePerUnit() argument
390 perUnit).format(measure.getNumber()); in formatMeasurePerUnit()
700 MeasureUnit perUnit; field in MeasureFormat.NumberFormatterCacheEntry
712 MeasureUnit perUnit) { in getUnitFormatterFromCache() argument
714 … if (formatter1.type == type && formatter1.unit == unit && formatter1.perUnit == perUnit) { in getUnitFormatterFromCache()
720 && formatter2.perUnit == perUnit) { in getUnitFormatterFromCache()
726 && formatter3.perUnit == perUnit) { in getUnitFormatterFromCache()
736 formatter = getNumberFormatter().unit(unit).perUnit(perUnit) in getUnitFormatterFromCache()
739 formatter = NumberFormatter.withLocale(getLocale()).unit(unit).perUnit(perUnit) in getUnitFormatterFromCache()
743 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java360 MeasureUnit perUnit, in formatMeasurePerUnit() argument
365 perUnit).format(measure.getNumber()); in formatMeasurePerUnit()
659 MeasureUnit perUnit; field in MeasureFormat.NumberFormatterCacheEntry
671 MeasureUnit perUnit) { in getUnitFormatterFromCache() argument
673 … if (formatter1.type == type && formatter1.unit == unit && formatter1.perUnit == perUnit) { in getUnitFormatterFromCache()
679 && formatter2.perUnit == perUnit) { in getUnitFormatterFromCache()
685 && formatter3.perUnit == perUnit) { in getUnitFormatterFromCache()
695 formatter = getNumberFormatter().unit(unit).perUnit(perUnit) in getUnitFormatterFromCache()
698 formatter = NumberFormatter.withLocale(getLocale()).unit(unit).perUnit(perUnit) in getUnitFormatterFromCache()
702 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterSettings.java176 public T perUnit(MeasureUnit perUnit) { in perUnit() method in NumberFormatterSettings
177 return create(KEY_PER_UNIT, perUnit); in perUnit()
655 if (macros.perUnit == null) { in resolve()
656 macros.perUnit = (MeasureUnit) current.value; in resolve()
DNumberSkeletonImpl.java720 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/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterSettings.java174 public T perUnit(MeasureUnit perUnit) { in perUnit() method in NumberFormatterSettings
175 return create(KEY_PER_UNIT, perUnit); in perUnit()
642 if (macros.perUnit == null) { in resolve()
643 macros.perUnit = (MeasureUnit) current.value; in resolve()
DNumberSkeletonImpl.java721 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/icu4c/source/i18n/unicode/
Dnumberformatter.h1418 MeasureUnit perUnit; // = NoUnit::base(); member
1633 Derived perUnit(const icu::MeasureUnit &perUnit) const &;
1644 Derived perUnit(const icu::MeasureUnit &perUnit) &&;
1663 Derived adoptPerUnit(icu::MeasureUnit *perUnit) const &;
1674 Derived adoptPerUnit(icu::MeasureUnit *perUnit) &&;
Dmeasfmt.h215 const MeasureUnit &perUnit,
375 const MeasureUnit &perUnit,
Dmeasunit.h200 const MeasureUnit &unit, const MeasureUnit &perUnit, bool* isResolved);
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMeasureUnit.java204 public static MeasureUnit resolveUnitPerUnit(MeasureUnit unit, MeasureUnit perUnit) { in resolveUnitPerUnit() argument
205 return unitPerUnitToSingleUnit.get(Pair.of(unit, perUnit)); in resolveUnitPerUnit()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMeasureUnit.java214 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/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java548 NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND), in unitCompoundMeasure()
563 NumberFormatter.with().unit(MeasureUnit.POUND).perUnit(MeasureUnit.SQUARE_MILE), in unitCompoundMeasure()
578 NumberFormatter.with().unit(MeasureUnit.JOULE).perUnit(MeasureUnit.FURLONG), in unitCompoundMeasure()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java545 NumberFormatter.with().unit(MeasureUnit.METER).perUnit(MeasureUnit.SECOND), in unitCompoundMeasure()
560 NumberFormatter.with().unit(MeasureUnit.POUND).perUnit(MeasureUnit.SQUARE_MILE), in unitCompoundMeasure()
575 NumberFormatter.with().unit(MeasureUnit.JOULE).perUnit(MeasureUnit.FURLONG), in unitCompoundMeasure()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMeasureUnitTest.java1761 MeasureUnit perUnit = (MeasureUnit) row[2]; in testSimplePer() local
1775 perUnit, in testSimplePer()
2227 MeasureUnit perUnit = namesToUnits.get(perStrings.second); in getUnitsToPerParts() local
2228 if (unit != null && perUnit != null) { in getUnitsToPerParts()
2229 unitsToPerUnits.put(entry.getKey(), Pair.of(unit, perUnit)); in getUnitsToPerParts()

12