
| Current Path : /include/dovecot/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //include/dovecot/wildcard-match.h |
#ifndef WILDCARD_MATCH_H
#define WILDCARD_MATCH_H
/* Returns TRUE if mask matches data. mask can contain '*' and '?' wildcards. */
bool wildcard_match(const char *data, const char *mask);
/* Like wildcard_match(), but match ASCII characters case-insensitively. */
bool wildcard_match_icase(const char *data, const char *mask);
/* Returns TRUE if mask does *not* contain any '*' or '?' wildcards. */
static inline bool wildcard_is_literal(const char *mask)
{
return strpbrk(mask, "*?") == NULL;
}
#endif