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

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.

Returns:
the current code unit. ICU 2.0

Implements ForwardCharacterIterator.

Definition at line 161 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIteration().

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

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index