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

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

For internal use only.

Parameters:
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.

Definition at line 1227 of file translit.cpp.

References TransliteratorRegistry::put(), TRUE, and U_ZERO_ERROR.

Referenced by Transliterator::registerFactory(), UnescapeTransliterator::registerIDs(), RemoveTransliterator::registerIDs(), NormalizationTransliterator::registerIDs(), and EscapeTransliterator::registerIDs().

                                                                   {
    UErrorCode ec = U_ZERO_ERROR;
    registry->put(id, factory, context, TRUE, ec);
}


Generated by  Doxygen 1.6.0   Back to index