3 std::vector<std::string>
split(
const std::string& s,
const std::string& delimiter) {
4 std::vector<std::string> tokens;
7 size_t end = s.find(delimiter);
9 while (end != std::string::npos) {
10 tokens.push_back(s.substr(start, end - start));
11 start = end + delimiter.size();
12 end = s.find(delimiter, start);
15 tokens.push_back(s.substr(start, end));
std::vector< std::string > split(const std::string &s, const std::string &delimiter)