How would I split a string based on another substring in a simple way?
e.g. split on " "
message1
message2
=>
message1
message2
From what I've been able to find both boost::tokenizer and boost::split only operates on single characters.
EDIT:
I'm aware that I could do this by using std::string::find and std::string::substr and have a loop etc... but thats not what I mean by "simple".
See Question&Answers more detail:os