Home
last modified time | relevance | path

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

12345678

/third_party/node/deps/icu-small/source/i18n/
Dmeasunit.cpp28 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
590 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()
591 return MeasureUnit::create(0, 0, status); in createGForce()
594 MeasureUnit MeasureUnit::getGForce() { in getGForce()
595 return MeasureUnit(0, 0); in getGForce()
598 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()
599 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
602 MeasureUnit MeasureUnit::getMeterPerSecondSquared() { in getMeterPerSecondSquared()
603 return MeasureUnit(0, 1); in getMeterPerSecondSquared()
606 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dmeasunit.cpp28 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
588 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()
589 return MeasureUnit::create(0, 0, status); in createGForce()
592 MeasureUnit MeasureUnit::getGForce() { in getGForce()
593 return MeasureUnit(0, 0); in getGForce()
596 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()
597 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
600 MeasureUnit MeasureUnit::getMeterPerSecondSquared() { in getMeterPerSecondSquared()
601 return MeasureUnit(0, 1); in getMeterPerSecondSquared()
604 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()
[all …]
/third_party/icu/icu4c/source/i18n/
Dmeasunit.cpp28 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
588 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()
589 return MeasureUnit::create(0, 0, status); in createGForce()
592 MeasureUnit MeasureUnit::getGForce() { in getGForce()
593 return MeasureUnit(0, 0); in getGForce()
596 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()
597 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
600 MeasureUnit MeasureUnit::getMeterPerSecondSquared() { in getMeterPerSecondSquared()
601 return MeasureUnit(0, 1); in getMeterPerSecondSquared()
604 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DMeasureUnit.java40 public class MeasureUnit implements Serializable { class
46 private static final Map<String, Map<String,MeasureUnit>> cache
72 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit
110 if (!(rhs instanceof MeasureUnit)) { in equals()
113 MeasureUnit c = (MeasureUnit) rhs; in equals()
138 public synchronized static Set<MeasureUnit> getAvailable(String type) { in getAvailable()
140 Map<String, MeasureUnit> units = cache.get(type); in getAvailable()
144 return units == null ? Collections.<MeasureUnit>emptySet() in getAvailable()
151 public synchronized static Set<MeasureUnit> getAvailable() { in getAvailable()
152 Set<MeasureUnit> result = new HashSet<>(); in getAvailable()
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Dmeasunit.h371 class U_I18N_API MeasureUnit: public UObject {
379 MeasureUnit();
385 MeasureUnit(const MeasureUnit &other);
391 MeasureUnit(MeasureUnit &&other) noexcept;
406 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
412 MeasureUnit &operator=(const MeasureUnit &other);
418 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
425 virtual MeasureUnit* clone() const;
431 virtual ~MeasureUnit();
499 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
[all …]
Dnounit.h45 static inline MeasureUnit U_EXPORT2 base() { in base()
46 return MeasureUnit(); in base()
59 static inline MeasureUnit U_EXPORT2 percent() { in percent()
60 return MeasureUnit::getPercent(); in percent()
73 static inline MeasureUnit U_EXPORT2 permille() { in permille()
74 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()
/third_party/icu/icu4c/source/i18n/unicode/
Dmeasunit.h369 class U_I18N_API MeasureUnit: public UObject {
377 MeasureUnit();
383 MeasureUnit(const MeasureUnit &other);
389 MeasureUnit(MeasureUnit &&other) noexcept;
404 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
410 MeasureUnit &operator=(const MeasureUnit &other);
416 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
423 virtual MeasureUnit* clone() const;
429 virtual ~MeasureUnit();
497 MeasureUnit withPrefix(UMeasurePrefix 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()
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dmeasunit.h369 class U_I18N_API MeasureUnit: public UObject {
377 MeasureUnit();
383 MeasureUnit(const MeasureUnit &other);
389 MeasureUnit(MeasureUnit &&other) noexcept;
404 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
410 MeasureUnit &operator=(const MeasureUnit &other);
416 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
423 virtual MeasureUnit* clone() const;
429 virtual ~MeasureUnit();
497 MeasureUnit withPrefix(UMeasurePrefix 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()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dmeasunit.cpp26 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)
570 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()
571 return MeasureUnit::create(0, 0, status); in createGForce()
574 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()
575 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()
578 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()
579 return MeasureUnit::create(1, 0, status); in createArcMinute()
582 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond()
583 return MeasureUnit::create(1, 1, status); in createArcSecond()
586 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMeasureUnitTest.java51 import com.ibm.icu.util.MeasureUnit;
333 MeasureUnit[] units = { in TestCompatible53()
334 MeasureUnit.G_FORCE, in TestCompatible53()
335 MeasureUnit.DEGREE, in TestCompatible53()
336 MeasureUnit.ARC_MINUTE, in TestCompatible53()
337 MeasureUnit.ARC_SECOND, in TestCompatible53()
338 MeasureUnit.ACRE, in TestCompatible53()
339 MeasureUnit.HECTARE, in TestCompatible53()
340 MeasureUnit.SQUARE_FOOT, in TestCompatible53()
341 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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMeasureUnit.java43 public class MeasureUnit implements Serializable { class
49 private static final Map<String, Map<String,MeasureUnit>> cache
373 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit
393 public static MeasureUnit forIdentifier(String identifier) { in forIdentifier()
406 public static MeasureUnit fromMeasureUnitImpl(MeasureUnitImpl measureUnitImpl) { in fromMeasureUnitImpl()
409 MeasureUnit result = MeasureUnit.findBySubType(identifier); in fromMeasureUnitImpl()
414 return new MeasureUnit(measureUnitImpl); in fromMeasureUnitImpl()
417 private MeasureUnit(MeasureUnitImpl measureUnitImpl) { in MeasureUnit() method in MeasureUnit
484 public MeasureUnit withPrefix(MeasurePrefix prefix) { in withPrefix()
532 public MeasureUnit withDimensionality(int dimensionality) { in withDimensionality()
[all …]
DNoUnit.java22 public static final MeasureUnit BASE = null;
33 public static final MeasureUnit PERCENT = MeasureUnit.PERCENT;
44 public static final MeasureUnit PERMILLE = MeasureUnit.PERMILLE;
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DMeasureUnitTest.java51 import ohos.global.icu.util.MeasureUnit;
322 MeasureUnit[] units = { in TestCompatible53()
323 MeasureUnit.G_FORCE, in TestCompatible53()
324 MeasureUnit.DEGREE, in TestCompatible53()
325 MeasureUnit.ARC_MINUTE, in TestCompatible53()
326 MeasureUnit.ARC_SECOND, in TestCompatible53()
327 MeasureUnit.ACRE, in TestCompatible53()
328 MeasureUnit.HECTARE, in TestCompatible53()
329 MeasureUnit.SQUARE_FOOT, in TestCompatible53()
330 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp121 const MeasureUnit &unit,
122 const MeasureUnit &perUnit,
128 const MeasureUnit &unit,
129 const MeasureUnit &perUnit,
145 const MeasureUnit *unit,
159 const MeasureUnit& unit,
164 const MeasureUnit& unit,
169 const MeasureUnit& unit,
236 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53()
237 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53()
[all …]
Dnumbertest.h115 MeasureUnit METER;
116 MeasureUnit METER_PER_SECOND;
117 MeasureUnit DAY;
118 MeasureUnit SQUARE_METER;
119 MeasureUnit FAHRENHEIT;
120 MeasureUnit SECOND;
121 MeasureUnit POUND;
122 MeasureUnit POUND_FORCE;
123 MeasureUnit SQUARE_MILE;
124 MeasureUnit SQUARE_INCH;
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Dmeasunit.h38 class U_I18N_API MeasureUnit: public UObject {
46 MeasureUnit();
52 MeasureUnit(const MeasureUnit &other);
58 MeasureUnit &operator=(const MeasureUnit &other);
71 virtual ~MeasureUnit();
113 MeasureUnit *destArray,
131 MeasureUnit *destArray,
199 static MeasureUnit resolveUnitPerUnit(
200 const MeasureUnit &unit, const MeasureUnit &perUnit, bool* isResolved);
217 static MeasureUnit *createGForce(UErrorCode &status);
[all …]
Dmeasure.h29 class MeasureUnit; variable
55 Measure(const Formattable& number, MeasureUnit* adoptedUnit,
102 inline const MeasureUnit& getUnit() const;
147 MeasureUnit* unit;
154 inline const MeasureUnit& Measure::getUnit() const { in getUnit()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java57 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()
543 NumberFormatter.with().unit(MeasureUnit.forIdentifier("hectometer")), in unitMeasure()
561 new Measure(5.43, MeasureUnit.METER), in unitMeasure()
568 NumberFormatter.with().unit(MeasureUnit.METER), in unitMeasure()
577 NumberFormatter.with().unit(MeasureUnit.METER), 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()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DMeasureUnitImpl.java14 import com.ibm.icu.util.MeasureUnit;
26 private MeasureUnit.Complexity complexity = MeasureUnit.Complexity.SINGLE;
96 if (this.getComplexity() == MeasureUnit.Complexity.MIXED) { in extractIndividualUnitsWithIndices()
158 if (this.singleUnits.size() > 1 && this.complexity == MeasureUnit.Complexity.SINGLE) { in appendSingleUnit()
159 this.setComplexity(MeasureUnit.Complexity.COMPOUND); in appendSingleUnit()
170 public MeasureUnit build() { in build()
171 return MeasureUnit.fromMeasureUnitImpl(this); in build()
196 public MeasureUnit.Complexity getComplexity() { in getComplexity()
200 public void setComplexity(MeasureUnit.Complexity complexity) { in setComplexity()
215 if (this.complexity == MeasureUnit.Complexity.COMPOUND) { in serialize()
[all …]

12345678