diff options
Diffstat (limited to 'qbuffers.h')
-rw-r--r-- | qbuffers.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,6 +1,7 @@ #ifndef __QBUFFERS_H #define __QBUFFERS_H +#include <string.h> #include <bsd/sys/queue.h> #include <glib.h> @@ -121,4 +122,13 @@ private: State *done(const gchar *str); }; +/* + * Auxiliary functions + */ +static inline bool +is_glob_pattern(const gchar *str) +{ + return strchr(str, '*') || strchr(str, '?'); +} + #endif |