mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Converted to Lexer2.
This commit is contained in:
parent
6683cc7e83
commit
15bec27e03
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <Nibbler.h>
|
||||
#include <Lexer.h>
|
||||
#include <Lexer2.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 () ||
|
||||
Lexer::is_ws (n.next ()))
|
||||
Lexer2::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 () ||
|
||||
Lexer::is_ws (n.next ()))
|
||||
Lexer2::isWhitespace (n.next ()))
|
||||
{
|
||||
start = original_start + n.cursor ();
|
||||
double quantity = strtod (number.c_str (), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue