From f16a2a36d21a2596db48bf3ba05d0f97339581bf Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 23 Jan 2014 17:11:47 +0900 Subject: [PATCH] [IL71.1] Add some javadoc. Change-Id: I382abd3104d535a1e868935d8cfb4e34ad8ebaed --- .../com/android/inputmethod/latin/utils/StringUtils.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/utils/StringUtils.java b/java/src/com/android/inputmethod/latin/utils/StringUtils.java index 8fc245d9b..6f15b11bf 100644 --- a/java/src/com/android/inputmethod/latin/utils/StringUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/StringUtils.java @@ -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();