Logo Search packages:      
Sourcecode: icu version File versions

StringEnumeration *U_EXPORT2 Collator::getKeywordValues ( const char *  keyword,
UErrorCode status 
) [static, inherited]

Given a keyword, create a string enumeration of all values for that keyword that are currently in use.

keyworda particular keyword as enumerated by ucol_getKeywords. If any other keyword is passed in, status is set to U_ILLEGAL_ARGUMENT_ERROR.
statusinput-output error code
a string enumeration over collation keyword values, or NULL upon error. The caller is responsible for deleting the result. ICU 3.0

Definition at line 800 of file coll.cpp.

References NULL, and U_FAILURE.

    // This is a wrapper over ucol_getKeywordValues
    UEnumeration* uenum = ucol_getKeywordValues(keyword, &status);
    if (U_FAILURE(status)) {
        return NULL;
    return new UStringEnumeration(uenum);

Generated by  Doxygen 1.6.0   Back to index