- Renamed Lexer2 to Lexer, it looks good enough to assume control.
This commit is contained in:
Paul Beckingham
2015-02-22 17:46:22 -05:00
parent e1c0d5b130
commit 745aad0d27
15 changed files with 553 additions and 553 deletions

View File

@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <string.h>
#include <Nibbler.h>
#include <Lexer2.h>
#include <Lexer.h>
#include <Duration.h>
#include <text.h>
@@ -295,7 +295,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start)
if (n.getOneOf (units, unit))
{
if (n.depleted () ||
Lexer2::isWhitespace (n.next ()))
Lexer::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 () ||
Lexer2::isWhitespace (n.next ()))
Lexer::isWhitespace (n.next ()))
{
start = original_start + n.cursor ();
double quantity = strtod (number.c_str (), NULL);