- Updated ideas with recurrence design

This commit is contained in:
Paul Beckingham 2008-06-22 01:33:17 -04:00
parent cc9235033f
commit 3f21a0fe4d
2 changed files with 67 additions and 3 deletions

View file

@ -107,6 +107,10 @@ static const char* attributes[] =
"entry",
"start",
"end",
"recur",
"until",
"base",
"range",
"",
};
@ -201,7 +205,7 @@ bool validDate (std::string& date, Config& conf)
}
////////////////////////////////////////////////////////////////////////////////
static bool validPriority (std::string& input)
static bool validPriority (const std::string& input)
{
if (input != "H" &&
input != "M" &&
@ -215,7 +219,10 @@ static bool validPriority (std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
static bool validAttribute (std::string& name, std::string& value, Config& conf)
static bool validAttribute (
std::string& name,
std::string& value,
Config& conf)
{
guess ("attribute", attributes, name);
@ -254,7 +261,7 @@ static bool validId (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
static bool validTag (std::string& input)
static bool validTag (const std::string& input)
{
if ((input[0] == '-' || input[0] == '+') &&
input.length () > 1)
@ -310,6 +317,13 @@ static bool validSubstitution (
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool validDuration (const std::string& input)
{
// TODO
return false;
}
////////////////////////////////////////////////////////////////////////////////
// Token Distinguishing characteristic
// ------- -----------------------------