1. Java String offsetByCodePoints() Method Overview
offsetByCodePoints() method returns the index within this String that is offset from the given index by codePointOffset code points.Unpaired surrogates within the text range given by index and codePointOffset count as one code point each.
1.1 Syntax
Here is the full syntax for this method and part of java.lang package.
public int offsetByCodePoints(int index, int codePointOffset)
Article on Java Package