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

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

Generates a hash code for this iterator.

Returns:
the hash code. ICU 2.0

Implements ForwardCharacterIterator.

Definition at line 84 of file uchriter.cpp.

References CharacterIterator::begin, CharacterIterator::end, CharacterIterator::pos, text, and CharacterIterator::textLength.

Referenced by CharIterTest::TestConstructionAndEqualityUChariter().

                                       {
    return uhash_hashUCharsN(text, textLength) ^ pos ^ begin ^ end;
}


Generated by  Doxygen 1.6.0   Back to index