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

UBool UCharCharacterIterator::operator== ( const ForwardCharacterIterator that) const [virtual]

Returns true if the iterators iterate over the same range of the same string and are pointing at the same character.

Parameters:
thatThe ForwardCharacterIterator used to be compared for equality
Returns:
true if the iterators iterate over the same range of the same string and are pointing at the same character. ICU 2.0

Implements ForwardCharacterIterator.

Reimplemented in StringCharacterIterator.

Definition at line 67 of file uchriter.cpp.

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

                                                                             {
    if (this == &that) {
        return TRUE;
    }
    if (typeid(*this) != typeid(that)) {
        return FALSE;
    }

    UCharCharacterIterator&    realThat = (UCharCharacterIterator&)that;

    return text == realThat.text
        && textLength == realThat.textLength
        && pos == realThat.pos
        && begin == realThat.begin
        && end == realThat.end;
}

Generated by  Doxygen 1.6.0   Back to index