Date: 2001-06-05 14:47:05
--- In boost_at_y..., Gary Powell <Gary.Powell_at_s...> wrote:
> I was looking over my IOStreams book on the use of narrow and
widen, and it
> occurred to me that tokenizer should also be using the locale stuff.
> Now take all of this with a large grain of salt, as by no means am
> expert in the local/facet area of C++.
> But as I read this stuff I was wondering if you could use the is
> the default instead of specifying the characters yourself. As in
> ctype<Char>::is(ctype_base::punct, c); ? (same goes for
> think its ctype_base::space )
From my documentation. "is" is non-static. I like your idea as it
could get rid of the punct_and_space template. For example with
punctuation, we could do this.
In the constructor
punct_space_tokenizer(...,char* punct = "", char* space = "")
Then in IsPunct
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk