|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.sp.jedit.search.RESearchMatcher
A regular expression string matcher using gnu.regexp
.
Field Summary | |
static RESyntax |
RE_SYNTAX_JEDIT
Perl5 syntax with character classes enabled. |
Constructor Summary | |
RESearchMatcher(java.lang.String search,
java.lang.String replace,
boolean ignoreCase,
boolean beanshell,
BshMethod replaceMethod)
Creates a new regular expression string matcher. |
Method Summary | |
int[] |
nextMatch(CharIndexed text,
boolean start,
boolean end,
boolean firstTime,
boolean reverse)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final RESyntax RE_SYNTAX_JEDIT
Constructor Detail |
public RESearchMatcher(java.lang.String search, java.lang.String replace, boolean ignoreCase, boolean beanshell, BshMethod replaceMethod) throws java.lang.Exception
Method Detail |
public int[] nextMatch(CharIndexed text, boolean start, boolean end, boolean firstTime, boolean reverse)
nextMatch
in interface SearchMatcher
text
- The text to search instart
- True if the start of the segment is the beginning of the
bufferend
- True if the end of the segment is the end of the bufferfirstTime
- If false and the search string matched at the start
offset with length zero, automatically find next matchreverse
- If true, searching will be performed in a backward
direction.
public java.lang.String substitute(java.lang.String text) throws java.lang.Exception
substitute
in interface SearchMatcher
text
- The text
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |