/external/icu/icu4c/source/i18n/ |
D | measunit.cpp | 26 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit) 522 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { in createGForce() 523 return MeasureUnit::create(0, 0, status); in createGForce() 526 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { in createMeterPerSecondSquared() 527 return MeasureUnit::create(0, 1, status); in createMeterPerSecondSquared() 530 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { in createArcMinute() 531 return MeasureUnit::create(1, 0, status); in createArcMinute() 534 MeasureUnit *MeasureUnit::createArcSecond(UErrorCode &status) { in createArcSecond() 535 return MeasureUnit::create(1, 1, status); in createArcSecond() 538 MeasureUnit *MeasureUnit::createDegree(UErrorCode &status) { in createDegree() [all …]
|
D | currunit.cpp | 37 MeasureUnit(other) { in CurrencyUnit() 45 MeasureUnit::operator=(other); in operator =()
|
D | tmunit.cpp | 103 : MeasureUnit(other), fTimeUnitField(other.fTimeUnitField) { in TimeUnit() 116 MeasureUnit::operator=(other); in operator =()
|
D | measure.cpp | 28 Measure::Measure(const Formattable& _number, MeasureUnit* adoptedUnit, in Measure() 46 unit = (MeasureUnit*) other.unit->clone(); in operator =()
|
D | measfmt.cpp | 184 static UBool isCurrency(const MeasureUnit &unit) { in isCurrency() 284 unitIndex = MeasureUnit::internalGetIndexForTypeAndSubtype(type, key); in consumeSubtypeTable() 542 static UBool isTimeUnit(const MeasureUnit &mu, const char *tu) { in isTimeUnit() 752 const MeasureUnit &perUnit, in formatMeasurePerUnit() 759 MeasureUnit *resolvedUnit = in formatMeasurePerUnit() 760 MeasureUnit::resolveUnitPerUnit(measure.getUnit(), perUnit); in formatMeasurePerUnit() 832 UnicodeString MeasureFormat::getUnitDisplayName(const MeasureUnit& unit, UErrorCode& /*status*/) co… in getUnitDisplayName() 946 const MeasureUnit& amtUnit = measure.getUnit(); in formatMeasure() 1093 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) const { in getFormatterOrNull() 1108 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, in getFormatter() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | MeasureUnit.java | 39 public class MeasureUnit implements Serializable { class 45 private static final Map<String, Map<String,MeasureUnit>> cache 46 = new HashMap<String, Map<String,MeasureUnit>>(); 71 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit 109 if (!(rhs instanceof MeasureUnit)) { in equals() 112 MeasureUnit c = (MeasureUnit) rhs; in equals() 137 public synchronized static Set<MeasureUnit> getAvailable(String type) { in getAvailable() 139 Map<String, MeasureUnit> units = cache.get(type); in getAvailable() 142 return units == null ? Collections.<MeasureUnit>emptySet() in getAvailable() 143 : Collections.unmodifiableSet(new HashSet<MeasureUnit>(units.values())); in getAvailable() [all …]
|
D | Measure.java | 36 private final MeasureUnit unit; 43 public Measure(Number number, MeasureUnit unit) { in Measure() 115 public MeasureUnit getUnit() { in getUnit()
|
D | TimeUnit.java | 21 public class TimeUnit extends MeasureUnit {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | MeasureUnit.java | 39 public class MeasureUnit implements Serializable { class 45 private static final Map<String, Map<String,MeasureUnit>> cache 46 = new HashMap<String, Map<String,MeasureUnit>>(); 68 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit 114 if (!(rhs instanceof MeasureUnit)) { in equals() 117 MeasureUnit c = (MeasureUnit) rhs; in equals() 147 public synchronized static Set<MeasureUnit> getAvailable(String type) { in getAvailable() 149 Map<String, MeasureUnit> units = cache.get(type); in getAvailable() 152 return units == null ? Collections.<MeasureUnit>emptySet() in getAvailable() 153 : Collections.unmodifiableSet(new HashSet<MeasureUnit>(units.values())); in getAvailable() [all …]
|
D | Measure.java | 36 private final MeasureUnit unit; 44 public Measure(Number number, MeasureUnit unit) { in Measure() 121 public MeasureUnit getUnit() { in getUnit()
|
D | TimeUnit.java | 22 public class TimeUnit extends MeasureUnit {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | MeasureUnitTest.java | 42 import com.ibm.icu.util.MeasureUnit; 287 MeasureUnit[] units = { in TestCompatible53_1() 288 MeasureUnit.G_FORCE, in TestCompatible53_1() 289 MeasureUnit.DEGREE, in TestCompatible53_1() 290 MeasureUnit.ARC_MINUTE, in TestCompatible53_1() 291 MeasureUnit.ARC_SECOND, in TestCompatible53_1() 292 MeasureUnit.ACRE, in TestCompatible53_1() 293 MeasureUnit.HECTARE, in TestCompatible53_1() 294 MeasureUnit.SQUARE_FOOT, in TestCompatible53_1() 295 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53_1() [all …]
|
D | PluralRangesTest.java | 24 import com.ibm.icu.util.MeasureUnit; 75 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 76 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 77 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 78 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 79 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 80 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 102 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
|
D | TimeUnitTest.java | 24 import com.ibm.icu.util.MeasureUnit; 431 Measure measure = new Measure(23, MeasureUnit.CELSIUS); in TestStandInForMeasureFormat() 438 new Measure(70, MeasureUnit.FOOT), in TestStandInForMeasureFormat() 439 new Measure(5.3, MeasureUnit.INCH))); in TestStandInForMeasureFormat()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | MeasureUnitTest.java | 43 import android.icu.util.MeasureUnit; 288 MeasureUnit[] units = { in TestCompatible53_1() 289 MeasureUnit.G_FORCE, in TestCompatible53_1() 290 MeasureUnit.DEGREE, in TestCompatible53_1() 291 MeasureUnit.ARC_MINUTE, in TestCompatible53_1() 292 MeasureUnit.ARC_SECOND, in TestCompatible53_1() 293 MeasureUnit.ACRE, in TestCompatible53_1() 294 MeasureUnit.HECTARE, in TestCompatible53_1() 295 MeasureUnit.SQUARE_FOOT, in TestCompatible53_1() 296 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53_1() [all …]
|
D | PluralRangesTest.java | 25 import android.icu.util.MeasureUnit; 76 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 77 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 78 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 79 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 80 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 81 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 103 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
|
D | TimeUnitTest.java | 25 import android.icu.util.MeasureUnit; 432 Measure measure = new Measure(23, MeasureUnit.CELSIUS); in TestStandInForMeasureFormat() 439 new Measure(70, MeasureUnit.FOOT), in TestStandInForMeasureFormat() 440 new Measure(5.3, MeasureUnit.INCH))); in TestStandInForMeasureFormat()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | measunit.h | 38 class U_I18N_API MeasureUnit: public UObject { 45 MeasureUnit() : fTypeId(0), fSubTypeId(0) { in MeasureUnit() function 53 MeasureUnit(const MeasureUnit &other); 59 MeasureUnit &operator=(const MeasureUnit &other); 72 virtual ~MeasureUnit(); 114 MeasureUnit *destArray, 132 MeasureUnit *destArray, 200 static MeasureUnit *resolveUnitPerUnit( 201 const MeasureUnit &unit, const MeasureUnit &perUnit); 218 static MeasureUnit *createGForce(UErrorCode &status); [all …]
|
D | measure.h | 29 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()
|
D | measfmt.h | 78 class MeasureUnit; variable 208 const MeasureUnit &perUnit, 225 UnicodeString getUnitDisplayName(const MeasureUnit& unit, UErrorCode &status) const; 348 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) const; 351 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 355 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 364 const MeasureUnit &perUnit,
|
D | currunit.h | 37 class U_I18N_API CurrencyUnit: public MeasureUnit {
|
/external/icu/icu4c/source/test/intltest/ |
D | measfmttest.cpp | 94 const MeasureUnit &unit, 95 const MeasureUnit &perUnit, 101 const MeasureUnit &unit, 102 const MeasureUnit &perUnit, 118 const MeasureUnit *unit, 173 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53_1() 174 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53_1() 175 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53_1() 176 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53_1() 177 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53_1() [all …]
|
D | tufmtts.cpp | 188 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT]; in testAPI() 190 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status); in testAPI() 191 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status); in testAPI() 192 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status); in testAPI() 193 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status); in testAPI() 194 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status); in testAPI() 195 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status); in testAPI() 196 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status); in testAPI() 202 MeasureUnit *ptr = TimeUnit::createInstance(j, status); in testAPI() 208 MeasureUnit(*ptr) == *ptrs[j]); in testAPI()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MeasureFormat.java | 46 import com.ibm.icu.util.MeasureUnit; 141 private static final Map<MeasureUnit, Integer> hmsTo012 = 142 new HashMap<MeasureUnit, Integer>(); 145 hmsTo012.put(MeasureUnit.HOUR, 0); in hmsTo012.put() 146 hmsTo012.put(MeasureUnit.MINUTE, 1); in hmsTo012.put() 147 hmsTo012.put(MeasureUnit.SECOND, 2); in hmsTo012.put() 387 MeasureUnit unit = lowValue.getUnit(); in formatMeasureRange() 500 MeasureUnit perUnit, in formatMeasurePerUnit() 503 MeasureUnit resolvedUnit = MeasureUnit.resolveUnitPerUnit( in formatMeasurePerUnit() 582 public String getUnitDisplayName(MeasureUnit unit) { in getUnitDisplayName() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MeasureFormat.java | 47 import android.icu.util.MeasureUnit; 141 private static final Map<MeasureUnit, Integer> hmsTo012 = 142 new HashMap<MeasureUnit, Integer>(); 145 hmsTo012.put(MeasureUnit.HOUR, 0); in hmsTo012.put() 146 hmsTo012.put(MeasureUnit.MINUTE, 1); in hmsTo012.put() 147 hmsTo012.put(MeasureUnit.SECOND, 2); in hmsTo012.put() 370 MeasureUnit unit = lowValue.getUnit(); in formatMeasureRange() 482 MeasureUnit perUnit, in formatMeasurePerUnit() 485 MeasureUnit resolvedUnit = MeasureUnit.resolveUnitPerUnit( in formatMeasurePerUnit() 562 public String getUnitDisplayName(MeasureUnit unit) { in getUnitDisplayName() [all …]
|