Go to the documentation of this file.
4 #if !UCONFIG_NO_FORMATTING
5 #ifndef __NUMBERRANGEFORMATTER_H__
6 #define __NUMBERRANGEFORMATTER_H__
14 #ifndef U_HIDE_DRAFT_API
154 #ifndef U_HIDE_INTERNAL_API
169 class UnlocalizedNumberRangeFormatter;
170 class LocalizedNumberRangeFormatter;
171 class FormattedNumberRange;
176 struct RangeMacroProps;
177 class DecimalQuantity;
178 struct UFormattedNumberRangeData;
179 class NumberRangeFormatterImpl;
188 #if U_PLATFORM == U_PF_WINDOWS && !defined(U_IN_DOXYGEN)
192 template struct U_I18N_API std::atomic< U_NAMESPACE_QUALIFIER number::impl::NumberRangeFormatterImpl*>;
213 bool singleFormatter =
true;
242 template<
typename Derived>
458 fMacros.copyErrorTo(outErrorCode);
611 #ifndef U_HIDE_INTERNAL_API
623 void formatImpl(impl::UFormattedNumberRangeData& results,
bool equalBeforeRounding,
635 std::atomic<impl::NumberRangeFormatterImpl*> fAtomicFormatter = {};
637 const impl::NumberRangeFormatterImpl* getFormatter(
UErrorCode& stauts)
const;
811 const impl::UFormattedNumberRangeData *fResults;
824 : fResults(
nullptr), fErrorCode(errorCode) {};
826 void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih,
UErrorCode& status)
const;
868 #endif // U_HIDE_DRAFT_API
870 #endif // __NUMBERRANGEFORMATTER_H__
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
C++ API: FieldPosition Iterator.
int8_t UBool
The ICU boolean type.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
C++ API: FieldPosition identifies the fields in a formatted output.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
#define U_FAILURE(x)
Does the error code indicate a failure?
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define TRUE
The TRUE value of a UBool.
UMemory is the common ICU base class.
C++ API: Appendable class: Sink for Unicode code points and 16-bit code units (char16_ts).
UnlocalizedNumberFormatter formatter2
Base class for objects to which Unicode characters and strings can be appended.
UnlocalizedNumberFormatter formatter1
#define U_NAMESPACE_BEGIN
A Locale object represents a specific geographical, political, or cultural region.
bool copyErrorTo(UErrorCode &status) const
Check all members for errors.