| java.lang.Object org.gjt.sp.jedit.search.SearchMatcher org.gjt.sp.jedit.search.PatternSearchMatcher
PatternSearchMatcher | public class PatternSearchMatcher extends SearchMatcher (Code) | | A regular expression string matcher using java.util.regex.
See Also: java.util.regex.Pattern author: Marcelo Vanzin version: $Id: PatternSearchMatcher.java 10798 2007-10-04 09:04:25Z kpouer $ since: jEdit 4.3pre5 |
Constructor Summary | |
public | PatternSearchMatcher(String search, boolean ignoreCase) Creates a new regular expression string matcher. |
Method Summary | |
public boolean | isMatchingEOL() | public SearchMatcher.Match | nextMatch(CharSequence text, boolean start, boolean end, boolean firstTime, boolean reverse) Returns the offset of the first match of the specified text
within this matcher.
Parameters: text - The text to search in Parameters: start - True if the start of the segment is the beginningof the buffer Parameters: end - True if the end of the segment is the end of thebuffer Parameters: firstTime - If false and the search string matched at thestart offset with length zero, automaticallyfind next match Parameters: reverse - Unsupported for PatternSearchMatcher. | public String | toString() |
PatternSearchMatcher | public PatternSearchMatcher(String search, boolean ignoreCase)(Code) | | Creates a new regular expression string matcher.
See Also: java.util.regex.Pattern Parameters: search - the search pattern Parameters: ignoreCase - true if you want to ignore case since: jEdit 4.3pre5 |
isMatchingEOL | public boolean isMatchingEOL()(Code) | | |
nextMatch | public SearchMatcher.Match nextMatch(CharSequence text, boolean start, boolean end, boolean firstTime, boolean reverse)(Code) | | Returns the offset of the first match of the specified text
within this matcher.
Parameters: text - The text to search in Parameters: start - True if the start of the segment is the beginningof the buffer Parameters: end - True if the end of the segment is the end of thebuffer Parameters: firstTime - If false and the search string matched at thestart offset with length zero, automaticallyfind next match Parameters: reverse - Unsupported for PatternSearchMatcher. Shouldalways be "false". A SearchMatcher.Match object. since: jEdit 4.3pre5 |
Fields inherited from org.gjt.sp.jedit.search.SearchMatcher | protected Match returnValue(Code)(Java Doc)
|
Methods inherited from org.gjt.sp.jedit.search.SearchMatcher | public boolean isMatchingEOL()(Code)(Java Doc) abstract public Match nextMatch(CharSequence text, boolean start, boolean end, boolean firstTime, boolean reverse)(Code)(Java Doc)
|
|
|