Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: John B. Turpish (jbturp_at_[hidden])
Date: 2011-01-14 09:10:36


On Fri, Jan 14, 2011 at 4:42 AM, Matus Chochlik <chochlik_at_[hidden]> wrote:
> b) UTF-32 is basically a waste of memory for most localizations.

I'm not an expert, so take this with a grain of salt. But couldn't it
just as easily be said that UTF-8 is a waste of CPU? There are a
number of operations that are constant time if you can assume a fixed
size for a character that I would think would have to be linear for
UTF-8, for example accessing the Nth character.


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