// Clean-up.
// 1. Spaces
- data = strip(data, ' ');
+ data = strip(data);
// 2. if there is no opening '{' then a closing '{' is probably cruft.
if (!contains(data, '{'))
- data = strip(data, '}');
+ data = strip(data, "}");
// happens, when last keyword
string::size_type const idx =
!data.empty() ? data.find('=') : string::npos;
return string();
} else {
// delete '=' and the following spaces
- data = frontStrip(frontStrip(data,'='));
+ data = frontStrip(frontStrip(data, "="));
if (data.length() < 2) {
return data; // not long enough to find delimiters
} else {
} else {
// no {} and no "", pure data but with a
// possible ',' at the end
- return strip(data,',');
+ return strip(data, ",");
}
string tmp = data.substr(keypos);
while (tmp.find('{') != string::npos &&