From 82937ce3d7bc2382c4da22365d1245c9f7db178c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 13 Jul 2013 20:12:42 +0100 Subject: String::SearchAndReplaceAllAscii -> OUString::replaceAll Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96 --- tools/source/string/strascii.cxx | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tools') 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: */ -- cgit