< prev index next >

src/java.base/share/classes/sun/text/normalizer/UTF16.java

Print this page

        

*** 324,334 **** * @return UTF-32 value for the UTF-32 value that contains the char at offset16. The boundaries * of that codepoint are the same as in <code>bounds32()</code>. * @exception IndexOutOfBoundsException Thrown if offset16 is not within the range of start and limit. * @stable ICU 2.1 */ ! public static int charAt(char source[], int start, int limit, int offset16) { offset16 += start; if (offset16 < start || offset16 >= limit) { throw new ArrayIndexOutOfBoundsException(offset16); } --- 324,334 ---- * @return UTF-32 value for the UTF-32 value that contains the char at offset16. The boundaries * of that codepoint are the same as in <code>bounds32()</code>. * @exception IndexOutOfBoundsException Thrown if offset16 is not within the range of start and limit. * @stable ICU 2.1 */ ! public static int charAt(char[] source, int start, int limit, int offset16) { offset16 += start; if (offset16 < start || offset16 >= limit) { throw new ArrayIndexOutOfBoundsException(offset16); }
*** 514,524 **** * @exception IndexOutOfBoundsException if the new offset16 is out of * bounds with respect to the subarray or the subarray bounds * are out of range. * @stable ICU 2.1 */ ! public static int moveCodePointOffset(char source[], int start, int limit, int offset16, int shift32) { int size = source.length; int count; char ch; --- 514,524 ---- * @exception IndexOutOfBoundsException if the new offset16 is out of * bounds with respect to the subarray or the subarray bounds * are out of range. * @stable ICU 2.1 */ ! public static int moveCodePointOffset(char[] source, int start, int limit, int offset16, int shift32) { int size = source.length; int count; char ch;
< prev index next >