public class BoyerMooreSearchMatcher extends java.lang.Object implements SearchMatcher
Constructor and Description |
---|
BoyerMooreSearchMatcher(java.lang.String pattern,
java.lang.String replace,
boolean ignoreCase,
boolean reverseSearch,
boolean script,
java.lang.String pythonScript)
Creates a new string literal matcher.
|
Modifier and Type | Method and Description |
---|---|
int |
match(char[] text,
int offset,
int length) |
int[] |
nextMatch(javax.swing.text.Segment text)
Returns the offset of the first match of the specified text
within this matcher.
|
java.lang.String |
substitute(java.lang.String text)
Returns the specified text, with any substitution specified
within this matcher performed.
|
public BoyerMooreSearchMatcher(java.lang.String pattern, java.lang.String replace, boolean ignoreCase, boolean reverseSearch, boolean script, java.lang.String pythonScript)
public int[] nextMatch(javax.swing.text.Segment text)
nextMatch
in interface SearchMatcher
text
- The text to search inpublic java.lang.String substitute(java.lang.String text) throws java.lang.Exception
substitute
in interface SearchMatcher
text
- The textjava.lang.Exception
public int match(char[] text, int offset, int length)
Copyright ? 2002 Romain Guy.