Boost logo

Boost :

From: Neal D. Becker (nbecker_at_[hidden])
Date: 2003-12-15 16:29:36


On Monday 15 December 2003 01:21 pm, Jaakko Jarvi wrote:
> On Mon, 15 Dec 2003, Neal D. Becker wrote:
> > I understand from the tuple docs that the default separation character is
> > space. Is that any whitespace, or only a space character?
>
> The default is ' ', or more precisely s.widen(' '), where s is the stream
> in question.
>
> While reading in a tuple from a stream, it is first examined whether
> the separator character d is a white space character with
>
> std::isspace(d, is.getloc())
>
> If so, then any other whitespace is accepted as the separator too.
> If d is not whitespace, the separator can be
> whitespace* d whitespace*
>
>

Thanks for the info.

What do you think of my other suggestion, to generalize the classification of
characters, using a policy?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk