
15 Mar
2008
15 Mar
'08
8:15 p.m.
Hi, You may try to use tokenization facilities in string_algo library. They have no such a limitation. You can tokenize with mutable iterators. Regards, Pavol. Christian Henning wrote:
Hi there, I would like to use the tokenizer to iterate through a string of words and reverse them. Something like this:
string str( " Hello World" );
tokenizer<> tok(str); for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg) { reverse( (*beg).begin(), (*beg).end() ); }
Why can't I get a mutable string iterator?
Thanks, Christian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users