
6 Jul
2006
6 Jul
'06
7:39 a.m.
"Shunsuke Sogame" wrote:
Joel de Guzman wrote:
Jeff Garland wrote:
std::string dst(...) range_copy(rng|to_upper|to_lower|to_upper, dst);
Me, I prefer the immutable and functional approach:
to_upper(to_lower(to_upper(rng)))
The super string was intended to be something familiar and easy to use for users. The functional syntax is not common in C++, immutability will be feared as inefficient and the pipe syntax is completely novel. Something as superstring s; s.do_this().do_that(); has a chance to be used in spite of having large API. The problematic operations as German ß -> SS -> ss can be handled without problem in this model. /Pavel