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

void U_EXPORT2 Transliterator::registerFactory ( const UnicodeString id,
Transliterator::Factory  factory,
Transliterator::Token  context 
) [static, inherited]

Registers a factory function that creates transliterators of a given ID.

id the ID being registered
factory a function pointer that will be copied and called later when the given ID is passed to createInstance()
context a context pointer that will be stored and later passed to the factory function when an ID matching the registration ID is being instantiated with this factory. ICU 2.0

Definition at line 1215 of file translit.cpp.

References Transliterator::_registerFactory(), and U_ZERO_ERROR.

    Mutex lock(&registryMutex);
    UErrorCode ec = U_ZERO_ERROR;
    if (HAVE_REGISTRY(ec)) {
        _registerFactory(id, factory, context);

Generated by  Doxygen 1.6.0   Back to index