summaryrefslogtreecommitdiff
path: root/tools/source/string
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-14 01:37:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-15 09:21:48 +0100
commit9124003eb1e398957a85c5c009ac5eddf5e6f28e (patch)
treed1348216600b18f3daa08224a4d4492b53337813 /tools/source/string
parenta6825d680c7f49dd462a858cc8691757a6dd4cba (diff)
ByteString::IsNumericAscii->comphelper::string::isAsciiDecimalString
shrink ByteString api, remove need for intermediate OString/ByteString with random-ish encoding solely for check
Diffstat (limited to 'tools/source/string')
-rw-r--r--tools/source/string/tstring.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index 40310cf9591d..e0872ee66049 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -163,27 +163,6 @@ sal_Bool ByteString::IsAlphaAscii() const
// -----------------------------------------------------------------------
-sal_Bool ByteString::IsNumericAscii() 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 >= 48) && (*pStr <= 57)) )
- return sal_False;
-
- ++pStr,
- ++nIndex;
- }
-
- return sal_True;
-}
-
-// -----------------------------------------------------------------------
-
sal_Bool ByteString::IsAlphaNumericAscii() const
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );