From be80bc4ea3cdac95c67a7fb41a807b2e92b2f470 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 19 Feb 2015 21:36:04 -0800 Subject: [PATCH] Converted to Lexer2. --- src/Nibbler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Nibbler.cpp b/src/Nibbler.cpp index 132ec15f6..ba283288a 100644 --- a/src/Nibbler.cpp +++ b/src/Nibbler.cpp @@ -37,7 +37,7 @@ #ifdef NIBBLER_FEATURE_REGEX #include #endif -#include +#include static const char* _uuid_pattern = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; static const unsigned int _uuid_min_length = 8; @@ -1005,12 +1005,12 @@ bool Nibbler::getName (std::string& result) { if (! isdigit (_input[i]) && ! ispunct (_input[i]) && - ! Lexer::is_ws (_input[i])) + ! Lexer2::isWhitespace (_input[i])) { ++i; while (i < _length && (_input[i] == '_' || ! ispunct (_input[i])) && - ! Lexer::is_ws (_input[i])) + ! Lexer2::isWhitespace (_input[i])) { ++i; } @@ -1037,7 +1037,7 @@ bool Nibbler::getWord (std::string& result) { while (!isdigit (_input[i]) && !isPunctuation (_input[i]) && - !Lexer::is_ws (_input[i])) + !Lexer2::isWhitespace (_input[i])) { ++i; }