Re: where is the basic NSString literal escape documentation?
Re: where is the basic NSString literal escape documentation?
- Subject: Re: where is the basic NSString literal escape documentation?
- From: Laurent Cerveau <email@hidden>
- Date: Tue, 20 Apr 2010 10:33:59 +0200
There is some documentation in the CoreFoundation part for all CFStringRef formatting, which applies here.
http://developer.apple.com/Mac/library/documentation/CoreFoundation/Conceptual/CFStrings/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265-SW1
laurent
On Tuesday, April 20, 2010, at 03:17AM, "Aki Inoue" <email@hidden> wrote:
>\uxxxx and \UXXXXXXXX formats (or universal character names ) are part of C99 standard.
>
>Aki
>
>On Apr 19, 2010, at 6:11 PM, Matt Neuburg wrote:
>
>>
>> On Apr 19, 2010, at 6:02 PM, Kyle Sluder wrote:
>>
>>> On Mon, Apr 19, 2010 at 5:44 PM, Matt Neuburg <email@hidden> wrote:
>>>> Supposing you were a complete C / Objective-C beginner. How would you find
>>>> out what escape sequences are permitted in an NSString literal (that is,
>>>> with @"...")? For example, K&R doesn't know about \uNNNN (backslash-u
>>>> followed by four hex digits), but of course that is now legal (though it was
>>>> not always). What documentation would tell the user about this? Thx - m.
>>>
>>> I use the printf(3) manpage.
>>
>> That's good on format-strings and stuff you can do with %, but that isn't what I'm asking about. I'm asking about straightforward NSString literals, such as @"this\nsort\tof\u2022thing". You can learn about the \n and \t from K&R, but how would you learn about \u2022?_______________________________________________
>>
>> 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
>
>_______________________________________________
>
>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
>
>
_______________________________________________
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