Searched refs:toffset (Results 1 - 11 of 11) sorted by relevance

/openjdk9/jdk/test/java/lang/String/CompactString/
H A DRegionMatches.java89 public void testRegionMatches(String str, boolean ignoreCase, int toffset, argument
95 data.regionMatches(ignoreCase, toffset,
101 toffset, escapeNonASCIIs(other),
H A DStartsWith.java94 public void testStartsWith(String str, String prefix, int toffset, argument
100 data.startsWith(prefix, toffset),
105 escapeNonASCIIs(prefix), toffset,
/openjdk9/hotspot/test/testlibrary/ctw/src/sun/hotspot/tools/ctw/
H A DUtils.java148 int toffset = string.length() - length;
149 if (toffset < 0) {
152 return string.regionMatches(true, toffset, suffix, 0, length);
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/
H A DXMLStringDefault.java272 * @param toffset where to begin looking in the string.
275 * at index <code>toffset</code>; <code>false</code> otherwise.
276 * The result is <code>false</code> if <code>toffset</code> is
281 * this.subString(toffset).startsWith(prefix)
286 public boolean startsWith(String prefix, int toffset) argument
288 return m_str.startsWith(prefix, toffset);
296 * @param toffset where to begin looking in the string.
299 * at index <code>toffset</code>; <code>false</code> otherwise.
300 * The result is <code>false</code> if <code>toffset</code> is
305 * this.subString(toffset)
310 startsWith(XMLString prefix, int toffset) argument
[all...]
H A DXMLString.java227 * @param toffset where to begin looking in the string.
230 * at index <code>toffset</code>; <code>false</code> otherwise.
231 * The result is <code>false</code> if <code>toffset</code> is
236 * this.subString(toffset).startsWith(prefix)
241 public abstract boolean startsWith(String prefix, int toffset); argument
248 * @param toffset where to begin looking in the string.
251 * at index <code>toffset</code>; <code>false</code> otherwise.
252 * The result is <code>false</code> if <code>toffset</code> is
257 * this.subString(toffset).startsWith(prefix)
262 public abstract boolean startsWith(XMLString prefix, int toffset); argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/java/lang/
H A DString.java1278 * {@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) { argument
1310 // Note: toffset, ooffset, or len might be near -1>>>1.
1311 if ((ooffset < 0) || (toffset < 0) ||
1312 (toffset > (long)length() - len) ||
1318 toffset
1397 regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) argument
1437 startsWith(String prefix, int toffset) argument
[all...]
H A DStringLatin1.java313 public static boolean regionMatchesCI(byte[] value, int toffset, argument
315 int last = toffset + len;
316 while (toffset < last) {
317 char c1 = (char)(value[toffset++] & 0xff);
335 public static boolean regionMatchesCI_UTF16(byte[] value, int toffset, argument
337 int last = toffset + len;
338 while (toffset < last) {
339 char c1 = (char)(value[toffset++] & 0xff);
H A DStringUTF16.java572 public static boolean regionMatchesCI(byte[] value, int toffset, argument
574 int last = toffset + len;
575 assert toffset >= 0 && ooffset >= 0;
578 while (toffset < last) {
579 char c1 = getChar(value, toffset++);
604 public static boolean regionMatchesCI_Latin1(byte[] value, int toffset, argument
607 return StringLatin1.regionMatchesCI_UTF16(other, ooffset, value, toffset, len);
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/objects/
H A DXString.java491 * @param toffset where to begin looking in the string.
494 * at index <code>toffset</code>; <code>false</code> otherwise.
495 * The result is <code>false</code> if <code>toffset</code> is
500 * this.subString(toffset).startsWith(prefix)
505 public boolean startsWith(String prefix, int toffset) argument
507 return str().startsWith(prefix, toffset);
534 * @param toffset where to begin looking in the string.
537 * at index <code>toffset</code>; <code>false</code> otherwise.
538 * The result is <code>false</code> if <code>toffset</code> is
543 * this.subString(toffset)
548 startsWith(XMLString prefix, int toffset) argument
[all...]
H A DXStringForFSB.java595 * @param toffset where to begin looking in the string.
598 * at index <code>toffset</code>; <code>false</code> otherwise.
599 * The result is <code>false</code> if <code>toffset</code> is
604 * this.subString(toffset).startsWith(prefix)
609 public boolean startsWith(XMLString prefix, int toffset) argument
613 int to = m_start + toffset;
618 // Note: toffset might be near -1>>>1.
619 if ((toffset < 0) || (toffset > m_length - pc))
/openjdk9/hotspot/src/share/vm/opto/
H A Dlibrary_call.cpp1526 const TypeInt* toffset = gvn().type(offset)->is_int(); local
1527 bool aligned = toffset->is_con() && ((toffset->get_con() * type2aelembytes(T_CHAR)) % HeapWordSize == 0);

Completed in 256 milliseconds