cfs/src/perfutil/Util.cc
/**
 * Split a string by the given single-character delimiter, and append the
 * split pieces into elems.
 */
Split a string by the given single-character delimiter, and append the
split pieces into elems.
Split a string by the given single - character delimiter and append the split pieces into elems .
void
split(const std::string& s, char delim, std::vector<std::string>& elems) {
  std::stringstream ss;
  ss.str(s);
  std::string item;
  while (std::getline(ss, item, delim)) {
    elems.push_back(item);
  }
}
void split ( const std :: string & s , char delim , std :: vector < std :: string > & elems ) { std :: stringstream ss ; ss . str ( s ) ; std :: string item ; while ( std :: getline ( ss , item , delim ) ) { elems . push_back ( item ) ; } }
Split a string by the given single-character delimiter, and append the
 split pieces into elems.
Split a string by the given single - character delimiter and append the split pieces into elems .