Re: How to enumerate by code points in Swift beta4?
Re: How to enumerate by code points in Swift beta4?
- Subject: Re: How to enumerate by code points in Swift beta4?
- From: Roland King <email@hidden>
- Date: Wed, 23 Jul 2014 14:26:38 +0800
How can I get the Unicode code points (NOT unsigned shorts in utf-16 representation) as UInts (or Ints) ? like: 0xe17, 0xe35, 0xe48.
Gerriet.
If I understand what you’re asking here, that’s in the Swift iBook.
… enumerate(ss.utf16) …
Running that in a playground (playgrounds are working better in Beta 4) gives me those 3 UTF-16 code points. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden