| java.lang.Object org.gjt.sp.jedit.search.SearchMatcher
All known Subclasses: org.gjt.sp.jedit.search.PatternSearchMatcher, org.gjt.sp.jedit.search.BoyerMooreSearchMatcher,
SearchMatcher | abstract public class SearchMatcher (Code) | | An abstract class for matching strings.
author: Slava Pestov version: $Id: SearchMatcher.java 6704 2006-08-19 23:17:01Z vanza $ |
Inner Class :public static class Match | |
Method Summary | |
public boolean | isMatchingEOL() Returns whether the matcher is matching the end of the line
character. | abstract public 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 beginning of thebuffer Parameters: end - True if the end of the segment is the end of the buffer Parameters: firstTime - If false and the search string matched at the startoffset with length zero, automatically find next match Parameters: reverse - If true, searching will be performed in a backwarddirection. |
returnValue | protected Match returnValue(Code) | | |
SearchMatcher | public SearchMatcher()(Code) | | |
isMatchingEOL | public boolean isMatchingEOL()(Code) | | Returns whether the matcher is matching the end of the line
character. This should be used to adjust the matched region
size when matching the end-of-line character, since it's not
included in the matched region returned by the
java.util.regex.Pattern matcher.
Whether the end of the match region will be the EOLcharacter. since: jEdit 4.3pre7 |
nextMatch | abstract public 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 beginning of thebuffer Parameters: end - True if the end of the segment is the end of the buffer Parameters: firstTime - If false and the search string matched at the startoffset with length zero, automatically find next match Parameters: reverse - If true, searching will be performed in a backwarddirection. an array where the first element is the start offsetof the match, and the second element is the end offset ofthe match since: jEdit 4.3pre5 |
|
|