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

void SearchIterator::setMatchNotFound (  )  [protected, inherited]

sets match not found ICU 2.0

Definition at line 425 of file search.cpp.

References SearchIterator::m_search_, SearchIterator::setMatchLength(), SearchIterator::setMatchStart(), SearchIterator::setOffset(), U_ZERO_ERROR, and USEARCH_DONE.

Referenced by handleNext(), handlePrev(), SearchIterator::next(), SearchIterator::previous(), and SearchIterator::reset().

{
    setMatchStart(USEARCH_DONE);
    setMatchLength(0);
    UErrorCode status = U_ZERO_ERROR;
    // by default no errors should be returned here since offsets are within 
    // range.
    if (m_search_->isForwardSearching) {
        setOffset(m_search_->textLength, status);
    }
    else {
        setOffset(0, status);
    }
}


Generated by  Doxygen 1.6.0   Back to index