summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-28 11:22:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:07 +0100
commite61f4e4636be0abbf2f623b877254d386617eb8c (patch)
tree552c53c3f9246c06afd99d72d9932fe69c877d6e /tools
parent0ab7b0f6e724a3a5a7eadf79f9efc71e0fc1acf0 (diff)
reduce ByteString IsAlphaAscii unused now
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/string.hxx1
-rw-r--r--tools/source/string/tstring.cxx22
2 files changed, 0 insertions, 23 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index b9e66763e799..c94e694d2e9c 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -255,7 +255,6 @@ public:
sal_Bool IsLowerAscii() const;
sal_Bool IsUpperAscii() const;
- sal_Bool IsAlphaAscii() const;
ByteString& ToLowerAscii();
ByteString& ToUpperAscii();
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index 5b3d41de6265..f24f4ea90f44 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -130,28 +130,6 @@ sal_Bool ByteString::IsUpperAscii() const
return sal_True;
}
-// -----------------------------------------------------------------------
-
-sal_Bool ByteString::IsAlphaAscii() const
-{
- DBG_CHKTHIS( ByteString, DbgCheckByteString );
-
- sal_Int32 nIndex = 0;
- sal_Int32 nLen = mpData->mnLen;
- const sal_Char* pStr = mpData->maStr;
- while ( nIndex < nLen )
- {
- if ( !(((*pStr >= 97) && (*pStr <= 122)) ||
- ((*pStr >= 65) && (*pStr <= 90))) )
- return sal_False;
-
- ++pStr,
- ++nIndex;
- }
-
- return sal_True;
-}
-
void STRING::SearchAndReplaceAll( const STRCODE* pCharStr, const STRING& rRepStr )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );