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

Sets the iterator to refer to the last code unit in its iteration range, and returns that code unit. This can be used to begin an iteration with previous().

Returns:
the last code unit in its iteration range. ICU 2.0

Implements CharacterIterator.

Definition at line 115 of file uchriter.cpp.

References CharacterIterator::begin, CharacterIterator::end, CharacterIterator::pos, and text.

Referenced by CharIterTest::TestIteration().

                             {
    pos = end;
    if(pos > begin) {
        return text[--pos];
    } else {
        return DONE;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index