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

U_STABLE void U_EXPORT2 uset_addString ( USet set,
const UChar *  str,
int32_t  strLen 
)

Adds the given string to the given USet. After this call, uset_containsString(set, str, strLen) will return TRUE. A frozen set will not be modified.

Parameters:
set the object to which to add the character
str the string to add
strLen the length of the string or -1 if null terminated. ICU 2.4

Definition at line 88 of file uset.cpp.

                                                            {
    // UnicodeString handles -1 for strLen
    UnicodeString s(strLen<0, str, strLen);
    ((UnicodeSet*) set)->UnicodeSet::add(s);
}


Generated by  Doxygen 1.6.0   Back to index