U_CAPI const char * U_EXPORT2 ulist_next_keyword_value(UEnumeration * en, int32_t * resultLength, UErrorCode * status) { if (U_FAILURE(*status)) { return NULL; } /* TODO: resultLength; */ return (const char *)ulist_getNext((UList *)(en->context)); }
U_CAPI const char * U_EXPORT2 ulist_next_keyword_value(UEnumeration *en, int32_t *resultLength, UErrorCode *status) { const char *s; if (U_FAILURE(*status)) { return NULL; } s = (const char *)ulist_getNext((UList *)(en->context)); if (s != NULL && resultLength != NULL) { *resultLength = uprv_strlen(s); } return s; }