On 13.03.2008, at 08:37, Clark Cox wrote:
On Wed, Mar 12, 2008 at 5:40 PM, Alastair Houghton
<[EMAIL PROTECTED]> wrote:
Yes, that's true. You can see the sources for CFString in the Darwin
source tree. Furthermore, string constants (even @"" and CFSTR("")
ones) are encoded in ASCII by the compiler, which makes 8-bit strings
quite common in practice.
FYI: As of Leopard, this is no longer necessarily true (i.e. the
string constants being ASCII). Full UTF-8 strings are now supported
within @"" and CFSTR("") strings, so there are cases where even these
strings are encoded as UTF-16 by the compiler.
As of Leopard or as of Xcode 3.x?
And, if I read the paragraph above correctly, the compiler will expand
@"UTF-8 string" in the source code to UTF16 in the string constant in
the TEXT section?
TIA,
Tom_E
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]