|
Boost : |
Subject: Re: [boost] [RFC] string inserter/extractor "q u o t i n g"
From: Eric Niebler (eric_at_[hidden])
Date: 2010-06-16 10:43:00
On 6/16/2010 9:47 AM, Beman Dawes wrote:
> std::string actual;
> std::stringstream ss;
>
> ss << delimit(expected);
> ss >> undelimit(actual);
delimit doesn't feel right to me. I prefer quoted. It's the commonly
used term in Perl, for instance. From dictionary.com
quote:
... 5) to enclose (words) within quotation marks.
And given the direction of the streaming, is there really a need for a
separate quoted and unquoted manipulator? I'd like:
ss << quoted(expected);
ss >> quoted(actual);
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk