21 std::vector<std::string>
Split(
const std::string& s,
22 const std::string& delimiter) {
23 std::vector<std::string> result;
27 while ((pos = s.find(delimiter, last)) != std::string::npos) {
28 result.push_back(s.substr(last, pos - last));
29 last = pos + delimiter.length();
31 result.push_back(s.substr(last));