Represents a character interval that keeps a reference.
Description
The CharReferenceInterval allows you to represent a character interval that keeps a reference.
Important points
- This class is internal and used by CharReferenceMap.
Constructors
Creates a new instance of the CharReferenceInterval class.
publicCharReferenceInterval(char start, char end, T reference)
- start: char - start of the interval
- end: char - end of the interval
- reference: T - reference
Properties
End
End of the interval
publicchar End { get; }
Reference
Reference
publicT Reference { get; }
Start
Start of the interval
publicchar Start { get; }
Instance methods
InRange
Determines if a symbol is within a range.
publicbool InRange(char symbol)
- symbol: char - symbol
- returns: bool - true if it is within the range and false otherwise.