advanceByCodePoints

abstract fun advanceByCodePoints(codePointOffset: Int)(source)

Advances the iterator by the specified number of Unicode code points, either forward or backward.

If the codePointOffset is positive, the iterator moves forward by the specified number of code points. If the codePointOffset is negative, the iterator moves backward by the specified number of code points. The zero codePointOffset does not move the position of the iterator.

Since Kotlin

2.5

Throws

if the offset moves the iterator beyond the allowable range of iteration.