Logo Search packages:      
Sourcecode: icu version File versions

UnicodeString & UnicodeString::replace ( int32_t  start,
int32_t  length,
const UnicodeString srcText,
int32_t  srcStart,
int32_t  srcLength 
) [inline]

Replace the characters in the range [start, start + length) with the characters in srcText in the range [srcStart, srcStart + srcLength). srcText is not modified.

start the offset at which the replace operation begins
length the number of characters to replace. The character at start + length is not modified.
srcText the source for the new characters
srcStart the offset into srcText where new characters will be obtained
srcLength the number of characters in srcText in the replace string
a reference to this ICU 2.0

Definition at line 3952 of file unistr.h.

Referenced by findAndReplace(), insert(), operator=(), CanonicalIterator::permute(), setTo(), UnicodeStringTest::TestBasicManipulation(), UnicodeStringTest::TestCompare(), UnicodeStringTest::TestMiscellaneous(), and UnicodeStringTest::TestRemoveReplace().

{ return doReplace(start, _length, srcText, srcStart, srcLength); }

Generated by  Doxygen 1.6.0   Back to index