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: Matt Neuburg <email@hidden>
- Date: Mon, 19 Apr 2010 18:11:12 -0700
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