stdlib: add a mirror for the Unicode scalar String view

Swift SVN r20977
This commit is contained in:
Dmitri Hrybenko
2014-08-03 20:01:34 +00:00
parent 1c484d91a0
commit 6e401c20ca
3 changed files with 15 additions and 4 deletions

View File

@@ -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
}
}