diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 10:12:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 11:46:58 +0100 |
commit | b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2 (patch) | |
tree | 2f1aeba61b0b943fcd67d3f4b2ca73002eaf60dd /tools | |
parent | restore original nPos increment (diff) | |
download | core-b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2.tar.gz core-b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2.zip |
Related: fdo#38838 remove UniString::SearchAndReplaceAscii
Change-Id: I86019d7ab248679cd8518a621fe8e3721b44aeb0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/strascii.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/source/string/strascii.cxx b/tools/source/string/strascii.cxx index 53a2babc634f..56e7122b5060 100644 --- a/tools/source/string/strascii.cxx +++ b/tools/source/string/strascii.cxx @@ -247,18 +247,4 @@ xub_StrLen UniString::SearchAscii( const sal_Char* pAsciiStr, xub_StrLen nIndex return STRING_NOTFOUND; } -xub_StrLen UniString::SearchAndReplaceAscii( const sal_Char* pAsciiStr, const UniString& rRepStr, - xub_StrLen nIndex ) -{ - DBG_CHKTHIS( UniString, DbgCheckUniString ); - DBG_ASSERT( ImplDbgCheckAsciiStr( pAsciiStr, STRING_LEN ), - "UniString::SearchAndReplaceAscii() - pAsciiStr include characters > 127" ); - - xub_StrLen nSPos = SearchAscii( pAsciiStr, nIndex ); - if ( nSPos != STRING_NOTFOUND ) - Replace( nSPos, ImplStringLen( pAsciiStr ), rRepStr ); - - return nSPos; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |