Home
last modified time | relevance | path

Searched refs:measureUnit (Results 1 – 17 of 17) sorted by relevance

/third_party/icu/icu4c/source/test/intltest/
Dmeasfmttest.cpp240 LocalPointer<MeasureUnit> measureUnit; in TestCompatible53() local
241 measureUnit.adoptInstead(MeasureUnit::createGForce(status)); in TestCompatible53()
242 measureUnit.adoptInstead(MeasureUnit::createArcMinute(status)); in TestCompatible53()
243 measureUnit.adoptInstead(MeasureUnit::createArcSecond(status)); in TestCompatible53()
244 measureUnit.adoptInstead(MeasureUnit::createDegree(status)); in TestCompatible53()
245 measureUnit.adoptInstead(MeasureUnit::createAcre(status)); in TestCompatible53()
246 measureUnit.adoptInstead(MeasureUnit::createHectare(status)); in TestCompatible53()
247 measureUnit.adoptInstead(MeasureUnit::createSquareFoot(status)); in TestCompatible53()
248 measureUnit.adoptInstead(MeasureUnit::createSquareKilometer(status)); in TestCompatible53()
249 measureUnit.adoptInstead(MeasureUnit::createSquareMeter(status)); in TestCompatible53()
[all …]
Dnumbertest_api.cpp6027 const MeasureUnit measureUnit; in formatUnitsAliases() member
6045 .unit(testCase.measureUnit) in formatUnitsAliases()
/third_party/skia/third_party/externals/icu/source/i18n/
Dmeasunit_impl.h48 static SingleUnitImpl forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status);
198 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() argument
199 return measureUnit.fImpl; in get()
221 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status);
231 const MeasureUnit& measureUnit, UErrorCode& status);
Dmeasunit_extra.cpp878 SingleUnitImpl SingleUnitImpl::forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnit() argument
880 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit()
967 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit() argument
968 if (measureUnit.fImpl) { in forMeasureUnit()
969 return *measureUnit.fImpl; in forMeasureUnit()
971 memory = Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnit()
977 const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnitMaybeCopy() argument
978 if (measureUnit.fImpl) { in forMeasureUnitMaybeCopy()
979 return measureUnit.fImpl->copy(status); in forMeasureUnitMaybeCopy()
981 return Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnitMaybeCopy()
/third_party/icu/icu4c/source/i18n/
Dmeasunit_impl.h49 static SingleUnitImpl forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status);
225 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() argument
226 return measureUnit.fImpl; in get()
248 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status);
258 const MeasureUnit& measureUnit, UErrorCode& status);
Dmeasunit_extra.cpp917 SingleUnitImpl SingleUnitImpl::forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnit() argument
919 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit()
1006 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit() argument
1007 if (measureUnit.fImpl) { in forMeasureUnit()
1008 return *measureUnit.fImpl; in forMeasureUnit()
1010 memory = Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnit()
1016 const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnitMaybeCopy() argument
1017 if (measureUnit.fImpl) { in forMeasureUnitMaybeCopy()
1018 return measureUnit.fImpl->copy(status); in forMeasureUnitMaybeCopy()
1020 return Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnitMaybeCopy()
/third_party/node/deps/icu-small/source/i18n/
Dmeasunit_impl.h49 static SingleUnitImpl forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status);
225 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() argument
226 return measureUnit.fImpl; in get()
248 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status);
258 const MeasureUnit& measureUnit, UErrorCode& status);
Dmeasunit_extra.cpp917 SingleUnitImpl SingleUnitImpl::forMeasureUnit(const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnit() argument
919 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit()
1006 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit() argument
1007 if (measureUnit.fImpl) { in forMeasureUnit()
1008 return *measureUnit.fImpl; in forMeasureUnit()
1010 memory = Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnit()
1016 const MeasureUnit& measureUnit, UErrorCode& status) { in forMeasureUnitMaybeCopy() argument
1017 if (measureUnit.fImpl) { in forMeasureUnitMaybeCopy()
1018 return measureUnit.fImpl->copy(status); in forMeasureUnitMaybeCopy()
1020 return Parser::from(measureUnit.getIdentifier(), status).parse(status); in forMeasureUnitMaybeCopy()
Dunits_data.cpp469 … MeasureUnitImpl measureUnit = MeasureUnitImpl::forIdentifier(unitPref.unit.data(), status); in getPreferencesFor() local
470 for (int32_t j = 0; unitsMatchSystem && j < measureUnit.singleUnits.length(); j++) { in getPreferencesFor()
471 const SingleUnitImpl* singleUnit = measureUnit.singleUnits[j]; in getPreferencesFor()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DConversionRates.java52 public UnitsConverter.Factor getFactorToBase(MeasureUnitImpl measureUnit) { in getFactorToBase() argument
55 measureUnit.getSingleUnits()) { in getFactorToBase()
80 public MeasureUnitImpl extractCompoundBaseUnit(MeasureUnitImpl measureUnit) { in extractCompoundBaseUnit() argument
81 ArrayList<SingleUnitImpl> baseUnits = this.extractBaseUnits(measureUnit); in extractCompoundBaseUnit()
DUnitsData.java71 public String getCategory(MeasureUnitImpl measureUnit) { in getCategory() argument
73 = this.getConversionRates().extractCompoundBaseUnit(measureUnit); in getCategory()
107 …throw new IllegalIcuArgumentException("This unit does not has a category" + measureUnit.getIdentif… in getCategory()
DSingleUnitImpl.java53 MeasureUnitImpl measureUnit = new MeasureUnitImpl(this); in build() local
54 return measureUnit.build(); in build()
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dcurrunit.h84 CurrencyUnit(const MeasureUnit& measureUnit, UErrorCode &ec);
/third_party/node/deps/icu-small/source/i18n/unicode/
Dcurrunit.h84 CurrencyUnit(const MeasureUnit& measureUnit, UErrorCode &ec);
/third_party/icu/icu4c/source/i18n/unicode/
Dcurrunit.h84 CurrencyUnit(const MeasureUnit& measureUnit, UErrorCode &ec);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMeasureUnit.java551 MeasureUnitImpl measureUnit = getCopyOfMeasureUnitImpl(); in reciprocal() local
552 measureUnit.takeReciprocal(); in reciprocal()
553 return measureUnit.build(); in reciprocal()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java5963 final MeasureUnit measureUnit; in formatUnitsAliases() field in NumberFormatterApiTest.TestCase
5966 TestCase(MeasureUnit measureUnit, String expectedFormat) { in formatUnitsAliases() argument
5967 this.measureUnit = measureUnit; in formatUnitsAliases()
5989 .unit(testCase.measureUnit) in formatUnitsAliases()