// © 2022 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #ifndef __FORMATTEDNUMBER_H__ #define __FORMATTEDNUMBER_H__ #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API #if !UCONFIG_NO_FORMATTING #include "unicode/uobject.h" #include "unicode/formattedvalue.h" #include "unicode/measunit.h" #include "unicode/udisplayoptions.h" /** * \file * \brief C API: Formatted number result from various number formatting functions. * * See also {@link icu::FormattedValue} for additional things you can do with a FormattedNumber. */ U_NAMESPACE_BEGIN class FieldPositionIteratorHandler; namespace number { // icu::number namespace impl { class DecimalQuantity; class UFormattedNumberData; struct UFormattedNumberImpl; } // icu::number::impl /** * The result of a number formatting operation. This class allows the result to be exported in several data types, * including a UnicodeString and a FieldPositionIterator. * * Instances of this class are immutable and thread-safe. * * @stable ICU 60 */ class U_I18N_API FormattedNumber : public UMemory, public FormattedValue { … }; template<typename StringClass> StringClass FormattedNumber::toDecimalNumber(UErrorCode& status) const { … } } // namespace number U_NAMESPACE_END #endif /* #if !UCONFIG_NO_FORMATTING */ #endif /* U_SHOW_CPLUSPLUS_API */ #endif // __FORMATTEDNUMBER_H__