Class EscapedRegexRule
Denotes a class for a rule that applies escaping
public abstract class EscapedRegexRule : RegexRule
- Inheritance
-
EscapedRegexRule
- Derived
- Inherited Members
Methods
CreateRuleApplication(string, ParsePosition, ParsePositionDelta, ParseContext)
Creates a new rule application
public override RuleApplication CreateRuleApplication(string matched, ParsePosition position, ParsePositionDelta examined, ParseContext context)
Parameters
matchedstringthe matched string content
positionParsePositionthe position where the rule matched
examinedParsePositionDeltathe examined length of text
contextParseContextthe parse context
Returns
- RuleApplication
a rule application
Escape(string)
Escapes the given string
public abstract string Escape(string value)
Parameters
valuestringthe unescaped string
Returns
- string
the escaped string
Synthesize(object, ParsePosition, ParseContext)
Synthesizes a rule application for the given semantic element
public override RuleApplication Synthesize(object semanticElement, ParsePosition position, ParseContext context)
Parameters
semanticElementobjectpositionParsePositionthe parse position at which the element should be synthesized
contextParseContextthe parse context
Returns
- RuleApplication
a rule application
Unescape(string)
Unescapes the given string
public abstract string Unescape(string value)
Parameters
valuestringthe escaped string
Returns
- string
the unescaped string