Boost logo

Boost Users :

From: nitin motgi (nitin.motgi_at_[hidden])
Date: 2005-12-23 13:13:56


Hi Alex,

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

As per the current implementation of tokenizer it does not provide
this feature. It does not store the tokenized values in a container.
It provides an iterator concept to iterate through the tokenized values.

Thank you,
Nitin Motgi

On 12/23/05, Alex Vinokur <alexvn_at_[hidden]> wrote:
>
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

--
Nitin Motgi
NITIN . DOT. MOTGI .AT. GMAIL .DOT. COM


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