4 #ifndef __NUMBERRANGEFORMATTER_H__ 5 #define __NUMBERRANGEFORMATTER_H__ 9 #if U_SHOW_CPLUSPLUS_API 11 #if !UCONFIG_NO_FORMATTING 159 #ifndef U_HIDE_INTERNAL_API 174 class UnlocalizedNumberRangeFormatter;
175 class LocalizedNumberRangeFormatter;
176 class FormattedNumberRange;
181 struct RangeMacroProps;
182 class DecimalQuantity;
183 class UFormattedNumberRangeData;
184 class NumberRangeFormatterImpl;
193 #if U_PLATFORM == U_PF_WINDOWS && !defined(U_IN_DOXYGEN) 197 template struct U_I18N_API std::atomic< U_NAMESPACE_QUALIFIER number::impl::NumberRangeFormatterImpl*>;
218 bool singleFormatter =
true;
247 template<
typename Derived>
452 #ifndef U_HIDE_DRAFT_API 487 fMacros.copyErrorTo(outErrorCode);
644 #ifndef U_HIDE_INTERNAL_API 656 void formatImpl(impl::UFormattedNumberRangeData& results,
bool equalBeforeRounding,
668 std::atomic<impl::NumberRangeFormatterImpl*> fAtomicFormatter = {};
670 const impl::NumberRangeFormatterImpl* getFormatter(
UErrorCode& stauts)
const;
730 #ifndef U_HIDE_DRAFT_API 808 #endif // U_HIDE_DRAFT_API 853 const impl::UFormattedNumberRangeData *fData;
865 : fData(
nullptr), fErrorCode(errorCode) {}
867 void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih,
UErrorCode& status)
const;
913 #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.
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.
UnlocalizedNumberFormatter formatter2
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
UnlocalizedNumberFormatter formatter1
Basic definitions for ICU, for both C and C++ APIs.
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.