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

UBool SearchIterator::operator== ( const SearchIterator that  )  const [virtual]

Equality operator.

Parameters:
that SearchIterator instance to be compared.
Returns:
TRUE if both BreakIterators are of the same class, have the same behavior, terates over the same text and have the same attributes. FALSE otherwise. ICU 2.0

Reimplemented in StringSearch.

Definition at line 179 of file search.cpp.

References getOffset(), m_breakiterator_, m_search_, and TRUE.

Referenced by operator!=().

{
    if (this == &that) {
        return TRUE;
    }
    return (m_breakiterator_            == that.m_breakiterator_ &&
            m_search_->isCanonicalMatch == that.m_search_->isCanonicalMatch &&
            m_search_->isOverlap        == that.m_search_->isOverlap &&
            m_search_->elementComparisonType == that.m_search_->elementComparisonType &&
            m_search_->matchedIndex     == that.m_search_->matchedIndex &&
            m_search_->matchedLength    == that.m_search_->matchedLength &&
            m_search_->textLength       == that.m_search_->textLength &&
            getOffset() == that.getOffset() &&
            (uprv_memcmp(m_search_->text, that.m_search_->text, 
                              m_search_->textLength * sizeof(UChar)) == 0));
}


Generated by  Doxygen 1.6.0   Back to index