mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Remove _StringCore from UTF8View.Index
This commit is contained in:
@@ -471,7 +471,7 @@ extension String.UnicodeScalarIndex {
|
||||
"Invalid String.UTF8Index for this UnicodeScalar view")
|
||||
|
||||
// Detect positions that have no corresponding index.
|
||||
if !utf8Index._isOnUnicodeScalarBoundary {
|
||||
if !utf8Index._isOnUnicodeScalarBoundary(in: core) {
|
||||
return nil
|
||||
}
|
||||
self.init(_position: utf8Index._coreIndex)
|
||||
|
||||
Reference in New Issue
Block a user