advanceStringIndex

fun advanceStringIndex(string: String, index: Long, unicode: Boolean): Long

The next index to try after an empty match. In unicode mode a surrogate pair counts as one step, so an empty match never lands between the two halves.