Re: creating classes on the fly ??
Re: creating classes on the fly ??
- Subject: Re: creating classes on the fly ??
- From: "Clark Cox" <email@hidden>
- Date: Sat, 22 Sep 2007 11:03:51 -0700
On 9/22/07, Uli Kusterer <email@hidden> wrote:
> On 22.09.2007, at 17:18, Stefan Arentz wrote:
> > You forgot to mention: crazy fast. Also, std::wstring will deal with
> > unicode just fine and Boost can provide serialization. If required.
>
> wstring does UTF32 now?? Wow! I didn't know that.
>
>
> I thought it still used 2-byte quantities and thus still worked on
> the wrong level,
wchar_t has always been 32-bit on MacOSX.
> sometimes giving you the middle of a decomposed
> character sequence.
32-bit vs. 16-bit has nothing to do with this, you can still
incorrectly break a decomposed character sequence in UTF-32 just as
easily as in UTF-16. The difference is, of course, in surrogate pairs.
> Anyway, one would still have to normalize
> strings, because I'm sure wstring's compare routines will consider
> "ä" (lowercase 'A' umlaut) and a¨ (a followed by diaeresis as a
> decomposed sequence) to be different.
Indeed, but for simple storage of the string, wstring is quite sufficient.
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden