ISO8601d: Added ::minimumMatchLength

This commit is contained in:
Paul Beckingham
2015-09-26 12:57:57 -04:00
parent 541e9eec30
commit 6f726bf1cf
3 changed files with 6 additions and 3 deletions

View File

@@ -622,8 +622,9 @@ void Context::getLimits (int& rows, int& lines)
// easier, it has been decoupled from Context. // easier, it has been decoupled from Context.
void Context::staticInitialization () void Context::staticInitialization ()
{ {
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum"); CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum"); Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum");
ISO8601d::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Task::defaultProject = config.get ("default.project"); Task::defaultProject = config.get ("default.project");
Task::defaultDue = config.get ("default.due"); Task::defaultDue = config.get ("default.due");

View File

@@ -106,7 +106,8 @@ static struct
#define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0])) #define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0]))
std::string ISO8601d::weekstart = STRING_DATE_SUNDAY; std::string ISO8601d::weekstart = STRING_DATE_SUNDAY;
int ISO8601d::minimumMatchLength = 3;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
ISO8601d::ISO8601d () ISO8601d::ISO8601d ()

View File

@@ -35,6 +35,7 @@ class ISO8601d
{ {
public: public:
static std::string weekstart; static std::string weekstart;
static int minimumMatchLength;
ISO8601d (); ISO8601d ();
~ISO8601d (); ~ISO8601d ();