Lexer: Added ::trim methods

This commit is contained in:
Paul Beckingham 2015-12-20 13:11:32 -05:00
parent a97f819423
commit 1ba3652c0e
3 changed files with 57 additions and 1 deletions

View file

@ -43,6 +43,9 @@ public:
// Static helpers.
static bool isWhitespace (int);
static bool isSingleCharOperator (int);
static std::string trimLeft (const std::string& in, const std::string& t = " ");
static std::string trimRight (const std::string& in, const std::string& t = " ");
static std::string trim (const std::string& in, const std::string& t = " ");
// Stream Classifiers.
bool isEOS () const;