doShell/helper/helper_string.cc
std::vector<std::string> String::Explode(std::string const &str,
                                         char delimiter) {
  std::vector<std::string> result;
  std::istringstream iss(str);

  for (std::string token; std::getline(iss, token, delimiter);)
    result.push_back(std::move(token));

  return result;
}
// Split given string by given character delimiter into vector of strings
Split given string by given character delimiter into vector of strings
Split given string by given character delimiter into vector of strings
std::vector<std::string> String::Explode(std::string const &str,
                                         char delimiter) {
  std::vector<std::string> result;
  std::istringstream iss(str);
  for (std::string token; std::getline(iss, token, delimiter);)
    result.push_back(std::move(token));
  return result;
}
std :: vector < std :: string > String :: Explode ( std :: string const & str , char delimiter ) { std :: vector < std :: string > result ; std :: istringstream iss ( str ) ; for ( std :: string token ; std :: getline ( iss , token , delimiter ) ; ) result . push_back ( std :: move ( token ) ) ; return result ; }
Split given string by given character delimiter into vector of strings
Split given string by given character delimiter into vector of strings