mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] conversions to UTF16View.Index
Swift SVN r24013
This commit is contained in:
@@ -343,4 +343,9 @@ extension String.UnicodeScalarView.Index {
|
||||
) -> String.UTF8View.Index {
|
||||
return String.UTF8View.Index(self, within: otherView)
|
||||
}
|
||||
public func samePositionIn(
|
||||
otherView: String.UTF16View
|
||||
) -> String.UTF16View.Index {
|
||||
return String.UTF16View.Index(self, within: otherView)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user