src/tiny_obj_loader.cpp
// Split a string with specified delimiter character.
// http://stackoverflow.com/questions/236129/split-a-string-in-c
Split a string with specified delimiter character.
Split a string with specified delimiter character .
static void SplitString(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);
  }
}
static void SplitString ( 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 with specified delimiter character.
Split a string with specified delimiter character .