PerCederberg.Grammatica.Runtime
Class SystemRE
System.Object
|
+--REHandler
|
+--SystemRE
in Tokenizer.cs
- internal class SystemRE
- extends REHandler
The .NET system regular expression handler.
|
Constructor Summary |
SystemRE( string regex, bool ignoreCase )
Creates a new . |
|
Method Summary |
override int |
Match( ReaderBuffer buffer )
Checks if the start of the input stream matches this
regular expression. |
SystemRE
public SystemRE( string regex, bool ignoreCase );
- Creates a new .NET system regular expression handler.
- Parameters:
regex - the regular expression text
ignoreCase - the character case ignore flag
- Throws:
Exception - if the regular expression contained
invalid syntax
Match
public override int Match( ReaderBuffer buffer );
- Checks if the start of the input stream matches this
regular expression.
- Parameters:
buffer - the input buffer to check
- Returns:
- the longest match found, or
zero (0) if no match was found
- Throws:
IOException - if an I/O error occurred