• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: where is the basic NSString literal escape documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >where is the basic NSString literal escape documentation? (From: Matt Neuburg <email@hidden>)
 >Re: where is the basic NSString literal escape documentation? (From: Kyle Sluder <email@hidden>)
 >Re: where is the basic NSString literal escape documentation? (From: Matt Neuburg <email@hidden>)
 >Re: where is the basic NSString literal escape documentation? (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Async NSURLConnection - Crashes - Call Stacks
  • Next by Date: CoreData: updating property of fetched object and refetching
  • Previous by thread: Re: where is the basic NSString literal escape documentation?
  • Next by thread: An iTunes-like music playing view?
  • Index(es):
    • Date
    • Thread