mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer
- Replaced old digitsOnly() function with Lexer::isAllDigits.
This commit is contained in:
parent
9f82926c65
commit
26aff348d2
7 changed files with 9 additions and 26 deletions
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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue