Searched refs:MeasureUnit (Results 1 – 21 of 21) sorted by relevance
24 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit)498 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce()499 return MeasureUnit::create(0, 0, status); in createGForce()502 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared()503 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared()506 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute()507 return MeasureUnit::create(1, 0, status); in createArcMinute()510 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond()511 return MeasureUnit::create(1, 1, status); in createArcSecond()514 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree()[all …]
35 MeasureUnit(other) { in CurrencyUnit()43 MeasureUnit::operator=(other); in operator =()
101 : MeasureUnit(other), fTimeUnitField(other.fTimeUnitField) { in TimeUnit()114 MeasureUnit::operator=(other); in operator =()
26 Measure::Measure(const Formattable& _number, MeasureUnit* adoptedUnit, in Measure()44 unit = (MeasureUnit*) other.unit->clone(); in operator =()
162 static UBool isCurrency(const MeasureUnit &unit) { in isCurrency()188 MeasureUnit *units = NULL; in loadMeasureUnitData()189 int32_t unitCount = MeasureUnit::getAvailable(units, 0, status); in loadMeasureUnitData()193 units = new MeasureUnit[unitCount]; in loadMeasureUnitData()198 unitCount = MeasureUnit::getAvailable(units, unitCount, status); in loadMeasureUnitData()390 static UBool isTimeUnit(const MeasureUnit &mu, const char *tu) { in isTimeUnit()594 const MeasureUnit &perUnit, in formatMeasurePerUnit()601 MeasureUnit *resolvedUnit = in formatMeasurePerUnit()602 MeasureUnit::resolveUnitPerUnit(measure.getUnit(), perUnit); in formatMeasurePerUnit()770 const MeasureUnit& amtUnit = measure.getUnit(); in formatMeasure()[all …]
37 public class MeasureUnit implements Serializable { class43 private static final Map<String, Map<String,MeasureUnit>> cache 44 = new HashMap<String, Map<String,MeasureUnit>>();65 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit111 if (!(rhs instanceof MeasureUnit)) { in equals()114 MeasureUnit c = (MeasureUnit) rhs; in equals()143 public synchronized static Set<MeasureUnit> getAvailable(String type) { in getAvailable()144 Map<String, MeasureUnit> units = cache.get(type); in getAvailable()147 return units == null ? Collections.<MeasureUnit>emptySet() in getAvailable()148 : Collections.unmodifiableSet(new HashSet<MeasureUnit>(units.values())); in getAvailable()[all …]
34 private final MeasureUnit unit;42 public Measure(Number number, MeasureUnit unit) { in Measure()116 public MeasureUnit getUnit() { in getUnit()
20 public class TimeUnit extends MeasureUnit {
55 public class Currency extends MeasureUnit {285 …return (Currency) MeasureUnit.internalGetInstance("currency", theISOCode.toUpperCase(Locale.ENGLIS… in getInstance()
36 class U_I18N_API MeasureUnit: public UObject {43 MeasureUnit() : fTypeId(0), fSubTypeId(0) { in MeasureUnit() function51 MeasureUnit(const MeasureUnit &other);57 MeasureUnit &operator=(const MeasureUnit &other);70 virtual ~MeasureUnit();112 MeasureUnit *destArray,130 MeasureUnit *destArray,190 static MeasureUnit *resolveUnitPerUnit(191 const MeasureUnit &unit, const MeasureUnit &perUnit);208 static MeasureUnit *createGForce(UErrorCode &status);[all …]
27 class MeasureUnit; variable53 Measure(const Formattable& number, MeasureUnit* adoptedUnit,100 inline const MeasureUnit& getUnit() const;145 MeasureUnit* unit;152 inline const MeasureUnit& Measure::getUnit() const { in getUnit()
74 class MeasureUnit; variable205 const MeasureUnit &perUnit,345 const MeasureUnit &perUnit,
35 class U_I18N_API CurrencyUnit: public MeasureUnit {
30 class U_I18N_API TimeUnit: public MeasureUnit {
36 import com.ibm.icu.util.MeasureUnit;228 MeasureUnit[] units = { in TestCompatible53_1()229 MeasureUnit.G_FORCE, in TestCompatible53_1()230 MeasureUnit.DEGREE, in TestCompatible53_1()231 MeasureUnit.ARC_MINUTE, in TestCompatible53_1()232 MeasureUnit.ARC_SECOND, in TestCompatible53_1()233 MeasureUnit.ACRE, in TestCompatible53_1()234 MeasureUnit.HECTARE, in TestCompatible53_1()235 MeasureUnit.SQUARE_FOOT, in TestCompatible53_1()236 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53_1()[all …]
19 import com.ibm.icu.util.MeasureUnit;70 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting()71 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting()72 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting()73 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting()74 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting()75 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting()97 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
19 import com.ibm.icu.util.MeasureUnit;394 Measure measure = new Measure(23, MeasureUnit.CELSIUS); in TestStandInForMeasureFormat()401 new Measure(70, MeasureUnit.FOOT), in TestStandInForMeasureFormat()402 new Measure(5.3, MeasureUnit.INCH))); in TestStandInForMeasureFormat()
84 const MeasureUnit &unit,85 const MeasureUnit &perUnit,91 const MeasureUnit &unit,92 const MeasureUnit &perUnit,145 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53_1()146 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1()147 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1()148 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1()149 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1()150 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53_1()[all …]
142 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT]; in testAPI()144 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status); in testAPI()145 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status); in testAPI()146 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status); in testAPI()147 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status); in testAPI()148 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status); in testAPI()149 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status); in testAPI()150 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status); in testAPI()156 MeasureUnit *ptr = TimeUnit::createInstance(j, status); in testAPI()162 MeasureUnit(*ptr) == *ptrs[j]); in testAPI()
42 import com.ibm.icu.util.MeasureUnit;124 …private final transient Map<MeasureUnit, EnumMap<FormatWidth, QuantityFormatter>> unitToStyleToCou…132 …private final transient Map<MeasureUnit, EnumMap<FormatWidth, SimplePatternFormatter>> unitToStyle…142 private static final Map<MeasureUnit, Integer> hmsTo012 =143 new HashMap<MeasureUnit, Integer>();146 hmsTo012.put(MeasureUnit.HOUR, 0); in hmsTo012.put()147 hmsTo012.put(MeasureUnit.MINUTE, 1); in hmsTo012.put()148 hmsTo012.put(MeasureUnit.SECOND, 2); in hmsTo012.put()393 MeasureUnit unit = lowValue.getUnit(); in formatMeasureRange()506 MeasureUnit perUnit, in formatMeasurePerUnit()[all …]
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...