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.
void Context::staticInitialization ()
{
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum");
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum");
ISO8601d::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Task::defaultProject = config.get ("default.project");
Task::defaultDue = config.get ("default.due");

View file

@ -106,7 +106,8 @@ static struct
#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 ()

View file

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