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

int32_t UnicodeSet::hashCode ( void   )  const [virtual]

Returns the hash code value for this set.

Returns:
the hash code value for this set.
See also:
Object::hashCode() ICU 2.0
Returns the hash code value for this set.

Returns:
the hash code value for this set.
See also:
Object::hashCode()

Definition at line 357 of file uniset.cpp.

                                       {
    int32_t result = len;
    for (int32_t i = 0; i < len; ++i) {
        result *= 1000003;
        result += list[i];
    }
    return result;
}


Generated by  Doxygen 1.6.0   Back to index