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

Advances to the previous code unit in the iteration range (toward startIndex()), and returns that code unit. If there are no more code units to return, returns DONE.

Returns:
the previous code unit in the iteration range. ICU 2.0

Implements CharacterIterator.

Definition at line 175 of file uchriter.cpp.

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

Referenced by CharIterTest::TestIteration().

                                 {
    if (pos > begin) {
        return text[--pos];
    } else {
        return DONE;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index