I am parsing a string in C++ using the following:
using namespace std; string parsed,input=\"text to be parsed\"; stringstream input_stringstream(input); i
std::vector split(const std::string& s, char c) { std::vector v; unsigned int ii = 0; unsigned int j = s.find(c); while (j < s.length()) { v.push_back(s.substr(i, j - i)); i = ++j; j = s.find(c, j); if (j >= s.length()) { v.push_back(s.substr(i, s,length())); break; } } return v; }