33 inline std::vector<std::string>&
Split(
const std::string&
s,
char delim, std::vector<std::string>& elems)
35 std::stringstream ss(
s);
37 while (std::getline(ss, item, delim))
39 elems.push_back(item);
44 inline std::vector<std::string>
Split(
const std::string&
s,
char delim)
46 std::vector<std::string> elems;