4 #ifndef __FORMATTEDVALUE_H__
5 #define __FORMATTEDVALUE_H__
9 #if U_SHOW_CPLUSPLUS_API
11 #if !UCONFIG_NO_FORMATTING
88 void constrainCategory(int32_t category);
113 void constrainField(int32_t category, int32_t field);
192 void setInt64IterationContext(int64_t context);
204 UBool matchesField(int32_t category, int32_t field)
const;
227 int64_t fContext = 0LL;
232 int8_t fConstraint = 0;
318 #endif // __FORMATTEDVALUE_H__
int32_t getField() const
Gets the field for the current position.
C++ API: FieldPosition Iterator.
int32_t getStart() const
Gets the INCLUSIVE start index for the current position.
int64_t getInt64IterationContext() const
Gets an int64 that FormattedValue implementations may use for storage.
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...
int32_t getLimit() const
Gets the EXCLUSIVE end index stored for the current position.
Represents a span of a string containing a given field.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
int32_t getCategory() const
Gets the field category for the current position.
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, a signed-byte integer.
Base class for objects to which Unicode characters and strings can be appended.