• 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
Translating UTF8 range into NSString range?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Translating UTF8 range into NSString range?


  • Subject: Translating UTF8 range into NSString range?
  • From: Izidor Jerebic <email@hidden>
  • Date: Wed, 6 Oct 2004 11:49:05 +0200

Hello!

I have an array of utf8 encoded bytes, which are processed by flex (it works in 8-bit). This processing results in ranges of characters, but for the utf8 byte array. I would like to have these ranges in Unicode range, so I can use them with NSString, which is created from this utf8 encoded data (characterAtIndex: and so on)...

These utf8 ranges are known to be valid, because all non-ascii stuff is grouped together, so no Unicode character is ever split.

Does anybody know of a way to translate utf8 range into corresponding NSString Unicode range?


Regards,
izidor

_______________________________________________
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
  • Follow-Ups:
    • Re: Translating UTF8 range into NSString range?
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Re: FOUND Workaround Re: Disk Utility....
  • Next by Date: Re: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
  • Previous by thread: NSFileWrapper question
  • Next by thread: Re: Translating UTF8 range into NSString range?
  • Index(es):
    • Date
    • Thread