From 769d4a2ebe787346b1adef45c6508c8973810679 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 4 Mar 2017 20:53:16 -0500 Subject: [PATCH] Lexer: Migrated from ISO8601d to Datetime --- src/Lexer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 08771272f..76a2f1b28 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -553,12 +554,12 @@ bool Lexer::isString (std::string& token, Lexer::Type& type, const std::string& //////////////////////////////////////////////////////////////////////////////// // Lexer::Type::date -// +// bool Lexer::isDate (std::string& token, Lexer::Type& type) { // Try an ISO date parse. std::size_t iso_i = 0; - ISO8601d iso; + Datetime iso; if (iso.parse (_text.substr (_cursor), iso_i, Lexer::dateFormat)) { type = Lexer::Type::date;