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.

  • str[in] The string to attempt to match to the pattern pattern. This may not be nullptr.

  • 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.


true if the string str matches the pattern. Returns false if the pattern does not match the pattern.