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_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN && !defined(U_IN_DOXYGEN) 189 template struct U_I18N_API std::atomic<impl::NumberRangeFormatterImpl*>;
207 bool singleFormatter =
true;
236 template<
typename Derived>
452 fMacros.copyErrorTo(outErrorCode);
605 #ifndef U_HIDE_INTERNAL_API 617 void formatImpl(impl::UFormattedNumberRangeData& results,
bool equalBeforeRounding,
629 std::atomic<impl::NumberRangeFormatterImpl*> fAtomicFormatter = {};
631 const impl::NumberRangeFormatterImpl* getFormatter(
UErrorCode& stauts)
const;
805 const impl::UFormattedNumberRangeData *fResults;
818 : fResults(
nullptr), fErrorCode(errorCode) {};
820 void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih,
UErrorCode& status)
const;
862 #endif // U_HIDE_DRAFT_API 864 #endif // __NUMBERRANGEFORMATTER_H__
#define U_FAILURE(x)
Does the error code indicate a failure?
C++ API: FieldPosition Iterator.
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.
#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.