MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / isAllDigits

Method isAllDigits

src/Lexer.cpp:1164–1166  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1162
1163////////////////////////////////////////////////////////////////////////////////
1164bool Lexer::isAllDigits(const std::string& text) {
1165 return text.length() && text.find_first_not_of("0123456789") == std::string::npos;
1166}
1167
1168////////////////////////////////////////////////////////////////////////////////
1169// This is intentionally looking for a single token.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected