diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-10 01:44:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 09:05:06 +0100 |
commit | 4c24f23da9a0da27aec0e60d889b5204b96ad00e (patch) | |
tree | 8b42af94ef03e59a3e468c3866c196ec3b8587e6 /tools/source/string/strimp.cxx | |
parent | 583166b5193ecb1cfaa24ab5f2780ed2eff91191 (diff) |
callcatcher: [Byte|UniString]::SearchCharBackward unused
Diffstat (limited to 'tools/source/string/strimp.cxx')
-rw-r--r-- | tools/source/string/strimp.cxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx index 21065f999958..3d22a1811a0f 100644 --- a/tools/source/string/strimp.cxx +++ b/tools/source/string/strimp.cxx @@ -1668,36 +1668,6 @@ xub_StrLen STRING::SearchChar( const STRCODE* pChars, xub_StrLen nIndex ) const // ----------------------------------------------------------------------- -xub_StrLen STRING::SearchCharBackward( const STRCODE* pChars, 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--; - - STRCODE c =*pStr; - const STRCODE* pCompStr = pChars; - while ( *pCompStr ) - { - if ( *pCompStr == c ) - return nIndex; - ++pCompStr; - } - } - - return STRING_NOTFOUND; -} - -// ----------------------------------------------------------------------- - xub_StrLen STRING::SearchAndReplace( STRCODE c, STRCODE cRep, xub_StrLen nIndex ) { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); |