diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/string/tstring.cxx | 22 |
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 ); |