]>
Commit | Line | Data |
---|---|---|
0f5d89e8 A |
1 | // © 2018 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
3 | ||
4 | #include "unicode/utypes.h" | |
5 | ||
6 | #if !UCONFIG_NO_FORMATTING | |
7 | #ifndef __SOURCE_NUMBER_UTYPES_H__ | |
8 | #define __SOURCE_NUMBER_UTYPES_H__ | |
9 | ||
10 | #include "unicode/numberformatter.h" | |
11 | #include "number_types.h" | |
12 | #include "number_decimalquantity.h" | |
340931cb | 13 | #include "formatted_string_builder.h" |
3d1f044b | 14 | #include "formattedval_impl.h" |
0f5d89e8 A |
15 | |
16 | U_NAMESPACE_BEGIN namespace number { | |
17 | namespace impl { | |
18 | ||
19 | ||
3d1f044b A |
20 | /** Helper function used in upluralrules.cpp */ |
21 | const DecimalQuantity* validateUFormattedNumberToDecimalQuantity( | |
22 | const UFormattedNumber* uresult, UErrorCode& status); | |
0f5d89e8 A |
23 | |
24 | ||
25 | /** | |
3d1f044b | 26 | * Struct for data used by FormattedNumber. |
0f5d89e8 | 27 | * |
3d1f044b | 28 | * This struct is held internally by the C++ version FormattedNumber since the member types are not |
0f5d89e8 A |
29 | * declared in the public header file. |
30 | * | |
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. | |
33 | */ | |
340931cb | 34 | class UFormattedNumberData : public FormattedValueStringBuilderImpl { |
3d1f044b | 35 | public: |
340931cb | 36 | UFormattedNumberData() : FormattedValueStringBuilderImpl(0) {} |
3d1f044b | 37 | virtual ~UFormattedNumberData(); |
0f5d89e8 | 38 | |
0f5d89e8 | 39 | DecimalQuantity quantity; |
0f5d89e8 A |
40 | }; |
41 | ||
42 | ||
43 | } // namespace impl | |
44 | } // namespace number | |
45 | U_NAMESPACE_END | |
46 | ||
47 | #endif //__SOURCE_NUMBER_UTYPES_H__ | |
48 | #endif /* #if !UCONFIG_NO_FORMATTING */ |