@@ -296,7 +296,7 @@ open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSC
296
296
internal func _fastCStringContents( _ nullTerminated: Bool ) -> UnsafePointer < Int8 > ? {
297
297
if type ( of: self ) == NSString . self || type ( of: self ) == NSMutableString . self {
298
298
if _storage. _guts. _isContiguousASCII {
299
- return unsafeBitCast ( _storage. _core . startASCII, to: UnsafePointer< Int8> . self )
299
+ return unsafeBitCast ( _storage. _guts . startASCII, to: UnsafePointer< Int8> . self )
300
300
}
301
301
}
302
302
return nil
@@ -305,7 +305,7 @@ open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSC
305
305
internal var _fastContents : UnsafePointer < UniChar > ? {
306
306
if type ( of: self ) == NSString . self || type ( of: self ) == NSMutableString . self {
307
307
if _storage. _guts. _isContiguousUTF16 {
308
- return UnsafePointer < UniChar > ( _storage. _core . startUTF16)
308
+ return UnsafePointer < UniChar > ( _storage. _guts . startUTF16)
309
309
}
310
310
}
311
311
return nil
@@ -864,7 +864,7 @@ extension NSString {
864
864
if type ( of: self ) == NSString . self || type ( of: self ) == NSMutableString . self {
865
865
if _storage. _guts. _isContiguousASCII {
866
866
used = min ( self . length, maxBufferCount - 1 )
867
- _storage. _core . startASCII. withMemoryRebound ( to: Int8 . self,
867
+ _storage. _guts . startASCII. withMemoryRebound ( to: Int8 . self,
868
868
capacity: used) {
869
869
buffer. moveAssign ( from: $0, count: used)
870
870
}
0 commit comments