StringEnumeration* U_EXPORT2 Collator::getKeywords(UErrorCode& status) { // This is a wrapper over ucol_getKeywords UEnumeration* uenum = ucol_getKeywords(&status); if (U_FAILURE(status)) { uenum_close(uenum); return NULL; } return new UStringEnumeration(uenum); }
StringEnumeration* U_EXPORT2 Collator::getKeywords(UErrorCode& status) { return UStringEnumeration::fromUEnumeration( ucol_getKeywords(&status), status); }