Boost.tokenizer, splitting at a space only boundary

Hi: Is the a function provided with boost.tokenizer to split at a space only boundary, rather than space and punctuation? Cheers Sean. __________ Information from ESET NOD32 Antivirus, version of virus signature database 3436 (20080911) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Here is what I do: typedef boost::token_iterator< boost::char_separator<char>, std::string::const_iterator, std::string> const_witerator ; inline const_witerator wbegin(const std::string &s, const char *separators=" \t\n\f\r\v", boost::empty_token_policy empty_tokens=boost::drop_empty_tokens) { return const_witerator(boost::char_separator<char>(separators, NULL, empty_tokens), s.begin(), s.end()) ; } inline const_witerator wend() { return const_witerator() ; } for (const_witerator w=wbegin(s, " ") ; w!=wend() ; ++w) std::cout << *w ; F. Bron Avis : Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes en tout ou en partie. Notice: This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
participants (2)
-
frederic.bron@alcan.com
-
Sean Farrow