Boost logo

Boost :

Subject: Re: [boost] [string] Realistic API proposal
From: Joe Mucchiello (jmucchiello_at_[hidden])
Date: 2011-01-29 12:13:28

Anders Dalvander wrote:
> On 2011-01-28 20:12, Joe Mucchiello<jmucchiello_at_[hidden]> wrote:
>> // conversion for Windows API
>> std::vector<wchar_t> vec;
>> vec.resize(count_codepoints<utf8>(mystring.begin(), mystring.end()));
>> convert<utf8,utf16>(mystring.begin(), mystring.end(), vec.begin());
>I spy with my little eye a potential crash waiting to happen.
>Code-points != Code-units.

Dang, you're right. I used the wrong term. This is why Unicode correctness is
so hard. So much for my graceful introduction to the mailing list. :-)



Boost list run by bdawes at, gregod at, cpdaniel at, john at