kotlin-stdlib / kotlin.text / offsetByCodePoints offsetByCodePoints JVM 1.0 fun String . offsetByCodePoints ( index : Int , codePointOffset : Int ) : Int (source) Returns the index within this string that is offset from the given index by codePointOffset code points.