From 1571981b576c10c29b8904c8a1cddc653cdcada6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 4 Mar 2017 21:43:43 -0500 Subject: [PATCH] Lexer: Migrated from ISO8601p to Duration --- src/Lexer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 76a2f1b28..bce96212c 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include static const std::string uuid_pattern = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; @@ -573,21 +573,21 @@ bool Lexer::isDate (std::string& token, Lexer::Type& type) //////////////////////////////////////////////////////////////////////////////// // Lexer::Type::duration -// | +// bool Lexer::isDuration (std::string& token, Lexer::Type& type) { std::size_t marker = _cursor; std::string extractedToken; Lexer::Type extractedType; - if (isOperator(extractedToken, extractedType)) + if (isOperator (extractedToken, extractedType)) { _cursor = marker; return false; } marker = 0; - ISO8601p iso; + Duration iso; if (iso.parse (_text.substr (_cursor), marker)) { type = Lexer::Type::duration;