mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Enable interchange among StringProtocol models
This commit is contained in:
@@ -326,6 +326,10 @@ extension String {
|
||||
public typealias UnicodeScalarIndex = UnicodeScalarView.Index
|
||||
}
|
||||
|
||||
extension String.UnicodeScalarView : _SwiftStringView {
|
||||
var _persistentContent : String { return String(_core) }
|
||||
}
|
||||
|
||||
extension String {
|
||||
/// The string's value represented as a collection of Unicode scalar values.
|
||||
public var unicodeScalars: UnicodeScalarView {
|
||||
|
||||
Reference in New Issue
Block a user