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

Sets the iterator to refer to the first code point in its iteration range, returns that code point, and moves the position to the second code point. This is an alternative to setToStart() for forward iteration with next32PostInc().

the first code point in its iteration range. ICU 2.0

Reimplemented from CharacterIterator.

Definition at line 202 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIterationUChar32().

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

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index