Boost logo

Boost :

Subject: Re: [boost] [UTF String] UTF String library 1.5 ready for perusal
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2011-02-11 08:50:37


On Fri, 11 Feb 2011 11:48:50 +0100
Mathias Gaunard <mathias.gaunard_at_[hidden]> wrote:

>On 11/02/2011 01:21, Chad Nelson wrote:
>
>> You may well be right, for your UTF-8-only code. For my design, it
>> was more efficient to create separate iterators for UTF-8, UTF-16,
>> and UTF-32 than to try to make one completely generic UTF-anything
>> iterator. That's what I meant by "fully generic."
>
> This doesn't make any sense whatsoever.
>
> The code to deal with different UTF encodings cannot be the same, so
> you cannot write generic code to deal with all those encodings.

Just because you don't have the imagination and skill to do it doesn't
mean that it can't be done. As a matter of fact, I considered it, and
had worked out a design that *did* do it, using only one helper
function. I decided against using it.

-- 
Chad Nelson
Oak Circle Software, Inc.
*
*
*



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