Converted to Lexer2.
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Lexer.h>
|
#include <Lexer2.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
@@ -473,7 +473,7 @@ bool nontrivial (const std::string& input)
|
|||||||
std::string::size_type i = 0;
|
std::string::size_type i = 0;
|
||||||
int character;
|
int character;
|
||||||
while ((character = utf8_next_char (input, i)))
|
while ((character = utf8_next_char (input, i)))
|
||||||
if (! Lexer::is_ws (character))
|
if (! Lexer2::isWhitespace (character))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -495,7 +495,7 @@ bool noSpaces (const std::string& input)
|
|||||||
std::string::size_type i = 0;
|
std::string::size_type i = 0;
|
||||||
int character;
|
int character;
|
||||||
while ((character = utf8_next_char (input, i)))
|
while ((character = utf8_next_char (input, i)))
|
||||||
if (Lexer::is_ws (character))
|
if (Lexer2::isWhitespace (character))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user