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

Implements IStringMatcher interface in such way that string matches the pattern only if it is exactly the same as the pattern.
Inheritance: IStringMatcher
Show file Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
ExactMatcher ( )

Default constructor.

ExactMatcher ( string pattern )

Constructor which initializes search pattern.

IsMatch ( string value ) : bool

Tests whether value equals stored pattern or not.

Method Details

ExactMatcher() public method

Default constructor.
public ExactMatcher ( )

ExactMatcher() public method

Constructor which initializes search pattern.
public ExactMatcher ( string pattern )
pattern string Pattern against which input strings are matched.

IsMatch() public method

Tests whether value equals stored pattern or not.
public IsMatch ( string value ) : bool
value string String which is compared with stored pattern. Value null is treated as empty string.
return bool