Home
last modified time | relevance | path

Searched refs:fromUnit (Results 1 – 3 of 3) sorted by relevance

/base/global/i18n/frameworks/intl/include/
Dmeasure_data.h34 int Convert(double &value, const std::string &fromUnit, const std::string &fromMeasSys, const std::…
/base/global/i18n/frameworks/intl/src/
Dmeasure_data.cpp548 int Convert(double &value, const string &fromUnit, const string &fromMeasSys, const string &toUnit, in Convert() argument
563 if (!strcmp(curUnit.getSubtype(), fromUnit.c_str())) { in Convert()
573 int status = ComputeValue(fromUnit, fromMeasSys, fromFactors); in Convert()
/base/global/i18n/interfaces/js/kits/src/
Di18n_addon.cpp269 std::string fromUnit; in UnitConvert() local
270 GetOptionValue(env, argv[0], "unit", fromUnit); in UnitConvert()
279 int convertStatus = Convert(number, fromUnit, fromMeasSys, toUnit, toMeasSys); in UnitConvert()
293 map.insert(std::make_pair("unit", fromUnit)); in UnitConvert()