C# Класс Pihrtsoft.Text.RegularExpressions.Linq.Substitution

Represents a base class for a substitution in the replacement pattern. This class is abstract.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Append Substitution
AppendTo void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Substitution ( ) : System

Initializes a new instance of the Substitution class.

Приватные методы

Метод Описание
Append ( Substitution substitution ) : Substitution
AppendTo ( StringBuilder builder ) : void

Описание методов

AfterMatch() публичный Метод

Appends a substitution pattern that substitutes all the text of the input string after the match.
public AfterMatch ( ) : Substitution
Результат Substitution

BeforeMatch() публичный Метод

Appends a substitution pattern that substitutes all the text of the input string before the match.
public BeforeMatch ( ) : Substitution
Результат Substitution

EntireInput() публичный Метод

Appends a substitution pattern that substitutes the entire input string.
public EntireInput ( ) : Substitution
Результат Substitution

EntireMatch() публичный Метод

Appends a substitution pattern that substitutes the entire match.
public EntireMatch ( ) : Substitution
Результат Substitution

Group() публичный Метод

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.
Результат Substitution

LastCapturedGroup() публичный Метод

Appends a substitution pattern that substitutes the last captured group.
public LastCapturedGroup ( ) : Substitution
Результат Substitution

NamedGroup() публичный Метод

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.
Результат Substitution

Substitution() защищенный Метод

Initializes a new instance of the Substitution class.
protected Substitution ( ) : System
Результат System

Text() публичный Метод

Appends a specified character to the substitution pattern.
public Text ( char value ) : Substitution
value char A Unicode character to append.
Результат Substitution

Text() публичный Метод

Appends a specified text to the substitution pattern.
public Text ( string value ) : Substitution
value string A text to append.
Результат Substitution

ToString() публичный Метод

Converts the value of this instance to a string.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Concatenate two elements into a new Substitution.
or is null.
public static operator ( ) : Substitution
Результат Substitution