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

void U_EXPORT2 Transliterator::unregister ( const UnicodeString ID  )  [static, inherited]

Unregisters a transliterator or class. This may be either a system transliterator or a user transliterator or class. Any attempt to construct an unregistered transliterator based on its ID will fail.

Parameters:
ID the ID of the transliterator or class
Returns:
the Object that was registered with ID, or null if none was
See also:
registerInstance

registerFactory ICU 2.0

Unregisters a transliterator or class. This may be either a system transliterator or a user transliterator or class.

Parameters:
ID the ID of the transliterator or class
See also:
registerInstance

Definition at line 1292 of file translit.cpp.

References TransliteratorRegistry::remove(), and U_ZERO_ERROR.

Referenced by TransliteratorTest::TestRegisterAlias(), TransliteratorTest::TestSpecialCases(), TransliteratorTest::TestSTV(), utrans_unregister(), and utrans_unregisterID().

                                                                 {
    Mutex lock(&registryMutex);
    UErrorCode ec = U_ZERO_ERROR;
    if (HAVE_REGISTRY(ec)) {
        registry->remove(ID);
    }
}


Generated by  Doxygen 1.6.0   Back to index