diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-13 20:12:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-14 14:04:03 +0100 |
commit | 82937ce3d7bc2382c4da22365d1245c9f7db178c (patch) | |
tree | dbae8b3a02a1b0f21326ba2d5da41cf946d48962 /tools | |
parent | 46894ec48eb33dc99dab807c9fcaf0caa7c6cd84 (diff) |
String::SearchAndReplaceAllAscii -> OUString::replaceAll
Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/strascii.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/source/string/strascii.cxx b/tools/source/string/strascii.cxx index e057c03fc655..fe435427d8fc 100644 --- a/tools/source/string/strascii.cxx +++ b/tools/source/string/strascii.cxx @@ -526,20 +526,4 @@ xub_StrLen UniString::SearchAndReplaceAscii( const sal_Char* pAsciiStr, const Un return nSPos; } -void UniString::SearchAndReplaceAllAscii( const sal_Char* pAsciiStr, const UniString& rRepStr ) -{ - DBG_CHKTHIS( UniString, DbgCheckUniString ); - DBG_ASSERT( ImplDbgCheckAsciiStr( pAsciiStr, STRING_LEN ), - "UniString::SearchAndReplaceAllAscii() - pAsciiStr include characters > 127" ); - - xub_StrLen nCharLen = ImplStringLen( pAsciiStr ); - xub_StrLen nSPos = SearchAscii( pAsciiStr, 0 ); - while ( nSPos != STRING_NOTFOUND ) - { - Replace( nSPos, nCharLen, rRepStr ); - nSPos = nSPos + rRepStr.Len(); - nSPos = SearchAscii( pAsciiStr, nSPos ); - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |