mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Added ::trim methods
This commit is contained in:
parent
a97f819423
commit
1ba3652c0e
3 changed files with 57 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue