4 #if !UCONFIG_NO_FORMATTING 5 #ifndef __NUMBERRANGEFORMATTER_H__ 6 #define __NUMBERRANGEFORMATTER_H__ 15 #ifndef U_HIDE_DRAFT_API 156 #ifndef U_HIDE_INTERNAL_API 171 class UnlocalizedNumberRangeFormatter;
172 class LocalizedNumberRangeFormatter;
173 class FormattedNumberRange;
178 struct RangeMacroProps;
179 class DecimalQuantity;
180 class UFormattedNumberRangeData;
181 class NumberRangeFormatterImpl;
190 #if U_PLATFORM == U_PF_WINDOWS && !defined(U_IN_DOXYGEN) 194 template struct U_I18N_API std::atomic< U_NAMESPACE_QUALIFIER number::impl::NumberRangeFormatterImpl*>;
215 bool singleFormatter =
true;
244 template<
typename Derived>
482 fMacros.copyErrorTo(outErrorCode);
639 #ifndef U_HIDE_INTERNAL_API 651 void formatImpl(impl::UFormattedNumberRangeData& results,
bool equalBeforeRounding,
663 std::atomic<impl::NumberRangeFormatterImpl*> fAtomicFormatter = {};
665 const impl::NumberRangeFormatterImpl* getFormatter(
UErrorCode& stauts)
const;
846 const impl::UFormattedNumberRangeData *fData;
859 : fData(
nullptr), fErrorCode(errorCode) {}
861 void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih,
UErrorCode& status)
const;
903 #endif // U_HIDE_DRAFT_API 905 #endif // __NUMBERRANGEFORMATTER_H__
#define U_OVERRIDE
Defined to the C++11 "override" keyword if available.
#define U_FAILURE(x)
Does the error code indicate a failure?
C++ API: FieldPosition Iterator.
"Smart pointer" class, deletes objects via the standard C++ delete operator.
C++ API: Appendable class: Sink for Unicode code points and 16-bit code units (char16_ts).
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C++ API: FieldPosition identifies the fields in a formatted output.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
#define TRUE
The TRUE value of a UBool.
Represents a span of a string containing a given field.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UnlocalizedNumberFormatter formatter2
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
UnlocalizedNumberFormatter formatter1
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UMemory is the common ICU base class.
bool copyErrorTo(UErrorCode &status) const
Check all members for errors.
int8_t UBool
The ICU boolean type.
Base class for objects to which Unicode characters and strings can be appended.
A Locale object represents a specific geographical, political, or cultural region.