diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-10 12:30:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-10 21:51:42 +0100 |
commit | 9891cb881b68d643bcae6160e2284be4728a3612 (patch) | |
tree | 15653864201a40b3192188fb7eaf339ed632226a /tools | |
parent | ce6b095ce310c1bd6c9b3120497a3af511186d2b (diff) |
Related: fdo#38838 remove String::Equals(const sal_Unicode* ...)
Change-Id: I6eeede3261e7b6f5ad81a4d2fa9ecc6c07002dbb
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/strimp.cxx | 16 | ||||
-rw-r--r-- | tools/source/string/tustring.cxx | 11 |
2 files changed, 0 insertions, 27 deletions
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx index 3c47dabfbeb6..6fbb280cab74 100644 --- a/tools/source/string/strimp.cxx +++ b/tools/source/string/strimp.cxx @@ -17,22 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -static sal_Int32 ImplStringCompare( const STRCODE* pStr1, const STRCODE* pStr2, - xub_StrLen nCount ) -{ - sal_Int32 nRet = 0; - while ( nCount && - ((nRet = ((sal_Int32)((STRCODEU)*pStr1))-((sal_Int32)((STRCODEU)*pStr2))) == 0) && - *pStr2 ) - { - ++pStr1, - ++pStr2, - --nCount; - } - - return nRet; -} - static sal_Int32 ImplStringCompareWithoutZero( const STRCODE* pStr1, const STRCODE* pStr2, sal_Int32 nCount ) { diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index ac4bb4ac5181..4d3d8c79f41a 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -412,17 +412,6 @@ sal_Bool STRING::Equals( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen return (ImplStringCompareWithoutZero( mpData->maStr+nIndex, rStr.mpData->maStr, nLen ) == 0); } -sal_Bool STRING::Equals( const STRCODE* pCharStr, xub_StrLen nIndex, xub_StrLen nLen ) const -{ - DBG_CHKTHIS( STRING, DBGCHECKSTRING ); - - // Are there enough codes for comparing? - if ( nIndex > mpData->mnLen ) - return (*pCharStr == 0); - - return (ImplStringCompare( mpData->maStr+nIndex, pCharStr, nLen ) == 0); -} - xub_StrLen STRING::Match( const STRING& rStr ) const { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); |