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

Method isString

src/Lexer.cpp:390–399  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Lexer::Type::string '|" [ U+XXXX | \uXXXX | \" | \' | \\ | \/ | \b | \f | \n | \r | \t | . ] '|"

Source from the content-addressed store, hash-verified

388// [ U+XXXX | \uXXXX | \" | \' | \\ | \/ | \b | \f | \n | \r | \t | . ]
389// '|"
390bool Lexer::isString(std::string& token, Lexer::Type& type, const std::string& quotes) {
391 std::size_t marker = _cursor;
392 if (readWord(_text, quotes, marker, token)) {
393 type = Lexer::Type::string;
394 _cursor = marker;
395 return true;
396 }
397
398 return false;
399}
400
401////////////////////////////////////////////////////////////////////////////////
402// Lexer::Type::date

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected