[stdlib] String API Review: NSString API

Many changes in how we're presenting the NSString APIs on String, most
notably that we now traffic in String.Index and Range<String.Index>
rather than Int and NSRange.  Also we present NSString initializers that
can fail only as factory functions, and factory functions that can't
fail only as init functions.

About 25% of the API changes here have been reviewd by the Foundation
guys, and testing is, as it has always been, admittedly spotty.  Dmitri
is going to be writing some more comprehensive tests.

Swift SVN r18553
This commit is contained in:
Dave Abrahams
2014-05-22 04:21:55 +00:00
parent 80f8b1a4ea
commit 0f9edadc41
5 changed files with 718 additions and 753 deletions

File diff suppressed because it is too large Load Diff