It's been requested by the JSR 204 Expert Group to add methods to return the index that is offset from the given index and Unicode code points. For example,
str.offsetByCodePoints(0, 1)
will return the index to the second character in String str.
Proposed methods are:
String.offsetByCodePoints(int index, int offset)
StringBuffer.offsetByCodePoints(int index, int offset)
StringBuilder.offsetByCodePoints(int index, int offset)
Character.offsetByCodePoints(CharSequence seq, int index, int offset)
Character.offsetByCodePoints(char[] a, int index, int offset)
###@###.### 2004-03-22
str.offsetByCodePoints(0, 1)
will return the index to the second character in String str.
Proposed methods are:
String.offsetByCodePoints(int index, int offset)
StringBuffer.offsetByCodePoints(int index, int offset)
StringBuilder.offsetByCodePoints(int index, int offset)
Character.offsetByCodePoints(CharSequence seq, int index, int offset)
Character.offsetByCodePoints(char[] a, int index, int offset)
###@###.### 2004-03-22