Skip to content

Class: WildcardMatch ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public static class WildcardMatch

Methods ​

EqualsWildcard(string, string, bool) ​

csharp
public static bool EqualsWildcard(this string text, string wildcardString, bool ignoreCase)

Parameters:

NameTypeDescription
textstring
wildcardStringstring
ignoreCasebool

Returns: 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.

csharp
public static bool EqualsWildcard(this string text, string wildcardString)

Parameters:

NameTypeDescription
textstringThe string to test.
wildcardStringstringThe wildcard pattern to match against.

Returns: bool: True if the string matches the pattern, otherwise false.

Maintained by the Shape of Dreams Modding Community