matchWildcard#
Fully qualified name: omni::str::matchWildcard
Defined in omni/str/Wildcard.h
- inline bool omni::str::matchWildcard(
- const char *str,
- const char *pattern,
Checks if a string matches a wildcard pattern.
- Parameters:
str – [in] The string to attempt to match to the pattern
pattern. This may not benullptr.pattern – [in] The wildcard pattern to match against. This may not be
nullptr. The wildcard pattern may contain ‘?’ to match exactly one character (any character), or ‘*’ to match zero or more characters.
- Returns:
trueif the stringstrmatches the pattern. Returnsfalseif the pattern does not match the pattern.