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

UChar32 UCharCharacterIterator::next32 ( void   )  [virtual]

Advances to the next code point in the iteration range (toward endIndex()), and returns that code point. If there are no more code points to return, returns DONE. Note that iteration with "pre-increment" semantics is less efficient than iteration with "post-increment" semantics that is provided by next32PostInc().

the next code point in the iteration range. ICU 2.0

Implements CharacterIterator.

Definition at line 255 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIterationUChar32().

    if (pos < end) {
        UTF_FWD_1(text, pos, end);
        if(pos < end) {
            int32_t i = pos;
            UChar32 c;
            UTF_NEXT_CHAR(text, i, end, c);
            return c;
    /* make current() return DONE */
    pos = end;
    return DONE;

Generated by  Doxygen 1.6.0   Back to index