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

int32_t FunctionReplacer::replace ( Replaceable text,
int32_t  start,
int32_t  limit,
int32_t &  cursor 
) [virtual]

UnicodeReplacer API

Implements UnicodeReplacer.

Definition at line 75 of file funcrepl.cpp.

References UnicodeReplacer::replace(), replacer, UnicodeFunctor::toReplacer(), translit, and Transliterator::transliterate().


    // First delegate to subordinate replacer
    int32_t len = replacer->toReplacer()->replace(text, start, limit, cursor);
    limit = start + len;

    // Now transliterate
    limit = translit->transliterate(text, start, limit);

    return limit - start;

Generated by  Doxygen 1.6.0   Back to index