Logo Search packages:      
Sourcecode: icu version File versions

URegistryKey U_EXPORT2 Collator::registerInstance ( Collator toAdopt,
const Locale locale,
UErrorCode status 
) [static, inherited]

Register a new Collator. The collator will be adopted.

Parameters:
toAdoptthe Collator instance to be adopted
localethe locale with which the collator will be associated
statusthe in/out status code, no special meanings are assigned
Returns:
a registry key that can be used to unregister this collator ICU 2.6

Definition at line 594 of file coll.cpp.

References NULL, ICULocaleService::registerInstance(), and U_SUCCESS.

{
    if (U_SUCCESS(status)) {
        return getService()->registerInstance(toAdopt, locale, status);
    }
    return NULL;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index