index(n, stepsFrom: i)

M-x findr-query-replace

\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)

index(\3,\2stepsFrom: \1\4)
This commit is contained in:
Dave Abrahams
2016-03-25 17:54:39 -07:00
parent 11259d1d14
commit 01127b32d5
31 changed files with 157 additions and 157 deletions

View File

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