### Method

# GLib PatternSpec match_string

since: 2.70

#### Declaration [src]

    gboolean
    g_pattern_spec_match_string (
      GPatternSpec* pspec,
      const gchar* string
    )

#### Description [src]

Matches a string against a compiled pattern.

If the string is to be matched against more than one pattern, consider using `g_pattern_spec_match()` instead while supplying the reversed string.

Available since: 2.70

#### Parameters

`string`

  Type: `const gchar*`

  The UTF-8 encoded string to match.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `gboolean`

`TRUE` if `string` matches `pspec`.