labwc/include/common/match.h
Johan Malm 71f5ac8323 Add common/match.c with match_glob() from theme.c
...and make it fully case-insensitive in preparation for window-rules.
2023-05-04 22:09:55 +01:00

14 lines
384 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LABWC_MATCH_H
#define __LABWC_MATCH_H
#include <glib.h>
/**
* match_glob() - Pattern match using '*' wildcards and '?' jokers.
* @pattern: Pattern to match against.
* @string: String to search.
* Note: Comparison case-insensitive.
*/
bool match_glob(const gchar *pattern, const gchar *string);
#endif /* __LABWC_MATCH_H */