/** Returns the index of the first occurrence of this pattern in the given character array. * * @param array the character array to look in. * @return the index of the first occurrence of this pattern contained in the * given array, or <code>-1</code>, if the pattern cannot be found. */ public int search( final char[] array ) { return search( array, 0, array.length ); }
/** Returns the index of the first occurrence of this pattern in the given character array starting from a given index. * * @param array the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subarray starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( char[] array, int from ) { return search( array, from, array.length ); }
/** Returns the index of the first occurrence of this pattern in the given byte array. * * @param a the byte array to look in. * @return the index of the first occurrence of this pattern contained in the * given byte array, or <code>-1</code>, if the pattern cannot be found. */ public int search( final byte[] a ) { return search( a, 0, a.length ); }
/** Returns the index of the first occurrence of this pattern in the given byte array starting from a given index. * * @param a the byte array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * array fragment starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( final byte[] a, final int from ) { return search( a, from, a.length ); }
/** Returns the index of the first occurrence of this pattern in the given character array. * * @param array the character array to look in. * @return the index of the first occurrence of this pattern contained in the * given array, or <code>-1</code>, if the pattern cannot be found. */ public int search( final char[] array ) { return search( array, 0, array.length ); }
/** Returns the index of the first occurrence of this pattern in the given byte array starting from a given index. * * @param a the byte array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * array fragment starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( final byte[] a, final int from ) { return search( a, from, a.length ); }
/** Returns the index of the first occurrence of this pattern in the given character array starting from a given index. * * @param array the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subarray starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search(char[] array, int from) { return search(array, from, array.length); }
/** Returns the index of the first occurrence of this pattern in the given character array starting from a given index. * * @param array the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subarray starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( char[] array, int from ) { return search( array, from, array.length ); }
/** Returns the index of the first occurrence of this pattern in the given byte array. * * @param a the byte array to look in. * @return the index of the first occurrence of this pattern contained in the * given byte array, or <code>-1</code>, if the pattern cannot be found. */ public int search( final byte[] a ) { return search( a, 0, a.length ); }
/** Returns the index of the first occurrence of this pattern in the given byte array. * * @param a the byte array to look in. * @return the index of the first occurrence of this pattern contained in the * given byte array, or <code>-1</code>, if the pattern cannot be found. */ public int search(final byte[] a) { return search(a, 0, a.length); }
/** Returns the index of the first occurrence of this pattern in the given character sequence starting from a given index. * * @param s the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subsequence starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( final CharSequence s, final int from ) { return search( s, from, s.length() ); }
/** Returns the index of the first occurrence of this pattern in the given character sequence starting from a given index. * * @param s the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subsequence starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search(final CharSequence s, final int from) { return search(s, from, s.length()); }
/** Returns the index of the first occurrence of this pattern in the given character sequence. * * @param s the character sequence to look in. * @return the index of the first occurrence of this pattern contained in the * given character sequence, or <code>-1</code>, if the pattern cannot be found. */ public int search( final CharSequence s ) { return search( s, 0, s.length() ); }
/** Returns the index of the first occurrence of this pattern in the given character sequence. * * @param s the character sequence to look in. * @return the index of the first occurrence of this pattern contained in the * given character sequence, or <code>-1</code>, if the pattern cannot be found. */ public int search( final CharSequence s ) { return search( s, 0, s.length() ); }
/** Returns the index of the first occurrence of this pattern in the given character sequence starting from a given index. * * @param s the character array to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * subsequence starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( final CharSequence s, final int from ) { return search( s, from, s.length() ); }
/** Returns the index of the first occurrence of this pattern in the given character sequence. * * @param s the character sequence to look in. * @return the index of the first occurrence of this pattern contained in the * given character sequence, or <code>-1</code>, if the pattern cannot be found. */ public int search(final CharSequence s) { return search(s, 0, s.length()); }
/** Returns the index of the first occurrence of this pattern in the given character list starting from a given index. * * @param list the character list to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * sublist starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search( final CharList list, int from ) { return search( list, from, list.size() ); }
/** Returns the index of the first occurrence of this pattern in the given character list. * * @param list the character list to look in. * @return the index of the first occurrence of this pattern contained in the * given list, or <code>-1</code>, if the pattern cannot be found. */ public int search( final CharList list ) { return search( list, 0, list.size() ); }
/** Returns the index of the first occurrence of this pattern in the given character list starting from a given index. * * @param list the character list to look in. * @param from the index from which the search must start. * @return the index of the first occurrence of this pattern contained in the * sublist starting from <code>from</code> (inclusive), or * <code>-1</code>, if the pattern cannot be found. */ public int search(final CharList list, int from) { return search(list, from, list.size()); }
/** Returns the index of the first occurrence of this pattern in the given character list. * * @param list the character list to look in. * @return the index of the first occurrence of this pattern contained in the * given list, or <code>-1</code>, if the pattern cannot be found. */ public int search(final CharList list) { return search(list, 0, list.size()); }