31 str_match (
const gchar *
string,
const gchar *pattern,
int icase)
34 GPatternSpec *patt = NULL;
38 patt = g_pattern_spec_new (g_ascii_strdown (pattern, -1));
39 res = g_pattern_match_string (patt, g_ascii_strdown (
string, -1));
43 patt = g_pattern_spec_new (pattern);
44 res = g_pattern_match_string (patt,
string);
46 g_pattern_spec_free (patt);