Lines Matching refs:toffset

1278      * {@code String} object to be compared begins at index {@code toffset}
1283 * <ul><li>{@code toffset} is negative.
1285 * <li>{@code toffset+len} is greater than the length of this
1291 * {@code this.charAt(toffset + }<i>k</i>{@code ) != other.charAt(ooffset + }
1298 * @param toffset the starting offset of the subregion in this string.
1307 public boolean regionMatches(int toffset, String other, int ooffset, int len) {
1310 // Note: toffset, ooffset, or len might be near -1>>>1.
1311 if ((ooffset < 0) || (toffset < 0) ||
1312 (toffset > (long)length() - len) ||
1318 toffset = toffset << 1;
1323 if (tv[toffset++] != ov[ooffset++]) {
1330 if (StringLatin1.getChar(tv, toffset++) !=
1337 if (StringUTF16.getChar(tv, toffset++) !=
1355 * {@code toffset} and has length {@code len}. The substring of
1359 * <ul><li>{@code toffset} is negative.
1361 * <li>{@code toffset+len} is greater than the length of this
1368 * this.charAt(toffset+k) != other.charAt(ooffset+k)
1373 * Character.toLowerCase(Character.toUpperCase(this.charAt(toffset+k))) !=
1385 * @param toffset the starting offset of the subregion in this
1397 public boolean regionMatches(boolean ignoreCase, int toffset,
1400 return regionMatches(toffset, other, ooffset, len);
1402 // Note: toffset, ooffset, or len might be near -1>>>1.
1403 if ((ooffset < 0) || (toffset < 0)
1404 || (toffset > (long)length() - len)
1412 ? StringLatin1.regionMatchesCI(tv, toffset, ov, ooffset, len)
1413 : StringUTF16.regionMatchesCI(tv, toffset, ov, ooffset, len);
1416 ? StringLatin1.regionMatchesCI_UTF16(tv, toffset, ov, ooffset, len)
1417 : StringUTF16.regionMatchesCI_Latin1(tv, toffset, ov, ooffset, len);
1425 * @param toffset where to begin looking in this string.
1428 * at index {@code toffset}; {@code false} otherwise.
1429 * The result is {@code false} if {@code toffset} is
1434 * this.substring(toffset).startsWith(prefix)
1437 public boolean startsWith(String prefix, int toffset) {
1438 // Note: toffset might be near -1>>>1.
1439 if (toffset < 0 || toffset > length() - prefix.length()) {
1447 int to = isLatin1() ? toffset : toffset << 1;
1459 if (StringUTF16.getChar(ta, toffset++) != (pa[po++] & 0xff)) {