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

UBool U_EXPORT2 Collator::unregister ( URegistryKey  key,
UErrorCode status 
) [static, inherited]

Unregister a previously-registered Collator or CollatorFactory using the key returned from the register call. Key becomes invalid after a successful call and should not be used again. The object corresponding to the key will be deleted.

Parameters:
key the registry key returned by a previous call to registerInstance
status the in/out status code, no special meanings are assigned
Returns:
TRUE if the collator for the key was successfully unregistered ICU 2.6

Definition at line 699 of file coll.cpp.

References FALSE, U_ILLEGAL_ARGUMENT_ERROR, and U_SUCCESS.

{
    if (U_SUCCESS(status)) {
        if (hasService()) {
            return gService->unregister(key, status);
        }
        status = U_ILLEGAL_ARGUMENT_ERROR;
    }
    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index