diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-18 16:04:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-18 16:27:43 +0100 |
commit | fdf85819c33abe5a81d19a94b3bac0800b6cda30 (patch) | |
tree | 76609a61eae6e75fa72114aa8fb57125021c7b31 /tools | |
parent | Resolves: rhbz#1020712 return all the selected scripts (diff) | |
download | core-fdf85819c33abe5a81d19a94b3bac0800b6cda30.tar.gz core-fdf85819c33abe5a81d19a94b3bac0800b6cda30.zip |
Related: fdo#38838 remove String::Match
Change-Id: I9db663dbcb432cbfe380e1272d6daaed3e6f4221
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/tustring.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 40c99cf8363f..59b80d7016cb 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -186,32 +186,6 @@ sal_Bool STRING::Equals( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen return (ImplStringCompareWithoutZero( mpData->maStr+nIndex, rStr.mpData->maStr, nLen ) == 0); } -xub_StrLen STRING::Match( const STRING& rStr ) const -{ - DBG_CHKTHIS( STRING, DBGCHECKSTRING ); - DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); - - // return if string is empty - if ( !mpData->mnLen ) - return STRING_MATCH; - - // Search the string for unmatching chars - const STRCODE* pStr1 = mpData->maStr; - const STRCODE* pStr2 = rStr.mpData->maStr; - xub_StrLen i = 0; - while ( i < mpData->mnLen ) - { - // Abort on the first unmatching char - if ( *pStr1 != *pStr2 ) - return i; - ++pStr1, - ++pStr2, - ++i; - } - - return STRING_MATCH; -} - STRING& STRING::Append( STRCODE c ) { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); |