Re: [boost] [string] Realistic API proposal

29 Jan
2011
29 Jan
'11
5:13 p.m.
Anders Dalvander wrote:
On 2011-01-28 20:12, Joe Mucchiello<jmucchiello@yahoo.com> 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. :-) Joe
5247
Age (days ago)
5247
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joe Mucchiello