Home
last modified time | relevance | path

Searched refs:MeasureUnit (Results 1 – 25 of 138) sorted by relevance

123456

/external/icu/icu4c/source/i18n/
Dmeasunit.cpp28 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
621 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()
622 return MeasureUnit::create(0, 0, status); in createGForce()
625 MeasureUnit MeasureUnit::getGForce() { in getGForce()
626 return MeasureUnit(0, 0); in getGForce()
629 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()
630 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
633 MeasureUnit MeasureUnit::getMeterPerSecondSquared() { in getMeterPerSecondSquared()
634 return MeasureUnit(0, 1); in getMeterPerSecondSquared()
637 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()
[all …]
Dmeasunit_extra.cpp765 SingleUnitImpl SingleUnitImpl::forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnit()
781 MeasureUnit SingleUnitImpl::build(UErrorCode& status) const { in build()
804 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit()
814 const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnitMaybeCopy()
849 MeasureUnit MeasureUnitImpl::build(UErrorCode& status) && { in build()
851 return MeasureUnit(std::move(*this)); in build()
854 MeasureUnit MeasureUnit::forIdentifier(StringPiece identifier, UErrorCode& status) { in forIdentifier()
858 UMeasureUnitComplexity MeasureUnit::getComplexity(UErrorCode& status) const { in getComplexity()
863 UMeasureSIPrefix MeasureUnit::getSIPrefix(UErrorCode& status) const { in getSIPrefix()
867 MeasureUnit MeasureUnit::withSIPrefix(UMeasureSIPrefix prefix, UErrorCode& status) const { in withSIPrefix()
[all …]
Dnumber_longnames.h23 const MeasureUnit& unit,
29 const MeasureUnit& unit,
59 … static void forMeasureUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
102 …static void forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
138 static void forMeasureUnit(const Locale &loc, const MeasureUnit &mixedUnit,
209 const MaybeStackVector<MeasureUnit> &units,
230 LocalArray<MeasureUnit> fMeasureUnits;
/external/icu/icu4c/source/i18n/unicode/
Dmeasunit.h237 class U_I18N_API MeasureUnit: public UObject {
245 MeasureUnit();
251 MeasureUnit(const MeasureUnit &other);
258 MeasureUnit(MeasureUnit &&other) noexcept;
272 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
279 MeasureUnit &operator=(const MeasureUnit &other);
286 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
294 virtual MeasureUnit* clone() const;
300 virtual ~MeasureUnit();
368 MeasureUnit withSIPrefix(UMeasureSIPrefix prefix, UErrorCode& status) const;
[all …]
Dnounit.h47 static inline MeasureUnit U_EXPORT2 base() { in base()
48 return MeasureUnit(); in base()
61 static inline MeasureUnit U_EXPORT2 percent() { in percent()
62 return MeasureUnit::getPercent(); in percent()
75 static inline MeasureUnit U_EXPORT2 permille() { in permille()
76 return MeasureUnit::getPermille(); in permille()
Dmeasure.h31 class MeasureUnit; variable
57 Measure(const Formattable& number, MeasureUnit* adoptedUnit,
104 inline const MeasureUnit& getUnit() const;
149 MeasureUnit* unit;
156 inline const MeasureUnit& Measure::getUnit() const { in getUnit()
/external/icu/libicu/cts_headers/unicode/
Dmeasunit.h237 class U_I18N_API MeasureUnit: public UObject {
245 MeasureUnit();
251 MeasureUnit(const MeasureUnit &other);
258 MeasureUnit(MeasureUnit &&other) noexcept;
272 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
279 MeasureUnit &operator=(const MeasureUnit &other);
286 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
294 virtual MeasureUnit* clone() const;
300 virtual ~MeasureUnit();
368 MeasureUnit withSIPrefix(UMeasureSIPrefix prefix, UErrorCode& status) const;
[all …]
Dnounit.h47 static inline MeasureUnit U_EXPORT2 base() { in base()
48 return MeasureUnit(); in base()
61 static inline MeasureUnit U_EXPORT2 percent() { in percent()
62 return MeasureUnit::getPercent(); in percent()
75 static inline MeasureUnit U_EXPORT2 permille() { in permille()
76 return MeasureUnit::getPermille(); in permille()
Dmeasure.h31 class MeasureUnit; variable
57 Measure(const Formattable& number, MeasureUnit* adoptedUnit,
104 inline const MeasureUnit& getUnit() const;
149 MeasureUnit* unit;
156 inline const MeasureUnit& Measure::getUnit() const { in getUnit()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMeasureUnit.java44 public class MeasureUnit implements Serializable { class
50 private static final Map<String, Map<String,MeasureUnit>> cache
330 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit
350 public static MeasureUnit forIdentifier(String identifier) { in forIdentifier()
363 public static MeasureUnit fromMeasureUnitImpl(MeasureUnitImpl measureUnitImpl) { in fromMeasureUnitImpl()
366 MeasureUnit result = MeasureUnit.findBySubType(identifier); in fromMeasureUnitImpl()
371 return new MeasureUnit(measureUnitImpl); in fromMeasureUnitImpl()
374 private MeasureUnit(MeasureUnitImpl measureUnitImpl) { in MeasureUnit() method in MeasureUnit
444 public MeasureUnit withSIPrefix(SIPrefix prefix) { in withSIPrefix()
495 public MeasureUnit withDimensionality(int dimensionality) { in withDimensionality()
[all …]
DNoUnit.java24 public static final MeasureUnit BASE = null;
36 public static final MeasureUnit PERCENT = MeasureUnit.PERCENT;
48 public static final MeasureUnit PERMILLE = MeasureUnit.PERMILLE;
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMeasureUnit.java44 public class MeasureUnit implements Serializable { class
50 private static final Map<String, Map<String,MeasureUnit>> cache
308 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit
327 public static MeasureUnit forIdentifier(String identifier) { in forIdentifier()
340 public static MeasureUnit fromMeasureUnitImpl(MeasureUnitImpl measureUnitImpl) { in fromMeasureUnitImpl()
343 MeasureUnit result = MeasureUnit.findBySubType(identifier); in fromMeasureUnitImpl()
348 return new MeasureUnit(measureUnitImpl); in fromMeasureUnitImpl()
351 private MeasureUnit(MeasureUnitImpl measureUnitImpl) { in MeasureUnit() method in MeasureUnit
414 public MeasureUnit withSIPrefix(SIPrefix prefix) { in withSIPrefix()
462 public MeasureUnit withDimensionality(int dimensionality) { in withDimensionality()
[all …]
DNoUnit.java24 public static final MeasureUnit BASE = null;
35 public static final MeasureUnit PERCENT = MeasureUnit.PERCENT;
46 public static final MeasureUnit PERMILLE = MeasureUnit.PERMILLE;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMeasureUnitTest.java51 import android.icu.util.MeasureUnit;
334 MeasureUnit[] units = { in TestCompatible53()
335 MeasureUnit.G_FORCE, in TestCompatible53()
336 MeasureUnit.DEGREE, in TestCompatible53()
337 MeasureUnit.ARC_MINUTE, in TestCompatible53()
338 MeasureUnit.ARC_SECOND, in TestCompatible53()
339 MeasureUnit.ACRE, in TestCompatible53()
340 MeasureUnit.HECTARE, in TestCompatible53()
341 MeasureUnit.SQUARE_FOOT, in TestCompatible53()
342 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53()
[all …]
DPluralRangesTest.java29 import android.icu.util.MeasureUnit;
83 …{0.0, 1.0, ULocale.FRANCE, UnitWidth.FULL_NAME, MeasureUnit.FAHRENHEIT, "0–1\u00A0degré Fahrenheit… in TestFormatting()
84 …{1.0, 2.0, ULocale.FRANCE, UnitWidth.FULL_NAME, MeasureUnit.FAHRENHEIT, "1–2\u00A0degrés Fahrenhei… in TestFormatting()
85 … {3.1, 4.25, ULocale.FRANCE, UnitWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25\u202F°F"}, in TestFormatting()
86 {3.1, 4.25, ULocale.ENGLISH, UnitWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting()
87 {3.1, 4.25, ULocale.CHINESE, UnitWidth.FULL_NAME, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting()
88 {0.0, 1.0, ULocale.ENGLISH, UnitWidth.FULL_NAME, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting()
110 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitTest.java50 import com.ibm.icu.util.MeasureUnit;
331 MeasureUnit[] units = { in TestCompatible53()
332 MeasureUnit.G_FORCE, in TestCompatible53()
333 MeasureUnit.DEGREE, in TestCompatible53()
334 MeasureUnit.ARC_MINUTE, in TestCompatible53()
335 MeasureUnit.ARC_SECOND, in TestCompatible53()
336 MeasureUnit.ACRE, in TestCompatible53()
337 MeasureUnit.HECTARE, in TestCompatible53()
338 MeasureUnit.SQUARE_FOOT, in TestCompatible53()
339 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53()
[all …]
DPluralRangesTest.java28 import com.ibm.icu.util.MeasureUnit;
80 …{0.0, 1.0, ULocale.FRANCE, UnitWidth.FULL_NAME, MeasureUnit.FAHRENHEIT, "0–1\u00A0degré Fahrenheit… in TestFormatting()
81 …{1.0, 2.0, ULocale.FRANCE, UnitWidth.FULL_NAME, MeasureUnit.FAHRENHEIT, "1–2\u00A0degrés Fahrenhei… in TestFormatting()
82 … {3.1, 4.25, ULocale.FRANCE, UnitWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25\u202F°F"}, in TestFormatting()
83 {3.1, 4.25, ULocale.ENGLISH, UnitWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting()
84 {3.1, 4.25, ULocale.CHINESE, UnitWidth.FULL_NAME, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting()
85 {0.0, 1.0, ULocale.ENGLISH, UnitWidth.FULL_NAME, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting()
107 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
/external/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp116 const MeasureUnit &unit,
117 const MeasureUnit &perUnit,
123 const MeasureUnit &unit,
124 const MeasureUnit &perUnit,
140 const MeasureUnit *unit,
154 const MeasureUnit& unit,
159 const MeasureUnit& unit,
164 const MeasureUnit& unit,
227 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53()
228 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53()
[all …]
Dnumbertest.h112 MeasureUnit METER;
113 MeasureUnit METER_PER_SECOND;
114 MeasureUnit DAY;
115 MeasureUnit SQUARE_METER;
116 MeasureUnit FAHRENHEIT;
117 MeasureUnit SECOND;
118 MeasureUnit POUND;
119 MeasureUnit POUND_FORCE;
120 MeasureUnit SQUARE_MILE;
121 MeasureUnit SQUARE_INCH;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DMeasureUnitImpl.java15 import android.icu.util.MeasureUnit;
31 private MeasureUnit.Complexity complexity = MeasureUnit.Complexity.SINGLE;
113 if (this.getComplexity() == MeasureUnit.Complexity.MIXED) { in extractIndividualUnits()
174 if (this.singleUnits.size() > 1 && this.complexity == MeasureUnit.Complexity.SINGLE) { in appendSingleUnit()
175 this.setComplexity(MeasureUnit.Complexity.COMPOUND); in appendSingleUnit()
186 public MeasureUnit build() { in build()
187 return MeasureUnit.fromMeasureUnitImpl(this); in build()
213 public MeasureUnit.Complexity getComplexity() { in getComplexity()
217 public void setComplexity(MeasureUnit.Complexity complexity) { in setComplexity()
230 if (this.complexity == MeasureUnit.Complexity.COMPOUND) { in serialize()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DMeasureUnitImpl.java14 import com.ibm.icu.util.MeasureUnit;
27 private MeasureUnit.Complexity complexity = MeasureUnit.Complexity.SINGLE;
109 if (this.getComplexity() == MeasureUnit.Complexity.MIXED) { in extractIndividualUnits()
170 if (this.singleUnits.size() > 1 && this.complexity == MeasureUnit.Complexity.SINGLE) { in appendSingleUnit()
171 this.setComplexity(MeasureUnit.Complexity.COMPOUND); in appendSingleUnit()
182 public MeasureUnit build() { in build()
183 return MeasureUnit.fromMeasureUnitImpl(this); in build()
209 public MeasureUnit.Complexity getComplexity() { in getComplexity()
213 public void setComplexity(MeasureUnit.Complexity complexity) { in setComplexity()
226 if (this.complexity == MeasureUnit.Complexity.COMPOUND) { in serialize()
[all …]
DSingleUnitImpl.java6 import com.ibm.icu.util.MeasureUnit;
34 private MeasureUnit.SIPrefix siPrefix = MeasureUnit.SIPrefix.ONE;
46 public MeasureUnit build() { in build()
143 public MeasureUnit.SIPrefix getSiPrefix() { in getSiPrefix()
147 public void setSiPrefix(MeasureUnit.SIPrefix siPrefix) { in setSiPrefix()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java56 import android.icu.util.MeasureUnit;
497 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
513 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
529 NumberFormatter.with().notation(Notation.compactLong()).unit(MeasureUnit.METER) in unitMeasure()
565 new Measure(5.43, MeasureUnit.METER), in unitMeasure()
572 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
581 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
591 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
601 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure()
612 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java55 import com.ibm.icu.util.MeasureUnit;
494 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
510 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
526 NumberFormatter.with().notation(Notation.compactLong()).unit(MeasureUnit.METER) in unitMeasure()
562 new Measure(5.43, MeasureUnit.METER), in unitMeasure()
569 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
578 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
588 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
598 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure()
609 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure()
[all …]
/external/icu/libicu/cts_headers/
Dnumber_longnames.h23 const MeasureUnit& unit,
29 const MeasureUnit& unit,
59 … static void forMeasureUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
102 …static void forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
138 static void forMeasureUnit(const Locale &loc, const MeasureUnit &mixedUnit,
209 const MaybeStackVector<MeasureUnit> &units,
230 LocalArray<MeasureUnit> fMeasureUnits;

123456