Logo Search packages:      
Sourcecode: icu version File versions

UnicodeString & UnicodeString::findAndReplace ( const UnicodeString oldText,
const UnicodeString newText 
) [inline]

Replace all occurrences of characters in oldText with the characters in newText

oldText the text containing the search text
newText the text containing the replacement text
a reference to this ICU 2.0

Definition at line 4006 of file unistr.h.

References length().

Referenced by DateIntervalFormat::adjustFieldWidth(), findAndReplace(), DateTimePatternGenerator::getBestPattern(), DateIntervalInfo::getBestSkeleton(), NumberFormat::makeInstance(), and UnicodeStringTest::TestFindAndReplace().

{ return findAndReplace(0, length(), oldText, 0, oldText.length(),
            newText, 0, newText.length()); }

Generated by  Doxygen 1.6.0   Back to index