71 enum { IS_STRING = -1 };
138 inline UBool isString()
const;
145 inline UChar32 getCodepoint()
const;
153 inline UChar32 getCodepointEnd()
const;
299 virtual void loadRange(int32_t range);
UChar32 codepoint
Current code point, or the special value IS_STRING, if the iterator points to a string.
int32_t endElement
End element.
A mutable set of Unicode characters and multicharacter strings.
const UnicodeString * string
If codepoint == IS_STRING, then string points to the current string.
UBool isString() const
Returns true if the current element is a string.
UChar32 codepointEnd
When iterating over ranges using nextRange(), codepointEnd contains the inclusive end of the iteratio...
const UnicodeSet * set
The set.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UChar32 getCodepointEnd() const
Returns the end of the current code point range, if isString() returned false and nextRange() was cal...
int32_t stringCount
String count.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int32_t nextString
Next string.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UObject is the common ICU "boilerplate" class.
UnicodeSetIterator iterates over the contents of a UnicodeSet.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
int32_t nextElement
Next element.
int32_t endRange
End range.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
UChar32 getCodepoint() const
Returns the current code point, if isString() returned false.
UnicodeString * cpString
Points to the string to use when the caller asks for a string and the current iteration item is a cod...
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int8_t UBool
The ICU boolean type.