@@ -218,8 +218,8 @@ extension _StringGuts {
218218 }
219219
220220 internal mutating func remove( from lower: Index , to upper: Index ) {
221- let lowerOffset = lower. encodedOffset
222- let upperOffset = upper. encodedOffset
221+ let lowerOffset = lower. _encodedOffset
222+ let upperOffset = upper. _encodedOffset
223223 _internalInvariant ( lower. transcodedOffset == 0 && upper. transcodedOffset == 0 )
224224 _internalInvariant ( lowerOffset <= upperOffset && upperOffset <= self . count)
225225
@@ -279,16 +279,16 @@ extension _StringGuts {
279279 isASCII: Bool
280280 ) {
281281 let neededCapacity =
282- bounds. lowerBound. encodedOffset
283- + codeUnits. count + ( self . count - bounds. upperBound. encodedOffset )
282+ bounds. lowerBound. _encodedOffset
283+ + codeUnits. count + ( self . count - bounds. upperBound. _encodedOffset )
284284 reserveCapacity ( neededCapacity)
285285
286286 _internalInvariant ( bounds. lowerBound. transcodedOffset == 0 )
287287 _internalInvariant ( bounds. upperBound. transcodedOffset == 0 )
288288
289289 _object. nativeStorage. replace (
290- from: bounds. lowerBound. encodedOffset ,
291- to: bounds. upperBound. encodedOffset ,
290+ from: bounds. lowerBound. _encodedOffset ,
291+ to: bounds. upperBound. _encodedOffset ,
292292 with: codeUnits)
293293 self = _StringGuts ( _object. nativeStorage)
294294 }
@@ -300,16 +300,16 @@ extension _StringGuts {
300300 let replCount = codeUnits. count
301301
302302 let neededCapacity =
303- bounds. lowerBound. encodedOffset
304- + replCount + ( self . count - bounds. upperBound. encodedOffset )
303+ bounds. lowerBound. _encodedOffset
304+ + replCount + ( self . count - bounds. upperBound. _encodedOffset )
305305 reserveCapacity ( neededCapacity)
306306
307307 _internalInvariant ( bounds. lowerBound. transcodedOffset == 0 )
308308 _internalInvariant ( bounds. upperBound. transcodedOffset == 0 )
309309
310310 _object. nativeStorage. replace (
311- from: bounds. lowerBound. encodedOffset ,
312- to: bounds. upperBound. encodedOffset ,
311+ from: bounds. lowerBound. _encodedOffset ,
312+ to: bounds. upperBound. _encodedOffset ,
313313 with: codeUnits,
314314 replacementCount: replCount)
315315 self = _StringGuts ( _object. nativeStorage)
0 commit comments