Пример #1
0
UBool
UCharCharacterIterator::operator==(const ForwardCharacterIterator& that) const {
    if (this == &that) {
        return TRUE;
    }
    
    if (getDynamicClassID() != that.getDynamicClassID()) {
        return FALSE;
    }

    UCharCharacterIterator&    realThat = (UCharCharacterIterator&)that;

    return text == realThat.text
        && textLength == realThat.textLength
        && pos == realThat.pos
        && begin == realThat.begin
        && end == realThat.end;
}
Пример #2
0
 // dummy implementations of other pure virtual base class functions
 virtual UBool operator==(const ForwardCharacterIterator &that) const {
     return
         this==&that ||
         getDynamicClassID()==that.getDynamicClassID() && pos==((SubCharIter &)that).pos;
 }