Method | Description | |
---|---|---|
FullPatternMatch ( string pattern, string str, char escapeChar ) : bool |
Matches a pattern against a string and returns true if it matches or false otherwise. This matches patterns that do not necessarily start with a wild card unlike the PatternMatch method. |
|
IsWildCard ( char ch ) : bool |
Returns true if the given character is a wild card (unknown).
|
|
PatternMatch ( string pattern, string expression, char escapeChar ) : bool |
This is the pattern match recurrsive method. It recurses on each wildcard expression in the pattern which makes for slightly better efficiency than a character recurse algorithm. However, patterns such as Note That Note It requires that a wild card character is the first character in the expression. Issue Pattern optimiser, we should optimize wild cards of type Hacking Issue Badly formed wild cards may result in hogging of server side resources. |
public static FullPatternMatch ( string pattern, string str, char escapeChar ) : bool | ||
pattern | string | |
str | string | |
escapeChar | char | |
return | bool |
public static PatternMatch ( string pattern, string expression, char escapeChar ) : bool | ||
pattern | string | |
expression | string | |
escapeChar | char | |
return | bool |