Hey all. I would like to find a way to parse a string, without using vectors.
Basically let us say I have...
and I want to parse or tokenize it so that i have:Code:std::string str = "value1|value2|value3"
I would really like to do it without using vectors or boost. But if it is necessary I guess I could.Code:string values; //resulting strings values = "value1"; values = "value2"; values = "value3";
Up until now, ive been using istringstream to parse it through whitespace, but I want to be able to use custom seperators (like |).