4 #ifndef __FORMATTEDVALUE_H__ 5 #define __FORMATTEDVALUE_H__ 9 #if U_SHOW_CPLUSPLUS_API 11 #if !UCONFIG_NO_FORMATTING 32 #ifndef U_FORCE_HIDE_DRAFT_API 61 #ifndef U_HIDE_DRAFT_API 94 void constrainCategory(int32_t category);
119 void constrainField(int32_t category, int32_t field);
198 void setInt64IterationContext(int64_t context);
210 UBool matchesField(int32_t category, int32_t field)
const;
234 int64_t fContext = 0LL;
238 #ifndef U_HIDE_DRAFT_API 241 int32_t fCategory = 0;
243 int8_t fConstraint = 0;
324 #endif // U_FORCE_HIDE_DRAFT_API 332 #endif // __FORMATTEDVALUE_H__ int32_t getCategory() const
Gets the field category for the current position.
int32_t getField() const
Gets the field for the current position.
C++ API: FieldPosition Iterator.
C++ API: Appendable class: Sink for Unicode code points and 16-bit code units (char16_ts).
int32_t getStart() const
Gets the INCLUSIVE start index for the current position.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
int64_t getInt64IterationContext() const
Gets an int64 that FormattedValue implementations may use for storage.
Represents a span of a string containing a given field.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
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.
int8_t UBool
The ICU boolean type.
Base class for objects to which Unicode characters and strings can be appended.
int32_t getLimit() const
Gets the EXCLUSIVE end index stored for the current position.