summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2000-12-12 15:13:07 +0000
committerThomas Lange <tl@openoffice.org>2000-12-12 15:13:07 +0000
commit9b2d58ca944f3216ea669aba39a8bf6e8dfd1eb8 (patch)
tree8b1541bd24e5127f82e25e0f88a5566bd60a8ff5 /starmath
parent9f196726bf461b9af28c6ebf6a1d99a12ad41f19 (diff)
#81811# IsDigit new
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index f10d685d864f..e49bfe6666fd 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: parse.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:57:26 $
+ * last change: $Author: tl $ $Date: 2000-12-12 16:13:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -102,6 +102,11 @@ static const xub_Unicode aDelimiterTable[] =
};
+static inline BOOL IsDigit( sal_Unicode cChar )
+{
+ return '0' <= cChar && cChar <= '9';
+}
+
///////////////////////////////////////////////////////////////////////////
SmToken::SmToken() :
@@ -619,7 +624,7 @@ void SmParser::NextToken()
}
USHORT i;
- for (i = 0; (i < n) && (isdigit(*pBuffer) ||
+ for (i = 0; (i < n) && (IsDigit(*pBuffer) ||
(*pBuffer == '.') ||
(*pBuffer == ',')); i++)
pBuffer ++;