diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/tustring.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 2a73396929b0..5d1d7e4e9cfd 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -235,27 +235,6 @@ xub_StrLen STRING::Match( const STRING& rStr ) const return STRING_MATCH; } -xub_StrLen STRING::SearchBackward( STRCODE c, xub_StrLen nIndex ) const -{ - DBG_CHKTHIS( STRING, DBGCHECKSTRING ); - - if ( nIndex > mpData->mnLen ) - nIndex = (xub_StrLen)mpData->mnLen; - - const STRCODE* pStr = mpData->maStr; - pStr += nIndex; - - while ( nIndex ) - { - nIndex--; - pStr--; - if ( *pStr == c ) - return nIndex; - } - - return STRING_NOTFOUND; -} - void STRING::SearchAndReplaceAll( const STRING& rStr, const STRING& rRepStr ) { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); |