C# Класс Pchp.Library.PerlRegex.Match

Represents the results from a single regular expression match.
Наследование: Group
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddMatch void
BalanceMatch void
Dump void
GroupToStringImpl string
IsMatched bool
LastGroupToStringImpl string
Match System
MatchIndex int
MatchLength int
RemoveMatch void
Reset void
Tidy void

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

Метод Описание
NextMatch ( ) : Match

Returns a new Match with the results for the next match, starting at the position at which the last match ended (at the character beyond the last matched character).

Result ( string replacement ) : string

Returns the expansion of the passed replacement pattern. For example, if the replacement pattern is ?$1$2?, Result returns the concatenation of Group(1).ToString() and Group(2).ToString().

Synchronized ( Match inner ) : Match

Returns a Match instance equivalent to the one supplied that is safe to share between multiple threads.

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

Метод Описание
AddMatch ( int cap, int start, int len ) : void
BalanceMatch ( int cap ) : void
Dump ( ) : void
GroupToStringImpl ( int groupnum ) : string
IsMatched ( int cap ) : bool
LastGroupToStringImpl ( ) : string
Match ( Regex regex, int capcount, string text, int begpos, int len, int startpos ) : System
MatchIndex ( int cap ) : int
MatchLength ( int cap ) : int
RemoveMatch ( int cap ) : void
Reset ( Regex regex, string text, int textbeg, int textend, int textstart ) : void
Tidy ( int textpos ) : void

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

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

Returns a new Match with the results for the next match, starting at the position at which the last match ended (at the character beyond the last matched character).
public NextMatch ( ) : Match
Результат Match

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

Returns the expansion of the passed replacement pattern. For example, if the replacement pattern is ?$1$2?, Result returns the concatenation of Group(1).ToString() and Group(2).ToString().
public Result ( string replacement ) : string
replacement string
Результат string

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

Returns a Match instance equivalent to the one supplied that is safe to share between multiple threads.
public static Synchronized ( Match inner ) : Match
inner Match
Результат Match