mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
This commit is contained in:
@@ -95,14 +95,14 @@ import SwiftShims
|
||||
///
|
||||
/// `String` is bridged to Objective-C as `NSString`, and a `String`
|
||||
/// that originated in Objective-C may store its characters in an
|
||||
/// `NSString`. Since any arbitrary subclass of `NSSString` can
|
||||
/// `NSString`. Since any arbitrary subclass of `NSString` can
|
||||
/// become a `String`, there are no guarantees about representation or
|
||||
/// efficiency in this case. Since `NSString` is immutable, it is
|
||||
/// just as though the storage was shared by some copy: the first in
|
||||
/// any sequence of mutating operations causes elements to be copied
|
||||
/// into unique, contiguous storage which may cost `O(N)` time and
|
||||
/// space, where `N` is the length of the string representation (or
|
||||
/// more, if the underlying `NSString` is has unusual performance
|
||||
/// more, if the underlying `NSString` has unusual performance
|
||||
/// characteristics).
|
||||
public struct String {
|
||||
/// An empty `String`.
|
||||
@@ -296,7 +296,7 @@ extension String {
|
||||
/// Compare two strings using the Unicode collation algorithm in the
|
||||
/// deterministic comparison mode. (The strings which are equivalent according
|
||||
/// to their NFD form are considered equal. Strings which are equivalent
|
||||
/// according to the plain Unicode collation algorithm are additionaly ordered
|
||||
/// according to the plain Unicode collation algorithm are additionally ordered
|
||||
/// based on their NFD.)
|
||||
///
|
||||
/// See Unicode Technical Standard #10.
|
||||
|
||||
Reference in New Issue
Block a user