Boost logo

Boost Users :

From: rradh (rradh_at_[hidden])
Date: 2002-01-15 19:01:53


Hi,

Thanks for your suggestion. The following works:

 char_delimiters_separator<char> separator(false,"(),= ");

but as jeremy suggested, the first arg seems unnecessary.

Regards
Rajesh

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


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