25 std::vector<std::string> out;
29 while ((end = str.find_first_of(
delims,
beg)) != std::string::npos) {
31 out.emplace_back(str.substr(
beg, end -
beg));
35 out.emplace_back(str.substr(
beg, str.size() -
beg));
std::vector< std::string > Split(std::string_view str, std::string_view delims, bool skipEmpty=false)
Splits a string at each character in delims.