patternMatchSimple

fnbool patternMatchSimple(string pattern, string string_)

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 [glib.pattern_spec.PatternSpec.new_] and call [glib.global.patternMatchString] repeatedly.

Parameters

patternthe UTF-8 encoded pattern
string_the UTF-8 encoded string to match

Returns

true if string matches pspec