Lexer
- Replaced old digitsOnly() function with Lexer::isAllDigits.
This commit is contained in:
10
src/text.cpp
10
src/text.cpp
@@ -479,16 +479,6 @@ bool nontrivial (const std::string& input)
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool digitsOnly (const std::string& input)
|
||||
{
|
||||
for (size_t i = 0; i < input.length (); ++i)
|
||||
if (!isdigit (input[i]))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Override of ispunct, that considers #, $ and @ not to be punctuation.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user