Commit 29fccee3 authored by Kilian Lackhove's avatar Kilian Lackhove

restore old behavior of GenerateVector(string, vector<string>)

by adjusting the parser as suggested by douglas

"old" means pre-parseutils cleanup, e.g. 0e69efe9

        old   before   now
""      0     1        0
","     0     2        0
",,"    0     3        0
"a"     1     1        1
",a"    0     2        0
"a,"    1     2        1
",a,"   0     3        0
"a,b"   2     3        2
"a, b," 2     3        2
parent 5b1c3e2a
......@@ -167,7 +167,7 @@ bool ParseUtils::GenerateVector(const std::string &str,
{
auto it = str.begin();
bool success = qi::phrase_parse(
it, str.end(), *~qi::char_(",") % ',', qi::ascii::space, out);
it, str.end(), +~qi::char_(",") % ',', qi::ascii::space, out);
return success && it == str.end();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment