
boost-users-bounces@lists.boost.org wrote:
I have a string that is delimited with '|' that I want to parse with boost::tokenizer.
ie: "label 1|label2||label 3"
It all parses ok except that the whitespace within the label is removed.
Is there a way to configure the tokenizer to leave whitespace alone?
Thanks Frank
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
hi frank,
the following snippet works for me (winxp, vc71, boost 1.33.1):
typedef boost::char_separator<char> separator_type;
string s("label 1|label2||label 3");
boost::tokenizer