[stdlib] Remove _StringCore from UTF8View.Index

This commit is contained in:
Nate Cook
2016-07-08 10:59:47 -05:00
parent cd59716c78
commit c9278a1b50
3 changed files with 20 additions and 25 deletions

View File

@@ -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)