Class EscapedConvertRule<T>
Denotes a class for a rule that applies escaping to a conversion
public abstract class EscapedConvertRule<T> : ConvertRule<T>
Type Parameters
T
- Inheritance
-
ConvertRule<T>EscapedConvertRule<T>
- 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
matched
stringthe matched string content
position
ParsePositionthe position where the rule matched
examined
ParsePositionDeltathe examined length of text
context
ParseContextthe parse context
Returns
- RuleApplication
a rule application
Escape(string)
Escapes the given string
public abstract string Escape(string value)
Parameters
value
stringthe 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
semanticElement
objectposition
ParsePositionthe parse position at which the element should be synthesized
context
ParseContextthe parse context
Returns
- RuleApplication
a rule application
Unescape(string)
Unescapes the given string
public abstract string Unescape(string value)
Parameters
value
stringthe escaped string
Returns
- string
the unescaped string