C# Class Gammtek.Conduit.Text.StringMatching.RegexMatcher

Implements string matching algorithm which tries to match regular expression pattern with input strings.
Inheritance: IStringMatcher
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Méthode Description
IsMatch ( string value ) : bool

Tests whether valeu can be matched with Pattern.

RegexMatcher ( ) : System

Default constructor.

RegexMatcher ( string pattern ) : System

Constructor which initializes regular expression pattern against which input strings are matched.

Private Methods

Méthode Description
TestPattern ( string pattern, bool throwException ) : bool

Tests whether pattern is a valid regular expression pattern.

Method Details

IsMatch() public méthode

Tests whether valeu can be matched with Pattern.
is null or empty.
public IsMatch ( string value ) : bool
value string /// String which is tested using the regular expression pattern /// stored in the property. ///
Résultat bool

RegexMatcher() public méthode

Default constructor.
public RegexMatcher ( ) : System
Résultat System

RegexMatcher() public méthode

Constructor which initializes regular expression pattern against which input strings are matched.
is null. is not a valid regular expression pattern.
public RegexMatcher ( string pattern ) : System
pattern string Regular expression pattern used to match input strings.
Résultat System