Boost logo

Boost Users :

From: Alex Vinokur (alexvn_at_[hidden])
Date: 2005-12-23 12:30:48


Can the boost Tokenizer package split a string into into a series of
serieses of tokens (a vector of vectors of tokens)?

====================
For instance,
string s = "ab cd \nxy z\n123";

vector<vector<string> > v;

Output should be as follows:
v[0][0] = "ab";
v[0][1] = "cd";

v[1][0] = "xy";
v[1][1] = "z";

v[2][0] = "123";
====================

http://boost.org/libs/tokenizer/introduc.htm doesn't contain such a
sample.

Alex Vinokur
     email: alex DOT vinokur AT gmail DOT com
     http://mathforum.org/library/view/10978.html
     http://sourceforge.net/users/alexvn


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net