Prose.MaskPattern

References
public class Prose.MaskPattern
Defines a masking pattern.

Properties

CsBlockComment

#
Gets the masking pattern for C# block comments: /*...*/
public static Prose.MaskPattern CsBlockComment { get; }

CsCharLiteral

#
Gets the masking pattern for C# char literals.
public static Prose.MaskPattern CsCharLiteral { get; }

CsInterpolation

#
Gets the masking pattern for C# interpolated strings.
public static Prose.MaskPattern CsInterpolation { get; }

CsLineComment

#
Gets the masking pattern for C# line comments: //...
public static Prose.MaskPattern CsLineComment { get; }

CsStringLiteral

#
Gets the masking pattern for C# string literals.
public static Prose.MaskPattern CsStringLiteral { get; }

CsVerbatimLiteral

#
Gets the masking pattern for C# verbatim strings.
public static Prose.MaskPattern CsVerbatimLiteral { get; }

CurlyBraces

#
Gets the multi-line masking pattern for matched curly braces: {...}
public static Prose.MaskPattern CurlyBraces { get; }

Multiline

#
Gets whether the pattern is automatically terminated at the end of a new line.
public bool Multiline { get; }

Parentheses

#
Gets the multi-line masking pattern for matched parentheses: (...)
public static Prose.MaskPattern Parentheses { get; }

SquareBrackets

#
Gets the multi-line masking pattern for matched square brackets: [...]
public static Prose.MaskPattern SquareBrackets { get; }

TrackDepth

#
Gets whether the nesting of consecutive triggers is taken into account.
public bool TrackDepth { get; }

Trigger

#
String that triggers this pattern.
public string Trigger { get; }

Methods

AsMultiLine

#
Gets this pattern in a single line flavour.
public Prose.MaskPattern AsMultiLine()

AsSingleLine

#
Gets this pattern in a single line flavour.
public Prose.MaskPattern AsSingleLine()

EvaluateTerminus

#
Start tracking a string until this pattern terminates.
public int EvaluateTerminus(
indexer,
String to track.
index
Tracking start index.
)
Index of final character in string still part of this pattern.

EvaluateTrigger

#
Test whether a string matches the trigger of this pattern at the specified index.
public bool EvaluateTrigger(
indexer,
String indexer.
index
Potential index of trigger.
)
True if this pattern is triggered by the given index.

MultiLine

#
Create a multi-line pattern.
public static Prose.MaskPattern MultiLine(
trigger,
Trigger character.
terminal
Terminal character.
)

MultiLine

#
Create a multi-line pattern.
public static Prose.MaskPattern MultiLine(
trigger,
Trigger string.
terminal
Terminal string.
)

ReplaceTrigger

#
Replace the trigger string in this pattern.
public Prose.MaskPattern ReplaceTrigger(
trigger
)

SingleLine

#
Create a single-line pattern.
public static Prose.MaskPattern SingleLine(
trigger,
Trigger character.
terminal
Terminal character.
)

SingleLine

#
Create a single-line pattern.
public static Prose.MaskPattern SingleLine(
trigger
Trigger character.
)

SingleLine

#
Create a single-line pattern.
public static Prose.MaskPattern SingleLine(
trigger,
Trigger string.
terminal
Terminal string.
)

ToString

#
Gets a vague description of this pattern. Doesn't show escapes or skips.
public override string ToString()
Object.ToString

WithDepthTracking

#
Gets this pattern with trigger nesting enabled.
public Prose.MaskPattern WithDepthTracking()

WithEscape

#
Add an escape character to this pattern.
public Prose.MaskPattern WithEscape(
escape
)

WithoutDepthTracking

#
Gets this pattern with trigger nesting disabled.
public Prose.MaskPattern WithoutDepthTracking()

WithSkip

#
Add a skipping string to this pattern.
public Prose.MaskPattern WithSkip(
skip
)

WithTerminal

#
Add a terminal character to this pattern.
public Prose.MaskPattern WithTerminal(
terminal
)

WithTerminal

#
Add a terminal string to this pattern.
public Prose.MaskPattern WithTerminal(
terminal
)