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

Sets the iterator to refer to the first code point in its iteration range, and returns that code unit, This can be used to begin an iteration with next32(). Note that an iteration with next32PostInc(), beginning with, e.g., setToStart() or firstPostInc(), is more efficient.

the first code point in its iteration range ICU 2.0

Implements CharacterIterator.

Definition at line 189 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) {
        int32_t i = pos;
        UChar32 c;
        UTF_NEXT_CHAR(text, i, end, c);
        return c;
    } else {
        return DONE;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index