1 // © 2018 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 #include "unicode/utypes.h"
6 #if !UCONFIG_NO_FORMATTING
7 #ifndef __SOURCE_NUMBER_UTYPES_H__
8 #define __SOURCE_NUMBER_UTYPES_H__
10 #include "unicode/numberformatter.h"
11 #include "number_types.h"
12 #include "number_decimalquantity.h"
13 #include "number_stringbuilder.h"
14 #include "formattedval_impl.h"
16 U_NAMESPACE_BEGIN
namespace number
{
20 /** Helper function used in upluralrules.cpp */
21 const DecimalQuantity
* validateUFormattedNumberToDecimalQuantity(
22 const UFormattedNumber
* uresult
, UErrorCode
& status
);
26 * Struct for data used by FormattedNumber.
28 * This struct is held internally by the C++ version FormattedNumber since the member types are not
29 * declared in the public header file.
31 * The DecimalQuantity is not currently being used by FormattedNumber, but at some point it could be used
32 * to add a toDecNumber() or similar method.
34 class UFormattedNumberData
: public FormattedValueNumberStringBuilderImpl
{
36 UFormattedNumberData() : FormattedValueNumberStringBuilderImpl(0) {}
37 virtual ~UFormattedNumberData();
39 DecimalQuantity quantity
;
47 #endif //__SOURCE_NUMBER_UTYPES_H__
48 #endif /* #if !UCONFIG_NO_FORMATTING */