25 #if U_SHOW_CPLUSPLUS_API 27 class StringEnumeration;
55 #if U_SHOW_CPLUSPLUS_API 114 int32_t* resultLength,
147 int32_t* resultLength,
162 #if U_SHOW_CPLUSPLUS_API void uenum_close(UEnumeration *en)
Disposes of resources in use by the iterator.
UEnumeration * uenum_openUCharStringsEnumeration(const UChar *const strings[], int32_t count, UErrorCode *ec)
Given an array of const UChar* strings, return a UEnumeration.
struct UEnumeration UEnumeration
structure representing an enumeration object instance
Base class for 'pure' C++ implementations of uenum api.
const char * uenum_next(UEnumeration *en, int32_t *resultLength, UErrorCode *status)
Returns the next element in the iterator's list.
const UChar * uenum_unext(UEnumeration *en, int32_t *resultLength, UErrorCode *status)
Returns the next element in the iterator's list.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
int32_t uenum_count(UEnumeration *en, UErrorCode *status)
Returns the number of elements that the iterator traverses.
UEnumeration * uenum_openCharStringsEnumeration(const char *const strings[], int32_t count, UErrorCode *ec)
Given an array of const char* strings (invariant chars only), return a UEnumeration.
uint16_t UChar
The base type for UTF-16 code units and pointers.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.
"Smart pointer" class, closes a UEnumeration via uenum_close().
void uenum_reset(UEnumeration *en, UErrorCode *status)
Resets the iterator to the current list of service IDs.
UEnumeration * uenum_openFromStringEnumeration(icu::StringEnumeration *adopted, UErrorCode *ec)
Given a StringEnumeration, wrap it in a UEnumeration.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.