Function

GLib-2.0GLibpattern_match_simple

  • 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.PatternSpec.new and call GLib.PatternSpec.match_string repeatedly.

    Parameters

    • pattern: string

      the UTF-8 encoded pattern

    • string: string

      the UTF-8 encoded string to match

    Returns boolean

    true if string matches pspec