changed split to add null strings
@@ -565,11 +565,10 @@ SplitValues(const std::string &buff, char delim)
vector<std::string> output;
std::string tmp = "";
- for (size_t i=0; i<buff.length(); i++)
+ for (size_t i=0; i<buff.length(); ++i)
{
if (buff[i] == delim)
{
- if (!tmp.empty())
output.push_back(tmp);
tmp = "";
}
@@ -578,7 +577,7 @@ SplitValues(const std::string &buff, char delim)
tmp += buff[i];
}
}
- if (!tmp.empty())
+
output.push_back(tmp);
return output;
