Home
last modified time | relevance | path

Searched refs:inputUnit (Results 1 – 23 of 23) sorted by relevance

/third_party/node/deps/icu-small/source/i18n/
Dunits_complexconverter.cpp54 MeasureUnitImpl inputUnit = MeasureUnitImpl::forIdentifier(inputUnitIdentifier, status); in ComplexUnitsConverter() local
60 this->init(inputUnit, ConversionRates(status), status); in ComplexUnitsConverter()
63 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, in ComplexUnitsConverter() argument
73 this->init(inputUnit, ratesInfo, status); in ComplexUnitsConverter()
76 void ComplexUnitsConverter::init(const MeasureUnitImpl &inputUnit, in init() argument
119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
Dunits_router.cpp51 UnitsRouter::UnitsRouter(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in UnitsRouter() argument
53 this->init(std::move(inputUnit), region, usage, status); in UnitsRouter()
56 void UnitsRouter::init(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in init() argument
68 MeasureUnitImpl inputUnitImpl = MeasureUnitImpl::forMeasureUnitMaybeCopy(inputUnit, status); in init()
Dunits_complexconverter.h92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits,
120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
Dunits_router.h125 …UnitsRouter(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &statu…
158 …void init(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &status);
Dnumber_usageprefs.cpp152 const MeasureUnit &inputUnit, in UsagePrefsHandler() argument
156 : fUnitsRouter(inputUnit, StringPiece(locale.getCountry()), usage, status), in UsagePrefsHandler()
Dnumber_usageprefs.h36 UsagePrefsHandler(const Locale &locale, const MeasureUnit &inputUnit, const StringPiece usage,
/third_party/skia/third_party/externals/icu/source/i18n/
Dunits_complexconverter.cpp54 MeasureUnitImpl inputUnit = MeasureUnitImpl::forIdentifier(inputUnitIdentifier, status); in ComplexUnitsConverter() local
60 this->init(inputUnit, ConversionRates(status), status); in ComplexUnitsConverter()
63 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, in ComplexUnitsConverter() argument
73 this->init(inputUnit, ratesInfo, status); in ComplexUnitsConverter()
76 void ComplexUnitsConverter::init(const MeasureUnitImpl &inputUnit, in init() argument
119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
Dunits_router.cpp51 UnitsRouter::UnitsRouter(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in UnitsRouter() argument
53 this->init(std::move(inputUnit), region, usage, status); in UnitsRouter()
56 void UnitsRouter::init(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in init() argument
68 MeasureUnitImpl inputUnitImpl = MeasureUnitImpl::forMeasureUnitMaybeCopy(inputUnit, status); in init()
Dunits_complexconverter.h92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits,
120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
Dunits_router.h125 …UnitsRouter(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &statu…
158 …void init(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &status);
Dnumber_usageprefs.cpp152 const MeasureUnit &inputUnit, in UsagePrefsHandler() argument
156 : fUnitsRouter(inputUnit, StringPiece(locale.getCountry()), usage, status), in UsagePrefsHandler()
Dnumber_usageprefs.h36 UsagePrefsHandler(const Locale &locale, const MeasureUnit &inputUnit, const StringPiece usage,
/third_party/icu/icu4c/source/i18n/
Dunits_complexconverter.cpp54 MeasureUnitImpl inputUnit = MeasureUnitImpl::forIdentifier(inputUnitIdentifier, status); in ComplexUnitsConverter() local
60 this->init(inputUnit, ConversionRates(status), status); in ComplexUnitsConverter()
63 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, in ComplexUnitsConverter() argument
73 this->init(inputUnit, ratesInfo, status); in ComplexUnitsConverter()
76 void ComplexUnitsConverter::init(const MeasureUnitImpl &inputUnit, in init() argument
119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
Dunits_router.cpp51 UnitsRouter::UnitsRouter(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in UnitsRouter() argument
53 this->init(std::move(inputUnit), region, usage, status); in UnitsRouter()
56 void UnitsRouter::init(const MeasureUnit &inputUnit, StringPiece region, StringPiece usage, in init() argument
68 MeasureUnitImpl inputUnitImpl = MeasureUnitImpl::forMeasureUnitMaybeCopy(inputUnit, status); in init()
Dunits_complexconverter.h92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits,
120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
Dunits_router.h125 …UnitsRouter(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &statu…
158 …void init(const MeasureUnit &inputUnit, StringPiece locale, StringPiece usage, UErrorCode &status);
Dnumber_usageprefs.cpp152 const MeasureUnit &inputUnit, in UsagePrefsHandler() argument
156 : fUnitsRouter(inputUnit, StringPiece(locale.getCountry()), usage, status), in UsagePrefsHandler()
Dnumber_usageprefs.h36 UsagePrefsHandler(const Locale &locale, const MeasureUnit &inputUnit, const StringPiece usage,
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DUnitsTest.java181 String inputUnit;
187 …public TestCase(String message, String inputUnit, String outputUnit, double inputValue, Measure[] …
189 this.inputUnit = inputUnit;
225 MeasureUnitImpl input = MeasureUnitImpl.forIdentifier(testCase.inputUnit);
578 Pair<String, MeasureUnitImpl> inputUnit;
592 String inputUnit = fields[5];
603 this.insertData(category, usage, region, inputUnit, inputValue, outputs);
615 …this.inputUnit = Pair.of(inputUnitString, MeasureUnitImpl.UnitsParser.parseForIdentifier(inputUnit…
631 " " + inputUnit.first + "; Expected Values: " + expectedInOrder +
650 … UnitsRouter router = new UnitsRouter(testCase.inputUnit.second, testCase.region, testCase.usage);
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsRouter.java53 public UnitsRouter(MeasureUnitImpl inputUnit, String region, String usage) { in UnitsRouter() argument
58 String category = data.getCategory(inputUnit); in UnitsRouter()
79 converterPreferences_.add(new ConverterPreference(inputUnit, complexTargetUnitImpl, in UnitsRouter()
DComplexUnitsConverter.java91 public ComplexUnitsConverter(MeasureUnitImpl inputUnit, MeasureUnitImpl outputUnits, in ComplexUnitsConverter() argument
93 this.inputUnit_ = inputUnit; in ComplexUnitsConverter()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DUsagePrefsHandler.java19 …public UsagePrefsHandler(ULocale locale, MeasureUnit inputUnit, String usage, MicroPropsGenerator … in UsagePrefsHandler() argument
24 …new UnitsRouter(MeasureUnitImpl.forIdentifier(inputUnit.getIdentifier()), locale.getCountry(), usa… in UsagePrefsHandler()
/third_party/icu/icu4c/source/test/intltest/
Dunits_test.cpp910 StringPiece inputUnit = trimField(fields[5]); in unitPreferencesTestDataLineFn() local
927 MeasureUnit inputMeasureUnit = MeasureUnit::forIdentifier(inputUnit, status); in unitPreferencesTestDataLineFn()
928 …if (status.errIfFailureAndReset("forIdentifier(\"%.*s\")", inputUnit.length(), inputUnit.data())) { in unitPreferencesTestDataLineFn()
969 CharString inputUnitIdentifier(inputUnit, status); in unitPreferencesTestDataLineFn()