mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
Lexer: Migrated to unicodeWhitespace
This commit is contained in:
parent
751ae17b22
commit
cac258ef72
4 changed files with 37 additions and 106 deletions
|
@ -51,6 +51,7 @@
|
|||
#include <signal.h>
|
||||
#include <sys/select.h>
|
||||
#include <Lexer.h>
|
||||
#include <unicode.h>
|
||||
#include <utf8.h>
|
||||
#include <util.h>
|
||||
#include <main.h>
|
||||
|
@ -268,7 +269,7 @@ bool nontrivial (const std::string& input)
|
|||
std::string::size_type i = 0;
|
||||
int character;
|
||||
while ((character = utf8_next_char (input, i)))
|
||||
if (! Lexer::isWhitespace (character))
|
||||
if (! unicodeWhitespace (character))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue