From 15bec27e035a9ed77d5b73552558137e1bd157e2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 19 Feb 2015 21:32:51 -0800 Subject: [PATCH] Converted to Lexer2. --- src/Duration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Duration.cpp b/src/Duration.cpp index 2890a5626..e719dc227 100644 --- a/src/Duration.cpp +++ b/src/Duration.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include @@ -295,7 +295,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start) if (n.getOneOf (units, unit)) { if (n.depleted () || - Lexer::is_ws (n.next ())) + Lexer2::isWhitespace (n.next ())) { start = original_start + n.cursor (); @@ -319,7 +319,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start) if (n.getOneOf (units, unit)) { if (n.depleted () || - Lexer::is_ws (n.next ())) + Lexer2::isWhitespace (n.next ())) { start = original_start + n.cursor (); double quantity = strtod (number.c_str (), NULL);