mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Added ::dateFormat default
This commit is contained in:
parent
3cf09863d4
commit
8dd887ddd2
2 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,8 @@
|
||||||
#include <unicode.h>
|
#include <unicode.h>
|
||||||
#include <utf8.h>
|
#include <utf8.h>
|
||||||
|
|
||||||
|
std::string Lexer::dateFormat = "";
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Lexer::Lexer (const std::string& text)
|
Lexer::Lexer (const std::string& text)
|
||||||
: _text (text)
|
: _text (text)
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
class Lexer
|
class Lexer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
// These are overridable.
|
||||||
|
static std::string dateFormat;
|
||||||
|
|
||||||
enum class Type { number, hex,
|
enum class Type { number, hex,
|
||||||
string,
|
string,
|
||||||
url,
|
url,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue