We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4533a27 commit dc95688Copy full SHA for dc95688
Sources/_StringProcessing/Engine/MEBuiltins.swift
@@ -297,9 +297,10 @@ extension String {
297
) -> String.Index? {
298
// TODO: Branch here on scalar semantics
299
// Don't want to pay character cost if unnecessary
300
- guard var (char, next) =
+ guard let (char, nextIndex) =
301
characterAndEnd(at: currentPosition, limitedBy: end)
302
else { return nil }
303
+ var next = nextIndex
304
let scalar = unicodeScalars[currentPosition]
305
306
let asciiCheck = !isStrictASCII
0 commit comments