Lexer: Added ::wasQuoted to determine original quote state

This commit is contained in:
Paul Beckingham 2015-06-28 12:35:06 -04:00
parent ba65fa67b1
commit 86ed232348
3 changed files with 30 additions and 14 deletions

View file

@ -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
{