[ CCode ( cname = "g_pattern_match_simple" ) ]
public static bool match_simple (string pattern, string str)
Matches a string against a pattern given as a string.
If this function is to be called in a loop, it’s more efficient to compile the pattern once with [ctor@GLib.PatternSpec.new] and call [ method@GLib.PatternSpec.match_string] repeatedly.
| pattern |
the UTF-8 encoded pattern |
| string |
the UTF-8 encoded string to match |
|
true if |