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.
2 parents 1f99047 + 563d6c2 commit 70c0756Copy full SHA for 70c0756
Sources/_StringProcessing/Unicode/NecessaryEvils.swift
@@ -88,14 +88,3 @@ extension UTF16 {
88
(UInt32(lead & 0x03ff) &<< 10 | UInt32(trail & 0x03ff)))
89
}
90
91
-
92
-extension String.Index {
93
- internal var _encodedOffset: Int {
94
- // The encoded offset is found in the top 48 bits.
95
- Int(unsafeBitCast(self, to: UInt64.self) >> 16)
96
- }
97
98
- internal init(_encodedOffset offset: Int) {
99
- self = unsafeBitCast(offset << 16, to: Self.self)
100
101
-}
0 commit comments