mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: add a mirror for the Unicode scalar String view
Swift SVN r20977
This commit is contained in:
@@ -25,7 +25,7 @@ public func <(
|
||||
}
|
||||
|
||||
extension String {
|
||||
public struct UnicodeScalarView : Sliceable, SequenceType {
|
||||
public struct UnicodeScalarView : Sliceable, SequenceType, Reflectable {
|
||||
init(_ _core: _StringCore) {
|
||||
self._core = _core
|
||||
}
|
||||
@@ -213,6 +213,10 @@ extension String {
|
||||
}
|
||||
}
|
||||
|
||||
public func getMirror() -> MirrorType {
|
||||
return _UnicodeScalarViewMirror(self)
|
||||
}
|
||||
|
||||
var _core: _StringCore
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user