Set the character at the specified offset to the specified character.
Definition at line 1185 of file unistr.cpp. References length(). Referenced by TransliteratorTest::TestGurmukhiDevanagari(), RBBITest::TestJapaneseLineBreak(), CollationAPITest::TestMaxExpansion(), UnicodeStringTest::TestMiscellaneous(), and UnicodeStringTest::TestRemoveReplace(). { int32_t len = length(); if(cloneArrayIfNeeded() && len > 0) { if(offset < 0) { offset = 0; } else if(offset >= len) { offset = len - 1; } getArrayStart()[offset] = c; } return *this; }
|