Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Msg.h>
|
||||
#include <Lexer.h>
|
||||
#include <text.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -109,7 +110,7 @@ bool Msg::parse (const std::string& input)
|
||||
if (delimiter == std::string::npos)
|
||||
throw std::string ("ERROR: Malformed message header '") + i + "'";
|
||||
|
||||
_header[trim (i.substr (0, delimiter))] = trim (i.substr (delimiter + 1));
|
||||
_header[Lexer::trim (i.substr (0, delimiter))] = Lexer::trim (i.substr (delimiter + 1));
|
||||
}
|
||||
|
||||
// Parse payload.
|
||||
|
||||
Reference in New Issue
Block a user