// to convert from one unit to another.
class U_I18N_API ConversionRateInfo {
public:
- ConversionRateInfo() {};
+ ConversionRateInfo(){};
ConversionRateInfo(StringPiece sourceUnit, StringPiece baseUnit, StringPiece factor,
StringPiece offset, UErrorCode &status)
: sourceUnit(), baseUnit(), factor(), offset() {
/**
* Collects and returns ConversionRateInfo needed to convert from source to
* baseUnit.
- *
+ *
* @param source The source unit (the unit type converted from).
* @param target The target unit (the unit type converted to).
* @param baseCompoundUnit Output parameter: if not NULL, it will be set to the
MaybeStackVector<ConversionRateInfo> &conversionInfo,
MaybeStackVector<UnitPreference> &unitPreferences, UErrorCode &status);
-// // TODO(hugo): Implement
-// // Compound units as source and target, conversion rates for each piece.
-// MaybeStackVector<ConversionRateInfo>
-// U_I18N_API getConversionRatesInfo(MeasureUnit source, MeasureUnit target, UErrorCode &status);
-
U_NAMESPACE_END
#endif //__GETUNITSDATA_H__