Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f16a2a36 authored by Jean Chalard's avatar Jean Chalard
Browse files

[IL71.1] Add some javadoc.

Change-Id: I382abd3104d535a1e868935d8cfb4e34ad8ebaed
parent 4173610b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -174,6 +174,13 @@ public final class StringUtils {
        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,
            final int startIndex, final int endIndex) {
        final int length = string.length();