Re: NSString -componentsSeparatedByString: line break
Re: NSString -componentsSeparatedByString: line break
- Subject: Re: NSString -componentsSeparatedByString: line break
- From: Rob Keniger <email@hidden>
- Date: Mon, 27 Jul 2009 12:57:54 +1000
On 27/07/2009, at 12:23 PM, Adam R. Maxwell wrote:
On Jul 26, 2009, at 7:11 PM, Greg Guerin wrote:
Chase Meadors wrote:
If the length of this mystery string is 1 and it's not a space,
what is it???
Use -characterAtIndex:0 and print the returned unichar using the
"%x" format.
Another sometimes-handy trick is to create a mutable copy and call
CFStringTransform with kCFStringTransformToUnicodeName.
You should also look at -getLineStart:end:contentsEnd:forRange: if
you're parsing lines of text, as it takes into account a variety of
possible line endings, not just \n.
--
Rob Keniger
_______________________________________________
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