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

UChar UCharCharacterIterator::nextPostInc ( void   )  [virtual]

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

the current code unit. ICU 2.0

Implements ForwardCharacterIterator.

Definition at line 160 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIteration().

    if (pos < end) {
        return text[pos++];
    } else {
        return DONE;

Generated by  Doxygen 1.6.0   Back to index