Go to the documentation of this file.
73 enum { IS_STRING = -1 };
140 inline UBool isString()
const;
147 inline UChar32 getCodepoint()
const;
155 inline UChar32 getCodepointEnd()
const;
235 static UClassID U_EXPORT2 getStaticClassID();
301 virtual void loadRange(int32_t range);
305 inline UBool UnicodeSetIterator::isString()
const {
306 return codepoint == (
UChar32)IS_STRING;
309 inline UChar32 UnicodeSetIterator::getCodepoint()
const {
313 inline UChar32 UnicodeSetIterator::getCodepointEnd()
const {
Basic definitions for ICU, for both C and C++ APIs.
A mutable set of Unicode characters and multicharacter strings.
int8_t UBool
The ICU boolean type.
const UnicodeSet * set
The set.
UChar32 codepoint
Current code point, or the special value IS_STRING, if the iterator points to a string.
UnicodeSetIterator iterates over the contents of a UnicodeSet.
int32_t endElement
End element.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int32_t nextString
Next string.
int32_t endRange
End range.
UnicodeString * cpString
Points to the string to use when the caller asks for a string and the current iteration item is a cod...
int32_t nextElement
Next element.
C++ API: Common ICU base class UObject.
int32_t stringCount
String count.
#define U_NAMESPACE_BEGIN
const UnicodeString * string
If codepoint == IS_STRING, then string points to the current string.
UChar32 codepointEnd
When iterating over ranges using nextRange(), codepointEnd contains the inclusive end of the iteratio...