C# Class Qowaiv.Text.WildcardPattern

Inheritance: ISerializable
Exibir arquivo Open project: Corniel/Qowaiv Class Usage Examples

Private Properties

Property Type Description
Equals bool
IsMatch bool

Public Methods

Method Description
ISerializable ( SerializationInfo info, StreamingContext context ) : void

Adds the underlying property of a wild card pattern to the serialization info.

IsMatch ( string input ) : bool

Indicates whether the wildcard pattern finds a match in the specified input string.

IsMatch ( string pattern, string input ) : bool

Indicates whether the specified wildcard pattern finds a match in the specified input string.

IsMatch ( string pattern, string input, WildcardPatternOptions options, System.StringComparison comparisonType ) : bool

Indicates whether the specified wildcard pattern finds a match in the specified input string.

WildcardPattern ( string pattern ) : System

Initializes a new instance of a wild card pattern.

WildcardPattern ( string pattern, WildcardPatternOptions options, System.StringComparison comparisonType ) : System

Initializes a new instance of a wild card pattern.

Protected Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Adds the underlying property of a wild card pattern to the serialization info.

this is used by ISerializable.GetObjectData() so that it can be changed by derived classes.

WildcardPattern ( ) : System

Initializes a new instance of a wild card pattern.

No public constructor without arguments.

WildcardPattern ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of a wild card pattern based on the serialization info.

Private Methods

Method Description
Equals ( char l, char r ) : bool
IsMatch ( string input, int p, int i ) : bool

Handles the actual matching.

Method Details

GetObjectData() protected method

Adds the underlying property of a wild card pattern to the serialization info.
this is used by ISerializable.GetObjectData() so that it can be changed by derived classes.
protected GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
return void

ISerializable() public method

Adds the underlying property of a wild card pattern to the serialization info.
public ISerializable ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
return void

IsMatch() public method

Indicates whether the wildcard pattern finds a match in the specified input string.
/// input is null. ///
public IsMatch ( string input ) : bool
input string /// The string to search for a match. ///
return bool

IsMatch() public static method

Indicates whether the specified wildcard pattern finds a match in the specified input string.
/// input is null. ///
public static IsMatch ( string pattern, string input ) : bool
pattern string /// The string that represents the wildcard pattern. ///
input string /// The string to search for a match. ///
return bool

IsMatch() public static method

Indicates whether the specified wildcard pattern finds a match in the specified input string.
/// input is null. ///
public static IsMatch ( string pattern, string input, WildcardPatternOptions options, System.StringComparison comparisonType ) : bool
pattern string /// The string that represents the wildcard pattern. ///
input string /// The string to search for a match. ///
options WildcardPatternOptions /// The wildcard pattern options. ///
comparisonType System.StringComparison /// The type of comparison. ///
return bool

WildcardPattern() protected method

Initializes a new instance of a wild card pattern.
No public constructor without arguments.
protected WildcardPattern ( ) : System
return System

WildcardPattern() protected method

Initializes a new instance of a wild card pattern based on the serialization info.
protected WildcardPattern ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
return System

WildcardPattern() public method

Initializes a new instance of a wild card pattern.
/// pattern is null. /// /// pattern is empty or invalid. ///
public WildcardPattern ( string pattern ) : System
pattern string /// The pattern to match on. ///
return System

WildcardPattern() public method

Initializes a new instance of a wild card pattern.
/// pattern is null. /// /// pattern is empty or invalid. ///
public WildcardPattern ( string pattern, WildcardPatternOptions options, System.StringComparison comparisonType ) : System
pattern string /// The pattern to match on. ///
options WildcardPatternOptions /// The wildcard pattern options. ///
comparisonType System.StringComparison /// The type of comparison. ///
return System