PerCederberg.Grammatica.Parser.RE
Class CharacterSetElement.Range
System.Object
|
+--CharacterSetElement.Range
in CharacterSetElement.cs
- class CharacterSetElement.Range
- extends System.Object
A character range class.
Constructor Summary |
Range( char min, char max )
Creates a new character range. |
Method Summary |
bool |
Inside( char c )
Checks if the specified character is inside the range. |
override string |
ToString()
Returns a string representation of this object. |
Range
public Range( char min, char max );
- Creates a new character range.
- Parameters:
min
- the minimum character value
max
- the maximum character value
Inside
public bool Inside( char c );
- Checks if the specified character is inside the range.
- Parameters:
c
- the character to check
- Returns:
- true if the character is in the range, or
false otherwise
ToString
public override string ToString();
- Returns a string representation of this object.
- Returns:
- a string representation of this object