Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

best way to tokenize an std::string?

Name: Anonymous 2006-11-06 20:42

So I need to split a c++ string object based on some delimiters. what strtok() does on c-strings is basicaly what I need to do. I was looking at the stringstream class and was thinking I could use that, but input is always split on whitespace and I can't find a way to tell it my own delimiters.

Besides just calling c_str() and using strtok, how can I easily get it's equilivant?

Name: Anonymous 2006-11-07 11:44

I'd rather suffocate myself with my own tounge than do anything with strings in C/C++/Java

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List