/external/icu/android_icu4j/src/main/java/android/icu/util/ |
MeasureUnit.java | 30 * coupled with a numeric amount to produce a Measure. MeasureUnit objects are immutable. 37 public class MeasureUnit implements Serializable { 43 private static final Map<String, Map<String,MeasureUnit>> cache 44 = new HashMap<String, Map<String,MeasureUnit>>(); 68 protected MeasureUnit(String type, String subType) { 106 if (!(rhs instanceof MeasureUnit)) { 109 MeasureUnit c = (MeasureUnit) rhs; 133 public synchronized static Set<MeasureUnit> getAvailable(String type) { 134 Map<String, MeasureUnit> units = cache.get(type) [all...] |
Measure.java | 27 * @see android.icu.util.MeasureUnit 34 private final MeasureUnit unit; 41 public Measure(Number number, MeasureUnit unit) { 110 public MeasureUnit getUnit() {
|
TimeUnit.java | 19 public class TimeUnit extends MeasureUnit {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
MeasureUnit.java | 29 * coupled with a numeric amount to produce a Measure. MeasureUnit objects are immutable. 37 public class MeasureUnit implements Serializable { 43 private static final Map<String, Map<String,MeasureUnit>> cache 44 = new HashMap<String, Map<String,MeasureUnit>>(); 65 protected MeasureUnit(String type, String subType) { 111 if (!(rhs instanceof MeasureUnit)) { 114 MeasureUnit c = (MeasureUnit) rhs; 143 public synchronized static Set<MeasureUnit> getAvailable(String type) { 144 Map<String, MeasureUnit> units = cache.get(type) [all...] |
Measure.java | 26 * @see com.ibm.icu.util.MeasureUnit 34 private final MeasureUnit unit; 42 public Measure(Number number, MeasureUnit unit) { 116 public MeasureUnit getUnit() {
|
TimeUnit.java | 20 public class TimeUnit extends MeasureUnit {
|
/external/icu/icu4c/source/i18n/unicode/ |
measunit.h | 36 class U_I18N_API MeasureUnit: public UObject { 43 MeasureUnit() : fTypeId(0), fSubTypeId(0) { 51 MeasureUnit(const MeasureUnit &other); 57 MeasureUnit &operator=(const MeasureUnit &other); 70 virtual ~MeasureUnit(); 106 * @param destCapacity number of MeasureUnit instances available at dest. 112 MeasureUnit *destArray, 123 * @param destCapacity number of MeasureUnit instances available at dest [all...] |
measure.h | 18 * \brief C++ API: MeasureUnit object. 27 class MeasureUnit; 53 Measure(const Formattable& number, MeasureUnit* adoptedUnit, 100 inline const MeasureUnit& getUnit() const; 145 MeasureUnit* unit; 152 inline const MeasureUnit& Measure::getUnit() const {
|
currunit.h | 30 * subclasses MeasureUnit, for use with Measure and MeasureFormat. 35 class U_I18N_API CurrencyUnit: public MeasureUnit {
|
measfmt.h | 74 class MeasureUnit; 195 * *MeasureUnit::createSecond(status). 205 const MeasureUnit &perUnit, 331 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) const; 334 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 338 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, 347 const MeasureUnit &perUnit,
|
tmunit.h | 30 class U_I18N_API TimeUnit: public MeasureUnit {
|
/external/icu/icu4c/source/i18n/ |
measunit.cpp | 24 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MeasureUnit) 506 MeasureUnit *MeasureUnit::createGForce(UErrorCode &status) { 507 return MeasureUnit::create(0, 0, status); 510 MeasureUnit *MeasureUnit::createMeterPerSecondSquared(UErrorCode &status) { 511 return MeasureUnit::create(0, 1, status); 514 MeasureUnit *MeasureUnit::createArcMinute(UErrorCode &status) { 515 return MeasureUnit::create(1, 0, status) [all...] |
currunit.cpp | 35 MeasureUnit(other) { 43 MeasureUnit::operator=(other);
|
tmunit.cpp | 39 * So, both TimeUnit and CurrencyUnit (the 2 subclasses of MeasureUnit) are 101 : MeasureUnit(other), fTimeUnitField(other.fTimeUnitField) { 114 MeasureUnit::operator=(other);
|
measure.cpp | 26 Measure::Measure(const Formattable& _number, MeasureUnit* adoptedUnit, 44 unit = (MeasureUnit*) other.unit->clone();
|
measfmt.cpp | 179 static UBool isCurrency(const MeasureUnit &unit) { 268 outer.unitIndex = MeasureUnit::internalGetIndexForTypeAndSubtype(outer.type, key); 510 static UBool isTimeUnit(const MeasureUnit &mu, const char *tu) { 535 // are instances of MeasureUnit base class and not a subclass. Otherwise, 714 const MeasureUnit &perUnit, 721 MeasureUnit *resolvedUnit = 722 MeasureUnit::resolveUnitPerUnit(measure.getUnit(), perUnit); 890 const MeasureUnit& amtUnit = measure.getUnit(); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
MeasureUnitTest.java | 37 import android.icu.util.MeasureUnit; 245 MeasureUnit[] units = { 246 MeasureUnit.G_FORCE, 247 MeasureUnit.DEGREE, 248 MeasureUnit.ARC_MINUTE, 249 MeasureUnit.ARC_SECOND, 250 MeasureUnit.ACRE, 251 MeasureUnit.HECTARE, 252 MeasureUnit.SQUARE_FOOT, 253 MeasureUnit.SQUARE_KILOMETER [all...] |
PluralRangesTest.java | 21 import android.icu.util.MeasureUnit; 76 {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0?1 degré Fahrenheit"}, 77 {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1?2 degrés Fahrenheit"}, 78 {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1?4,25 °F"}, 79 {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1?4.25°F"}, 80 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25??"}, 81 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0?1 inches"}, 103 final MeasureUnit unit = (MeasureUnit) test[4];
|
TimeUnitTest.java | 20 import android.icu.util.MeasureUnit; 415 Measure measure = new Measure(23, MeasureUnit.CELSIUS); 422 new Measure(70, MeasureUnit.FOOT), 423 new Measure(5.3, MeasureUnit.INCH)));
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
MeasureUnitTest.java | 36 import com.ibm.icu.util.MeasureUnit; 241 MeasureUnit[] units = { 242 MeasureUnit.G_FORCE, 243 MeasureUnit.DEGREE, 244 MeasureUnit.ARC_MINUTE, 245 MeasureUnit.ARC_SECOND, 246 MeasureUnit.ACRE, 247 MeasureUnit.HECTARE, 248 MeasureUnit.SQUARE_FOOT, 249 MeasureUnit.SQUARE_KILOMETER [all...] |
PluralRangesTest.java | 20 import com.ibm.icu.util.MeasureUnit; 72 {0.0, 1.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "0?1 degré Fahrenheit"}, 73 {1.0, 2.0, ULocale.FRANCE, FormatWidth.WIDE, MeasureUnit.FAHRENHEIT, "1?2 degrés Fahrenheit"}, 74 {3.1, 4.25, ULocale.FRANCE, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3,1?4,25 °F"}, 75 {3.1, 4.25, ULocale.ENGLISH, FormatWidth.SHORT, MeasureUnit.FAHRENHEIT, "3.1?4.25°F"}, 76 {3.1, 4.25, ULocale.CHINESE, FormatWidth.WIDE, MeasureUnit.INCH, "3.1-4.25??"}, 77 {0.0, 1.0, ULocale.ENGLISH, FormatWidth.WIDE, MeasureUnit.INCH, "0?1 inches"}, 99 final MeasureUnit unit = (MeasureUnit) test[4];
|
/external/icu/icu4c/source/test/intltest/ |
measfmttest.cpp | 87 const MeasureUnit &unit, 88 const MeasureUnit &perUnit, 94 const MeasureUnit &unit, 95 const MeasureUnit &perUnit, 151 LocalPointer<MeasureUnit> measureUnit; 152 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); 153 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)) [all...] |
tufmtts.cpp | 185 //===== Interoperability with MeasureUnit ====== 186 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT]; 188 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status); 189 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status); 190 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status); 191 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status); 192 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status); 193 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status); 194 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
MeasureFormat.java | 45 import android.icu.util.MeasureUnit; 63 * Measure measure = new Measure(23, MeasureUnit.CELSIUS); 68 * Measure measureF = new Measure(70, MeasureUnit.FAHRENHEIT); 77 * new Measure(70, MeasureUnit.FOOT), 78 * new Measure(5.3, MeasureUnit.INCH))); 82 * new Measure(1, MeasureUnit.FOOT), 83 * new Measure(1, MeasureUnit.INCH))); 89 * new Measure(1, MeasureUnit.FOOT), 90 * new Measure(1, MeasureUnit.INCH))); 97 * new Measure(1, MeasureUnit.INCH) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
MeasureFormat.java | 44 import com.ibm.icu.util.MeasureUnit; 62 * Measure measure = new Measure(23, MeasureUnit.CELSIUS); 67 * Measure measureF = new Measure(70, MeasureUnit.FAHRENHEIT); 76 * new Measure(70, MeasureUnit.FOOT), 77 * new Measure(5.3, MeasureUnit.INCH))); 81 * new Measure(1, MeasureUnit.FOOT), 82 * new Measure(1, MeasureUnit.INCH))); 88 * new Measure(1, MeasureUnit.FOOT), 89 * new Measure(1, MeasureUnit.INCH))); 96 * new Measure(1, MeasureUnit.INCH) [all...] |