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

void UnicodeSet::_appendToPat ( UnicodeString buf,
const UnicodeString s,
UBool  escapeUnprintable 
) [static, private]

Append the toPattern() representation of a string to the given StringBuffer.

Definition at line 1892 of file uniset.cpp.

References UnicodeString::char32At(), UnicodeString::length(), and UTF_CHAR_LENGTH.

Referenced by _generatePattern(), and applyPattern().

                   {
    UChar32 cp;
    for (int32_t i = 0; i < s.length(); i += UTF_CHAR_LENGTH(cp)) {
        _appendToPat(buf, cp = s.char32At(i), escapeUnprintable);
    }
}


Generated by  Doxygen 1.6.0   Back to index