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

UBool UnicodeSet::contains ( const UnicodeString s  )  const

Returns true if this set contains the given multicharacter string.

Parameters:
s string to be checked for containment
Returns:
true if this set contains the specified string ICU 2.4
Returns true if this set contains the given multicharacter string.
Parameters:
s string to be checked for containment
Returns:
true if this set contains the specified string

Definition at line 488 of file uniset.cpp.

References contains(), UVector::contains(), FALSE, getSingleCP(), and UnicodeString::length().

                                                       {
    if (s.length() == 0) return FALSE;
    int32_t cp = getSingleCP(s);
    if (cp < 0) {
        return strings->contains((void*) &s);
    } else {
        return contains((UChar32) cp);
    }
}


Generated by  Doxygen 1.6.0   Back to index