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

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

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

Implements CharacterIterator.

Definition at line 214 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIterationUChar32().

                               {
    pos = end;
    if(pos > begin) {
        UChar32 c;
        UTF_PREV_CHAR(text, begin, pos, c);
        return c;
    } else {
        return DONE;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index