Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE UCollator* U_EXPORT2 usearch_getCollator ( const UStringSearch strsrch)

Gets the collator used for the language rules.

Deleting the returned UCollator before calling usearch_close would cause the string search to fail. usearch_close will delete the collator if this search owns it.

Parameters:
strsrchsearch iterator data struct
Returns:
collator ICU 2.4

Definition at line 3055 of file usearch.cpp.

{
    if (strsrch) {
        return (UCollator *)strsrch->collator;
    }
    return NULL;
}

Generated by  Doxygen 1.6.0   Back to index