17#if U_SHOW_CPLUSPLUS_API
222 char charsBuffer[32];
Base class for 'pure' C++ implementations of uenum api.
virtual const char * next(int32_t *resultLength, UErrorCode &status)
virtual const UnicodeString * snext(UErrorCode &status)
UnicodeString * setChars(const char *s, int32_t length, UErrorCode &status)
Converts s to Unicode and sets unistr to the result.
virtual const char16_t * unext(int32_t *resultLength, UErrorCode &status)
int32_t charsCapacity
Capacity of chars, for use with default implementations and subclasses.
char * chars
char * buffer for use with default implementations and subclasses.
StringEnumeration()
Default constructor for use with default implementations and subclasses.
void ensureCharsCapacity(int32_t capacity, UErrorCode &status)
Ensures that chars is at least as large as the requested capacity.
UnicodeString unistr
UnicodeString field for use with default implementations and subclasses.
virtual int32_t count(UErrorCode &status) const =0
virtual ~StringEnumeration()
Destructor.
virtual StringEnumeration * clone() const
Clone this object, an instance of a subclass of StringEnumeration.
virtual void reset(UErrorCode &status)=0
virtual bool operator==(const StringEnumeration &that) const
Compares this enumeration to other to check if both are equal.
virtual bool operator!=(const StringEnumeration &that) const
Compares this enumeration to other to check if both are not equal.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Common ICU base class UObject.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.