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

void StringMatcher::addMatchSetTo ( UnicodeSet toUnionTo  )  const [virtual]

Implement UnicodeMatcher

Implements UnicodeMatcher.

Definition at line 197 of file strmatch.cpp.

References UnicodeSet::add(), UnicodeMatcher::addMatchSetTo(), UnicodeString::char32At(), data, UnicodeString::length(), TransliterationRuleData::lookupMatcher(), NULL, pattern, and UTF_CHAR_LENGTH.

    UChar32 ch;
    for (int32_t i=0; i<pattern.length(); i+=UTF_CHAR_LENGTH(ch)) {
        ch = pattern.char32At(i);
        const UnicodeMatcher* matcher = data->lookupMatcher(ch);
        if (matcher == NULL) {
        } else {

Generated by  Doxygen 1.6.0   Back to index