Table of Contents

Class EscapedConvertRule<T>

Namespace
NMF.AnyText.Model
Assembly
NMF.AnyText.Core.dll

Denotes a class for a rule that applies escaping to a conversion

public abstract class EscapedConvertRule<T> : ConvertRule<T>

Type Parameters

T
Inheritance
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 string

the matched string content

position ParsePosition

the position where the rule matched

examined ParsePositionDelta

the examined length of text

context ParseContext

the parse context

Returns

RuleApplication

a rule application

Escape(string)

Escapes the given string

public abstract string Escape(string value)

Parameters

value string

the 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 object
position ParsePosition

the parse position at which the element should be synthesized

context ParseContext

the parse context

Returns

RuleApplication

a rule application

Unescape(string)

Unescapes the given string

public abstract string Unescape(string value)

Parameters

value string

the escaped string

Returns

string

the unescaped string