Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Alexander Lamaison (awl03_at_[hidden])
Date: 2011-01-18 11:04:29


On Tue, 18 Jan 2011 10:54:57 -0500, Chad Nelson wrote:

> On Tue, 18 Jan 2011 15:29:05 +0000
> Alexander Lamaison <awl03_at_[hidden]> wrote:
>
>> I don't think the string classes should implement _any_ of the
>> conversions themselves but should delegate them all to Boost.Locale.
>> However, they should look like they're doing the conversions by hiding
>> the Boost.Locale aspect from the caller as much as possible.
>
> Why delegate them to another library? Those classes already have
> efficient, flexible, and correct iterator-based template code for the
> conversions between the UTF-* types. I'd rather just farm out the stuff
> that those types are weak at, like converting to and from
> system-specific locales.

If they can do that, that's great! The conversion code was so short that I
assumed it wasn't a full, complete conversion algorithm. After all,
something the size of ICU is apparently necessary for full Unicode support!

Please forgive my scepticism :P

Alex

-- 
Easy SFTP for Windows Explorer (http://www.swish-sftp.org)

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