mirror of
https://github.com/labwc/labwc.git
synced 2025-11-12 13:30:11 -05:00
Add common/match.c with match_glob() from theme.c
...and make it fully case-insensitive in preparation for window-rules.
This commit is contained in:
parent
e1725e17b2
commit
71f5ac8323
4 changed files with 66 additions and 48 deletions
14
include/common/match.h
Normal file
14
include/common/match.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue