Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer

This commit is contained in:
Paul Beckingham
2015-10-30 11:17:23 -04:00
parent 51def4b12b
commit 182b5427cd
13 changed files with 75 additions and 72 deletions

View File

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