From: Younies Mahmoud Date: Wed, 18 Mar 2020 12:52:21 +0000 (+0100) Subject: add getOutputUnit to FormattedNumber X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ab040daa01942ee142fa84298366242466907b5;p=icu add getOutputUnit to FormattedNumber --- diff --git a/icu4c/source/i18n/unicode/numberformatter.h b/icu4c/source/i18n/unicode/numberformatter.h index e4740055fd0..5450eaf4669 100644 --- a/icu4c/source/i18n/unicode/numberformatter.h +++ b/icu4c/source/i18n/unicode/numberformatter.h @@ -2541,6 +2541,14 @@ class U_I18N_API FormattedNumber : public UMemory, public FormattedValue { /** @copydoc FormattedValue::nextPosition() */ UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; + /** + * Gets the resolved output unit. + * + * @return `MeasureUnit`. + * @draft ICU 67 + */ + MeasureUnit getOutputUnit(UErrorCode& status) const; + #ifndef U_HIDE_DRAFT_API /** * Determines the start (inclusive) and end (exclusive) indices of the next occurrence of the given