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

UChar32 UCharCharacterIterator::next32PostInc ( void   )  [virtual]

Gets the current code point for returning and advances to the next code point in the iteration range (toward endIndex()). If there are no more code points to return, returns DONE.

Returns:
the current point. ICU 2.0

Implements ForwardCharacterIterator.

Definition at line 271 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIterationUChar32().

                                      {
    if (pos < end) {
        UChar32 c;
        UTF_NEXT_CHAR(text, pos, end, c);
        return c;
    } else {
        return DONE;
    }
}


Generated by  Doxygen 1.6.0   Back to index