GLib.pattern_match_string
function pattern_match_string(pspec: GLib.PatternSpec, string: String): Boolean {
// Gjs wrapper for g_pattern_match_string()
}
Matches a string against a compiled pattern. If the string is to be matched against more than one pattern, consider using GLib.pattern_match instead while supplying the reversed string.
- pspec
- string
the UTF-8 encoded string to match
- Returns
true if string matches pspec