Constructor and Description |
---|
Skip(String s,
boolean ign,
int o)
Initialize, give it a String to search for, tell it
whether or not to ignoreCase, and what the offset is
of the String within the String to be searched.
|
Modifier and Type | Method and Description |
---|---|
int |
find(StringLike s)
The same as find(s,0,s.length())
|
int |
find(StringLike s,
int start,
int end)
Searches a given region of text beginning at position start
and ending at position end for the skip object.
|
static int |
offset(Regex r)
Determine the offset of the String within the pattern
that we are skipping to.
|
static String |
string(Regex r)
Examine a Regex to determine what String it will
attempt to skip to when searching for patterns.
|
public Skip(String s, boolean ign, int o)
public static String string(Regex r)
public static int offset(Regex r)
public final int find(StringLike s)
public int find(StringLike s, int start, int end)