StringUtils.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include <sstream>
4 
5 std::vector<std::string> split(const std::string &s, const char &delim) {
6  std::vector<std::string> elems;
7  std::stringstream ss(s);
8  std::string item;
9  while (getline(ss, item, delim)) {
10  elems.push_back(item);
11  }
12  return elems;
13 }
std::vector< std::string > split(const std::string &s, const char &delim)
Definition: StringUtils.hpp:5


igvc
Author(s): Matthew Barulic , Al Chaussee
autogenerated on Sun May 10 2015 16:18:45