C# Class Pihrtsoft.Text.RegularExpressions.Linq.Substitution

Represents a base class for a substitution in the replacement pattern. This class is abstract.
Show file Open project: JosefPihrt/LinqToRegex Class Usage Examples

Private Properties

Property Type Description
Append Substitution
AppendTo void

Public Methods

Method Description
AfterMatch ( ) : Substitution

Appends a substitution pattern that substitutes all the text of the input string after the match.

BeforeMatch ( ) : Substitution

Appends a substitution pattern that substitutes all the text of the input string before the match.

EntireInput ( ) : Substitution

Appends a substitution pattern that substitutes the entire input string.

EntireMatch ( ) : Substitution

Appends a substitution pattern that substitutes the entire match.

Group ( int groupNumber ) : Substitution

Appends a substitution pattern that substitutes the last substring matched by the numbered or named group.

LastCapturedGroup ( ) : Substitution

Appends a substitution pattern that substitutes the last captured group.

NamedGroup ( string groupName ) : Substitution

Appends a substitution pattern that substitutes the last substring matched by the named group.

Text ( char value ) : Substitution

Appends a specified character to the substitution pattern.

Text ( string value ) : Substitution

Appends a specified text to the substitution pattern.

ToString ( ) : string

Converts the value of this instance to a string.

operator ( ) : Substitution

Concatenate two elements into a new Substitution.

Protected Methods

Method Description
Substitution ( ) : System

Initializes a new instance of the Substitution class.

Private Methods

Method Description
Append ( Substitution substitution ) : Substitution
AppendTo ( StringBuilder builder ) : void

Method Details

AfterMatch() public method

Appends a substitution pattern that substitutes all the text of the input string after the match.
public AfterMatch ( ) : Substitution
return Substitution

BeforeMatch() public method

Appends a substitution pattern that substitutes all the text of the input string before the match.
public BeforeMatch ( ) : Substitution
return Substitution

EntireInput() public method

Appends a substitution pattern that substitutes the entire input string.
public EntireInput ( ) : Substitution
return Substitution

EntireMatch() public method

Appends a substitution pattern that substitutes the entire match.
public EntireMatch ( ) : Substitution
return Substitution

Group() public method

Appends a substitution pattern that substitutes the last substring matched by the numbered or named group.
is less than zero.
public Group ( int groupNumber ) : Substitution
groupNumber int A number of the group.
return Substitution

LastCapturedGroup() public method

Appends a substitution pattern that substitutes the last captured group.
public LastCapturedGroup ( ) : Substitution
return Substitution

NamedGroup() public method

Appends a substitution pattern that substitutes the last substring matched by the named group.
is null. is not a valid regex group name.
public NamedGroup ( string groupName ) : Substitution
groupName string Valid regex group name.
return Substitution

Substitution() protected method

Initializes a new instance of the Substitution class.
protected Substitution ( ) : System
return System

Text() public method

Appends a specified character to the substitution pattern.
public Text ( char value ) : Substitution
value char A Unicode character to append.
return Substitution

Text() public method

Appends a specified text to the substitution pattern.
public Text ( string value ) : Substitution
value string A text to append.
return Substitution

ToString() public method

Converts the value of this instance to a string.
public ToString ( ) : string
return string

operator() public static method

Concatenate two elements into a new Substitution.
or is null.
public static operator ( ) : Substitution
return Substitution