omni::str::isWildcardPattern

Defined in omni/str/Wildcard.h

inline bool omni::str::isWildcardPattern(const char *pattern)

Tests whether a string is potentially a wildcard pattern.

Parameters

pattern[in] The pattern to test as a wildcard. This will be considered a wildcard if it contains the special wildcard characters ‘*’ or ‘?’. This may not be nullptr.

Returns

true if the pattern is likely a wildcard string. Returns false if the pattern does not contain any of the special wildcard characters.