Using boost::tokenizer with string delimiters?

It looks like you will need to write your own TokenizerFunction to do what you want.

I see. I was hoping that there'd be something pre-made, but I guess that I was hoping for too much. – Martin Aug 9 '09 at 21:01.

Using iter_split allows you to use multiple character tokens. The code below would produce the following: dolphin mon-key baboon #include #include #include #include // code starts here std::string s = "dolphin--mon-key--baboon"; std::list stringList; boost::iter_split(stringList, s, boost::first_finder("--")); BOOST_FOREACH(std::string token, stringList) { std::cout.

One option is to try boost::regex. Not sure of the performance compared to a custom tokenizer. Std::string s = "dolphin--monkey--baboon"; boost::regex re("a-z|A-Z+|--"); boost::sregex_token_iterator iter(s.begin(), s.end() , re, 0); boost::sregex_token_iterator end_iter; while(iter!

= end_iter) { std::cout.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions