mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
index(n, stepsFrom: i)
M-x findr-query-replace \<advance(\([^:]+?\),\([ ]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[ ]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?) index(\3,\2stepsFrom: \1\4)
This commit is contained in:
@@ -319,8 +319,8 @@ StringTests.test("CompareStringsWithUnpairedSurrogates")
|
||||
|
||||
expectEqual("\u{fffd}\u{1f602}\u{fffd}",
|
||||
acceptor[
|
||||
donor.advance(donor.startIndex, by: 1) ..<
|
||||
donor.advance(donor.startIndex, by: 5)
|
||||
donor.index(1, stepsFrom: donor.startIndex) ..<
|
||||
donor.index(5, stepsFrom: donor.startIndex)
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user