Returns the first index at which the string text matches the search pattern. The iterator is adjusted so that its current index (as returned by
getOffset) is the match position if one was found. If a match is not found,
USEARCH_DONE will be returned and the iterator will be adjusted to the index USEARCH_DONE
|status ||for errors if it occurs |
- The character index of the first match, or
USEARCH_DONE if there are no matches.
- See also:
- getOffset ICU 2.0
Definition at line 198 of file search.cpp.
References SearchIterator::handleNext(), SearchIterator::setOffset(), U_FAILURE, and USEARCH_DONE.