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; }
// 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; }