We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@_specialize
1 parent d00f8ed commit 7d89d62Copy full SHA for 7d89d62
stdlib/public/core/StringBridge.swift
@@ -791,8 +791,6 @@ extension StringProtocol {
791
return self.utf16.index(self.utf16.startIndex, offsetBy: offset)
792
}
793
794
- @_specialize(where Self == String)
795
- @_specialize(where Self == Substring)
796
public // SPI(Foundation)
797
func _toUTF16Offsets(_ indices: Range<Index>) -> Range<Int> {
798
if Self.self == String.self {
@@ -808,8 +806,6 @@ extension StringProtocol {
808
806
return Range(uncheckedBounds: (lower: startOffset, upper: endOffset))
809
807
810
811
812
813
814
func _toUTF16Indices(_ range: Range<Int>) -> Range<Index> {
815
0 commit comments