Class WildcardMatch
Inheritance
object
WildcardMatch
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public static class WildcardMatch
Methods
EqualsWildcard(string, string, bool)
Declaration
public static bool EqualsWildcard(this string text, string wildcardString, bool ignoreCase)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | |
| string | wildcardString | |
| bool | ignoreCase |
Returns
| Type | Description |
|---|---|
| bool |
EqualsWildcard(string, string)
Compares a string to a wildcard pattern. '?' matches any single character. '*' matches any sequence of zero or more characters. This implementation is case-sensitive.
Declaration
public static bool EqualsWildcard(this string text, string wildcardString)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The string to test. |
| string | wildcardString | The wildcard pattern to match against. |
Returns
| Type | Description |
|---|---|
| bool | True if the string matches the pattern, otherwise false. |