Boost logo

Boost Users :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-01-15 18:50:22


On Tue, 15 Jan 2002, Darin Adler wrote:
darin> On 1/15/02 2:47 PM, "rradh" <rradh_at_[hidden]> wrote:
darin>
darin> > I want to be able to specify delimiters like in strtok so that I get
darin> > a_1, b_1 and c_2 but couldn't figure out how to specify the tokenizer
darin> > function. Any suggestions?
darin>
darin> Here's an example:
darin>
darin> boost::char_delimiters_separator<char> separator(false, "", " ");
darin> boost::tokenizer<> tok(line, separator);
darin>
darin> Let me know if that helps. Perhaps we should ask John Bandela to include at
darin> least one example like this to make things clearer.
darin>

I think part of the problem is the interface to char_delimiters_separater.
Perhaps we could drop the first bool argument to simplify things a bit.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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