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

UChar32 UCharCharacterIterator::previous32 ( void   )  [virtual]

Advances to the previous code point in the iteration range (toward startIndex()), and returns that code point. If there are no more code points to return, returns DONE.

the previous code point in the iteration range. ICU 2.0

Implements CharacterIterator.

Definition at line 282 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIterationUChar32().

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

Generated by  Doxygen 1.6.0   Back to index