public int offsetByCodePoints (int index, int codePointOffset)

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.

index    the index to be offset
codePointOffset    the offset in code points

Returns:  the index within this String

IndexOutOfBoundsException    if index is negative or larger then the length of this String, or if codePointOffset is positive and the substring starting with index has fewer than codePointOffset code points, or if codePointOffset is negative and the substring before index has fewer than the absolute value of codePointOffset code points.

Since:  1.5