C# Class Pchp.Library.PerlRegex.Match

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

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

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
return Match

Result() public method

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
return string

Synchronized() public static method

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
return Match