- Replaced old digitsOnly() function with Lexer::isAllDigits.
This commit is contained in:
Paul Beckingham 2015-02-22 20:23:00 -05:00
parent 9f82926c65
commit 26aff348d2
7 changed files with 9 additions and 26 deletions

View file

@ -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.
//