Logo Search packages:      
Sourcecode: icu version File versions

U_NAMESPACE_BEGIN CaseMapTransliterator::CaseMapTransliterator ( const UnicodeString id,
UCaseMapFull *  map 
)

Constructs a transliterator.

Parameters:
loc the given locale.
id the transliterator ID.
map the full case mapping function (see ucase.h)
Constructs a transliterator.

Definition at line 89 of file casetrn.cpp.

References U_ZERO_ERROR.

                                                                                       : 
    Transliterator(id, 0),
    fCsp(NULL),
    fMap(map)
{
    UErrorCode errorCode = U_ZERO_ERROR;
    fCsp = ucase_getSingleton(&errorCode); // expect to get NULL if failure

    // TODO test incremental mode with context-sensitive text (e.g. greek sigma)
    // TODO need to call setMaximumContextLength()?!
}


Generated by  Doxygen 1.6.0   Back to index