Table of Contents

Class RuleFormatter

Namespace
NMF.AnyText.PrettyPrinting
Assembly
NMF.AnyText.Core.dll

Helper class to format rules

public static class RuleFormatter
Inheritance
RuleFormatter
Inherited Members

Methods

OneOrMore(FormattedRule, params FormattingInstruction[])

Formats the given rule one or more times

public static FormattedRule OneOrMore(FormattedRule rule, params FormattingInstruction[] instructions)

Parameters

rule FormattedRule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating one or more occurences of the provided rule

OneOrMore(Rule, params FormattingInstruction[])

Formats the given rule one or more times

public static FormattedRule OneOrMore(Rule rule, params FormattingInstruction[] instructions)

Parameters

rule Rule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating one or more occurences of the provided rule

ZeroOrMore(FormattedRule, params FormattingInstruction[])

Formats the given rule zero or more times

public static FormattedRule ZeroOrMore(FormattedRule rule, params FormattingInstruction[] instructions)

Parameters

rule FormattedRule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating zero or more occurences of the provided rule

ZeroOrMore(Rule, params FormattingInstruction[])

Formats the given rule zero or more times

public static FormattedRule ZeroOrMore(Rule rule, params FormattingInstruction[] instructions)

Parameters

rule Rule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating zero or more occurences of the provided rule

ZeroOrOne(FormattedRule, params FormattingInstruction[])

Formats the given rule once or not at all

public static FormattedRule ZeroOrOne(FormattedRule rule, params FormattingInstruction[] instructions)

Parameters

rule FormattedRule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating once or not at all occurences of the provided rule

ZeroOrOne(Rule, params FormattingInstruction[])

Formats the given rule once or not at all

public static FormattedRule ZeroOrOne(Rule rule, params FormattingInstruction[] instructions)

Parameters

rule Rule

the base rule

instructions FormattingInstruction[]

an array of formatting instructions

Returns

FormattedRule

an instance of FormattedRule indicating once or not at all occurences of the provided rule