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

void UCharCharacterIterator::setText ( const UChar newText,
int32_t  newTextLength 
)

Sets the iterator to iterate over a new range of text ICU 2.0

Reimplemented in StringCharacterIterator.

Definition at line 349 of file uchriter.cpp.

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

Referenced by CharIterTest::TestConstructionAndEqualityUChariter().

                                                                 {
    text = newText;
    if(newText == 0 || newTextLength < 0) {
        newTextLength = 0;
    }
    end = textLength = newTextLength;
    pos = begin = 0;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index