[String] Bounds checking and Index cleanup

This commit is contained in:
Michael Ilseman
2018-10-15 13:32:35 -07:00
parent 7c00552729
commit f23a3c19b8
10 changed files with 40 additions and 22 deletions

View File

@@ -68,7 +68,6 @@ extension _StringGuts {
}
}
// TODO(UTF8): Should probably take a String.Index, assert no transcoding
@usableFromInline @inline(__always)
internal func fastUTF8Scalar(startingAt i: Int) -> Unicode.Scalar {
_sanityCheck(isFastUTF8)