C# Class Qowaiv.Text.WildcardPattern

Inheritance: ISerializable
Afficher le fichier Open project: Corniel/Qowaiv Class Usage Examples

Private Properties

Свойство Type Description
Equals bool
IsMatch bool

Méthodes publiques

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

Méthodes protégées

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

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

Handles the actual matching.

Method Details

GetObjectData() protected méthode

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.
Résultat void

ISerializable() public méthode

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.
Résultat void

IsMatch() public méthode

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. ///
Résultat bool

IsMatch() public static méthode

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. ///
Résultat bool

IsMatch() public static méthode

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. ///
Résultat bool

WildcardPattern() protected méthode

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

WildcardPattern() protected méthode

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.
Résultat System

WildcardPattern() public méthode

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. ///
Résultat System

WildcardPattern() public méthode

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. ///
Résultat System