Share via


Extensions Class

Definition

Extension methods for LG.

public static class Extensions
type Extensions = class
Public Module Extensions
Inheritance
Extensions

Fields

EscapeRegex

Regular expression for matching escaped characters.

Methods

Escape(String)

Escape \ from text.

GetPrefixErrorMessage(LGTemplateParser+NormalTemplateStringContext)

Get prefix error message from normal template sting context.

IsPureExpression(LGTemplateParser+KeyValueStructureValueContext)

If a value is pure Expression.

NormalizePath(String)

Normalize authored path to OS path.

TrimExpression(String)

trim expression. ${abc} => abc, ${a == {}} => a == {}.

Applies to