namespace {
-bool parse_bool(docstring & howto)
+bool parse_bool(docstring & howto, bool const defvalue = false)
{
if (howto.empty())
- return false;
+ return defvalue;
docstring var;
howto = split(howto, var, ' ');
return var == "1";
casesensitive = parse_bool(howto);
matchword = parse_bool(howto);
- forward = parse_bool(howto);
+ forward = parse_bool(howto, true);
return search;
}
bool casesensitive = parse_bool(howto);
bool matchword = parse_bool(howto);
bool all = parse_bool(howto);
- bool forward = parse_bool(howto);
+ bool forward = parse_bool(howto, true);
bool findnext = howto.empty() ? true : parse_bool(howto);
bool update = false;