C# Class Pchp.Library.PerlRegex.Match

Represents the results from a single regular expression match.
Inheritance: Group
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Private Properties

Свойство Type Description
AddMatch void
BalanceMatch void
Dump void
GroupToStringImpl string
IsMatched bool
LastGroupToStringImpl string
Match System
MatchIndex int
MatchLength int
RemoveMatch void
Reset void
Tidy void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

NextMatch() public méthode

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
Résultat Match

Result() public méthode

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
Résultat string

Synchronized() public static méthode

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
Résultat Match