Unicode support in Swift
Last updated at 5:57 pm UTC on 15 December 2015
Mark Bestley to mailing list, 15th Dec 2015
The Swift code (well for the next version) is open source see https://github.com/apple/swift-corelibs-foundation for the Foundation lib which includes Strings. Foundation is being rewritten in Swift rather than Objective C so should be Swift->C but I wonder if it is really clean yet, i.e. do they need all the current code.
A quick scan gives the low level as Stringing (same as current OSX_.
The encodings and conversions seem to use ICU to do the work (which is UTF-16 based)
Also in NSString.swift is the line public typealias unichar = UInt16