mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer: Added ::wasQuoted to determine original quote state
This commit is contained in:
parent
ba65fa67b1
commit
86ed232348
3 changed files with 30 additions and 14 deletions
|
@ -324,6 +324,15 @@ void Lexer::dequote (std::string& input)
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Lexer::wasQuoted (const std::string& input)
|
||||
{
|
||||
if (input.find_first_of (" \t()") != std::string::npos)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Lexer::isEOS () const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue