mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Converted to Lexer2.
This commit is contained in:
parent
044ca40bb7
commit
6683cc7e83
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@
|
|||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
#include <Context.h>
|
||||
#include <Lexer.h>
|
||||
#include <Lexer2.h>
|
||||
#include <math.h>
|
||||
#include <util.h>
|
||||
#include <text.h>
|
||||
|
@ -473,7 +473,7 @@ bool nontrivial (const std::string& input)
|
|||
std::string::size_type i = 0;
|
||||
int character;
|
||||
while ((character = utf8_next_char (input, i)))
|
||||
if (! Lexer::is_ws (character))
|
||||
if (! Lexer2::isWhitespace (character))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
@ -495,7 +495,7 @@ bool noSpaces (const std::string& input)
|
|||
std::string::size_type i = 0;
|
||||
int character;
|
||||
while ((character = utf8_next_char (input, i)))
|
||||
if (Lexer::is_ws (character))
|
||||
if (Lexer2::isWhitespace (character))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue