Skip to content

Commit 713b4bb

Browse files
committed
SQUASH ME: Keep in _encodingCantBeStoredInEightBitCFString's use of _core
1 parent 2d79a5a commit 713b4bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Foundation/NSString.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSC
304304
}
305305

306306
internal var _encodingCantBeStoredInEightBitCFString: Bool {
307+
if type(of: self) == NSString.self || type(of: self) == NSMutableString.self {
308+
return !_storage._core.isASCII
309+
}
307310
return false
308311
}
309312

0 commit comments

Comments
 (0)