/external/icu/icu4c/source/i18n/ |
D | measunit.cpp | 26 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 …]
|
D | currunit.cpp | 53 CurrencyUnit::CurrencyUnit(const CurrencyUnit& other) : MeasureUnit(other) { in CurrencyUnit() 57 CurrencyUnit::CurrencyUnit(const MeasureUnit& other, UErrorCode& ec) : MeasureUnit(other) { in CurrencyUnit() 70 CurrencyUnit::CurrencyUnit() : MeasureUnit() { in CurrencyUnit() 81 MeasureUnit::operator=(other); in operator =()
|
D | number_utils.h | 47 inline bool unitIsCurrency(const MeasureUnit& unit) { in unitIsCurrency() 51 inline bool unitIsNoUnit(const MeasureUnit& unit) { in unitIsNoUnit() 55 inline bool unitIsPercent(const MeasureUnit& unit) { in unitIsPercent() 59 inline bool unitIsPermille(const MeasureUnit& unit) { in unitIsPermille()
|
D | number_longnames.h | 24 forMeasureUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit, 42 forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &perUnit,
|
D | number_longnames.cpp | 89 void getMeasureData(const Locale &locale, const MeasureUnit &unit, const UNumberUnitWidth &width, in getMeasureData() 160 LongNameHandler::forMeasureUnit(const Locale &loc, const MeasureUnit &unitRef, const MeasureUnit &p… in forMeasureUnit() 163 MeasureUnit unit = unitRef; in forMeasureUnit() 167 MeasureUnit resolved = MeasureUnit::resolveUnitPerUnit(unit, perUnit, &isResolved); in forMeasureUnit() 190 LongNameHandler::forCompoundUnit(const Locale &loc, const MeasureUnit &unit, const MeasureUnit &per… in forCompoundUnit()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | MeasureUnit.java | 40 public class MeasureUnit implements Serializable { class 46 private static final Map<String, Map<String,MeasureUnit>> cache 69 protected MeasureUnit(String type, String subType) { in MeasureUnit() method in MeasureUnit 115 if (!(rhs instanceof MeasureUnit)) { in equals() 118 MeasureUnit c = (MeasureUnit) rhs; in equals() 148 public synchronized static Set<MeasureUnit> getAvailable(String type) { in getAvailable() 150 Map<String, MeasureUnit> units = cache.get(type); in getAvailable() 154 return units == null ? Collections.<MeasureUnit>emptySet() in getAvailable() 163 public synchronized static Set<MeasureUnit> getAvailable() { in getAvailable() 164 Set<MeasureUnit> result = new HashSet<>(); in getAvailable() [all …]
|
D | NoUnit.java | 13 public class NoUnit extends MeasureUnit { 23 (NoUnit) MeasureUnit.internalGetInstance("none", "base"); 32 (NoUnit) MeasureUnit.internalGetInstance("none", "percent"); 41 (NoUnit) MeasureUnit.internalGetInstance("none", "permille");
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | MeasureUnit.java | 40 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 …]
|
D | NoUnit.java | 14 public class NoUnit extends MeasureUnit { 23 (NoUnit) MeasureUnit.internalGetInstance("none", "base"); 31 (NoUnit) MeasureUnit.internalGetInstance("none", "percent"); 39 (NoUnit) MeasureUnit.internalGetInstance("none", "permille");
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | MeasureUnitTest.java | 49 import com.ibm.icu.util.MeasureUnit; 267 MeasureUnit[] units = { in TestCompatible53() 268 MeasureUnit.G_FORCE, in TestCompatible53() 269 MeasureUnit.DEGREE, in TestCompatible53() 270 MeasureUnit.ARC_MINUTE, in TestCompatible53() 271 MeasureUnit.ARC_SECOND, in TestCompatible53() 272 MeasureUnit.ACRE, in TestCompatible53() 273 MeasureUnit.HECTARE, in TestCompatible53() 274 MeasureUnit.SQUARE_FOOT, in TestCompatible53() 275 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53() [all …]
|
D | PluralRangesTest.java | 27 import com.ibm.icu.util.MeasureUnit; 81 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 82 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 83 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 84 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 85 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 86 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 108 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
|
D | MeasureUnitThreadTest.java | 15 import com.ibm.icu.util.MeasureUnit; 29 MeasureUnit.getAvailableTypes(); in MUThreadTest() 71 new Measure(3, MeasureUnit.MINUTE), in NumericRaceTest() 72 new Measure(4, MeasureUnit.SECOND) in NumericRaceTest() 75 new Measure(5, MeasureUnit.MINUTE), in NumericRaceTest() 76 new Measure(6, MeasureUnit.SECOND) in NumericRaceTest()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | MeasureUnitTest.java | 50 import android.icu.util.MeasureUnit; 270 MeasureUnit[] units = { in TestCompatible53() 271 MeasureUnit.G_FORCE, in TestCompatible53() 272 MeasureUnit.DEGREE, in TestCompatible53() 273 MeasureUnit.ARC_MINUTE, in TestCompatible53() 274 MeasureUnit.ARC_SECOND, in TestCompatible53() 275 MeasureUnit.ACRE, in TestCompatible53() 276 MeasureUnit.HECTARE, in TestCompatible53() 277 MeasureUnit.SQUARE_FOOT, in TestCompatible53() 278 MeasureUnit.SQUARE_KILOMETER, in TestCompatible53() [all …]
|
D | PluralRangesTest.java | 28 import android.icu.util.MeasureUnit; 84 … {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0–1 degré Fahrenheit"}, in TestFormatting() 85 … {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1–2 degrés Fahrenheit"}, in TestFormatting() 86 … {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1–4,25 °F"}, in TestFormatting() 87 … {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1–4.25°F"}, in TestFormatting() 88 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25英寸"}, in TestFormatting() 89 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0–1 inches"}, in TestFormatting() 111 final MeasureUnit unit = (MeasureUnit) test[4]; in TestFormatting()
|
D | MeasureUnitThreadTest.java | 16 import android.icu.util.MeasureUnit; 32 MeasureUnit.getAvailableTypes(); in MUThreadTest() 74 new Measure(3, MeasureUnit.MINUTE), in NumericRaceTest() 75 new Measure(4, MeasureUnit.SECOND) in NumericRaceTest() 78 new Measure(5, MeasureUnit.MINUTE), in NumericRaceTest() 79 new Measure(6, MeasureUnit.SECOND) in NumericRaceTest()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | measunit.h | 38 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 …]
|
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 215 const MeasureUnit &perUnit, 231 UnicodeString getUnitDisplayName(const MeasureUnit& unit, UErrorCode &status) const; 359 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) const; 362 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 366 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 375 const MeasureUnit &perUnit,
|
/external/icu/icu4c/source/test/intltest/ |
D | measfmttest.cpp | 98 const MeasureUnit &unit, 99 const MeasureUnit &perUnit, 105 const MeasureUnit &unit, 106 const MeasureUnit &perUnit, 122 const MeasureUnit *unit, 179 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53() 180 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53() 181 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53() 182 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53() 183 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53() [all …]
|
D | numbertest.h | 90 MeasureUnit METER; 91 MeasureUnit DAY; 92 MeasureUnit SQUARE_METER; 93 MeasureUnit FAHRENHEIT; 94 MeasureUnit SECOND; 95 MeasureUnit POUND; 96 MeasureUnit SQUARE_MILE; 97 MeasureUnit JOULE; 98 MeasureUnit FURLONG; 99 MeasureUnit KELVIN; [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/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 24 import android.icu.util.MeasureUnit; 73 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic() 89 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic() 90 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic() 106 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 122 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 154 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic() 370 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() 387 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() 404 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberRangeFormatterTest.java | 23 import com.ibm.icu.util.MeasureUnit; 70 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic() 86 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic() 87 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic() 103 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 119 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 151 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic() 367 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() 384 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() 401 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testCollapse() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | LongNameHandler.java | 21 import android.icu.util.MeasureUnit; 87 MeasureUnit unit, in getMeasureData() 168 public static String getUnitDisplayName(ULocale locale, MeasureUnit unit, UnitWidth width) { in getUnitDisplayName() 191 MeasureUnit unit, in forMeasureUnit() 192 MeasureUnit perUnit, in forMeasureUnit() 198 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit() 220 MeasureUnit unit, in forCompoundUnit() 221 MeasureUnit perUnit, in forCompoundUnit()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | LongNameHandler.java | 20 import com.ibm.icu.util.MeasureUnit; 83 MeasureUnit unit, in getMeasureData() 164 public static String getUnitDisplayName(ULocale locale, MeasureUnit unit, UnitWidth width) { in getUnitDisplayName() 187 MeasureUnit unit, in forMeasureUnit() 188 MeasureUnit perUnit, in forMeasureUnit() 194 MeasureUnit simplified = MeasureUnit.resolveUnitPerUnit(unit, perUnit); in forMeasureUnit() 216 MeasureUnit unit, in forCompoundUnit() 217 MeasureUnit perUnit, in forCompoundUnit()
|