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

UBool UnicodeSet::operator== ( const UnicodeSet o  )  const [virtual]

Compares the specified object with this set for equality. Returns true if the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set).

Parameters:
o set to be compared for equality with this set.
Returns:
true if the specified set is equal to this set. ICU 2.0
Compares the specified object with this set for equality. Returns true if the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set).

Parameters:
o set to be compared for equality with this set.
Returns:
true if the specified set is equal to this set.

Definition at line 342 of file uniset.cpp.

References FALSE, len, list, strings, and TRUE.

Referenced by operator!=().

                                                      {
    if (len != o.len) return FALSE;
    for (int32_t i = 0; i < len; ++i) {
        if (list[i] != o.list[i]) return FALSE;
    }
    if (*strings != *o.strings) return FALSE;
    return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index