Lines Matching refs:str

368             // 6588260: (str) ArrayIndexOutOfBoundsException when trying
397 String str = input[i];
398 int length = str.length();
400 int result = str.codePointCount(j, length);
401 int expected = Character.codePointCount(str, j, length);
405 // underlying char[] of the String str.
406 String substr = str.substring(j, length);
412 int result = str.codePointCount(0, j);
413 int expected = Character.codePointCount(str, 0, j);
416 String substr = str.substring(0, j);
424 testCodePointCount(str, -1, length, IndexOutOfBoundsException.class);
425 testCodePointCount(str, 0, length+1, IndexOutOfBoundsException.class);
426 testCodePointCount(str, length, length-1, IndexOutOfBoundsException.class);
439 String str = input[i];
440 int length = str.length();
442 int nCodePoints = Character.codePointCount(str, j, length);
443 int result = str.offsetByCodePoints(j, nCodePoints);
447 result = str.offsetByCodePoints(length, -nCodePoints);
450 int cp = str.codePointBefore(j+1);
460 int nCodePoints = Character.codePointCount(str, 0, j);
461 int result = str.offsetByCodePoints(0, nCodePoints);
464 int cp = str.codePointAt(j-1);
472 result = str.offsetByCodePoints(j, -nCodePoints);
480 testOffsetByCodePoints(str, -1, length, IndexOutOfBoundsException.class);
481 testOffsetByCodePoints(str, 0, length+1, IndexOutOfBoundsException.class);
482 testOffsetByCodePoints(str, 1, -2, IndexOutOfBoundsException.class);
483 testOffsetByCodePoints(str, length, length-1, IndexOutOfBoundsException.class);
484 testOffsetByCodePoints(str, length, -(length+1), IndexOutOfBoundsException.class);
499 String str = wholeString.substring(header.length());
500 int length = str.length();
502 int nCodePoints = Character.codePointCount(str, j, length);
503 int result = str.offsetByCodePoints(j, nCodePoints);
507 result = str.offsetByCodePoints(length, -nCodePoints);
510 int cp = str.codePointBefore(j+1);
520 int nCodePoints = Character.codePointCount(str, 0, j);
521 int result = str.offsetByCodePoints(0, nCodePoints);
524 int cp = str.codePointAt(j-1);
532 result = str.offsetByCodePoints(j, -nCodePoints);
648 static void testCodePointCount(String str, int beginIndex, int endIndex,
651 int n = str.codePointCount(beginIndex, endIndex);
661 static void testOffsetByCodePoints(String str, int index, int offset,
664 int n = str.offsetByCodePoints(index, offset);