• 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: reversing an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reversing an NSString


  • Subject: Re: reversing an NSString
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 8 Dec 2004 15:49:06 -0800


On Dec 8, 2004, at 3:23 PM, Matthew wrote:


I'd like to rephrase the question: What's the most `Objective-C approved' way to reverse an NSString? I didn't imagine this would be such a chore.

An NSString can hold a general sequence of Unicode characters, but not all such sequences make sense, let alone produce content that can be displayed, or that follows the rules of the writing system from which the characters are drawn. It's not clear exactly what you would want from 'reversal' in general, but at a minimum I think you would not want to reverse on a finer granularity than that given by rangeOfComposedCharacterSequenceAtIndex:. Even that is not necessarily going to give a graphical reversal in the general case.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >reversing an NSString (From: Matthew <email@hidden>)
 >Re: reversing an NSString (From: Matthew <email@hidden>)

  • Prev by Date: Re: reversing an NSString
  • Next by Date: Re: Protocol implementation split between base and derived class
  • Previous by thread: Re: reversing an NSString
  • Next by thread: Cocoa HTML Decoder
  • Index(es):
    • Date
    • Thread