Commit d8f87cca authored by Dick Hollenbeck's avatar Dick Hollenbeck

factor out isNumber() in dsnlexer.cpp, add support for numbers with exponents,...

factor out isNumber() in dsnlexer.cpp, add support for numbers with exponents, leave commented out for further testing
parent 0eae829b
......@@ -415,7 +415,7 @@ static bool isNumber( const char* cp, const char* limit, const char** next )
while( cp<limit && strchr( ".0123456789", *cp ) )
++cp;
if( (cp<limit && isSpace(*cp)) || *cp==')' || *cp=='(' || cp==limit )
if( cp==limit || isSpace( *cp ) || *cp==')' || *cp=='(' )
{
*next = cp;
return true;
......@@ -469,7 +469,7 @@ static bool isNumber( const char* cp, const char* limit, const char** next )
if( sawNumber )
{
if( ( cp<limit && isSpace(*cp) ) || *cp==')' || *cp=='(' || cp==limit )
if( cp==limit || isSpace( *cp ) || *cp==')' || *cp=='(' )
{
*next = cp;
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment