Logo Search packages:      
Sourcecode: icu version File versions

StringEnumeration *U_EXPORT2 Collator::getKeywords ( UErrorCode status ) [static, inherited]

Create a string enumerator of all possible keywords that are relevant to collation. At this point, the only recognized keyword for this service is "collation".

Parameters:
statusinput-output error code
Returns:
a string enumeration over locale strings. The caller is responsible for closing the result. ICU 3.0

Definition at line 789 of file coll.cpp.

References NULL, and U_FAILURE.

                                        {
    // 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);
}

Generated by  Doxygen 1.6.0   Back to index