am f16a2a36: [IL71.1] Add some javadoc.
* commit 'f16a2a36d21a2596db48bf3ba05d0f97339581bf': [IL71.1] Add some javadoc.main
commit
647466f729
|
@ -174,6 +174,13 @@ public final class StringUtils {
|
||||||
return toCodePointArray(string, 0, string.length());
|
return toCodePointArray(string, 0, string.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts a range of a string to an array of code points.
|
||||||
|
* @param string the source string.
|
||||||
|
* @param startIndex the start index inside the string in java chars, inclusive.
|
||||||
|
* @param endIndex the end index inside the string in java chars, exclusive.
|
||||||
|
* @return a new array of code points. At most endIndex - startIndex, but possibly less.
|
||||||
|
*/
|
||||||
public static int[] toCodePointArray(final String string,
|
public static int[] toCodePointArray(final String string,
|
||||||
final int startIndex, final int endIndex) {
|
final int startIndex, final int endIndex) {
|
||||||
final int length = string.length();
|
final int length = string.length();
|
||||||
|
|
Loading…
Reference in New Issue