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

virtual void SearchIterator::setOffset ( int32_t  position,
UErrorCode status 
) [pure virtual]

Sets the index to point to the given position, and clears any state that's affected.

This method takes the argument index and sets the position in the text string accordingly without checking if the index is pointing to a valid starting point to begin searching.

Parameters:
position within the text to be set. If position is less than or greater than the text range for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned
status for errors if it occurs ICU 2.0

Implemented in StringSearch.

Referenced by first(), following(), last(), preceding(), previous(), reset(), and setMatchNotFound().


Generated by  Doxygen 1.6.0   Back to index