Files
swift-mirror/stdlib/core/StringUTF16.swift
Dave Abrahams ada079bb4d [stdlib] UTF16View: unavailable subscript with Int
There had been some discussion of making this available iff Foundation
is loaded, but it turns out that there are almost no Foundation APIs
that return NSUInteger indices into NSStrings without first packaging
them into NSRanges, and when <rdar://problem/19255291> is addressed,
these NSRanges will become Swift Range's, which have a different
interface.  So there's no seamless API transition to be had here, for
any substantial subset of code written against Cocoa.

Swift SVN r23949
2014-12-15 22:24:31 +00:00

5.4 KiB