• 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: How to enumerate by code points in Swift beta4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to enumerate by code points in Swift beta4?
      • From: Quincey Morris <email@hidden>
    • Re: How to enumerate by code points in Swift beta4?
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >How to enumerate by code points in Swift beta4? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: How to enumerate by code points in Swift beta4?
  • Next by Date: Re: How to enumerate by code points in Swift beta4?
  • Previous by thread: How to enumerate by code points in Swift beta4?
  • Next by thread: Re: How to enumerate by code points in Swift beta4?
  • Index(es):
    • Date
    • Thread