|
Grammatica 1.3 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
System.Object
|
+--Matcher
in Matcher.csA regular expression string matcher. This class handles the matching of a specific string with a specific regular expression. It contains state information about the matching process, as for example the position of the latest match, and a number of flags that were set. This class is not thread-safe.
Constructor Summary | |
internal Matcher( Element e, string str )
Creates a new matcher with the specified element. |
Method Summary | |
int |
End()
Returns the end position of the latest match. |
bool |
HasReadEndOfString()
Checks if the end of the string was encountered during the last match attempt. |
int |
Length()
Returns the length of the latest match. |
bool |
MatchFrom( int pos )
Attempts to find a match starting at the specified position in the string. |
bool |
MatchFromBeginning()
Attempts to find a match starting at the beginning of the string. |
void |
Reset()
Resets the information about the last match. |
internal void |
SetReadEndOfString()
Sets the end of string encountered flag. |
int |
Start()
Returns the start position of the latest match. |
override string |
ToString()
Returns the latest matched string. |
Constructor Detail |
internal Matcher( Element e, string str );
e
- the base regular expression element
str
- the string to work withMethod Detail |
public int End();
public bool HasReadEndOfString();
public int Length();
public bool MatchFrom( int pos );
pos
- the starting position of the matchpublic bool MatchFromBeginning();
public void Reset();
internal void SetReadEndOfString();
public int Start();
public override string ToString();
|
Grammatica 1.3 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |