4 #ifndef __FORMATTEDVALUE_H__ 5 #define __FORMATTEDVALUE_H__ 8 #if !UCONFIG_NO_FORMATTING 9 #ifndef U_HIDE_DRAFT_API 87 void constrainCategory(int32_t category);
112 void constrainField(int32_t category, int32_t field);
191 void setInt64IterationContext(int64_t context);
203 UBool matchesField(int32_t category, int32_t field)
const;
226 int64_t fContext = 0LL;
231 int8_t fConstraint = 0;
317 #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...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
int64_t getInt64IterationContext() const
Gets an int64 that FormattedValue implementations may use for storage.
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.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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.