Function

GLibpattern_match_string

Declaration [src]

gboolean
g_pattern_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_match() instead while supplying the reversed string.

Deprecated since:2.70

Use g_pattern_spec_match_string() instead.

Parameters

pspec GPatternSpec
 

A GPatternSpec.

 The data is owned by the caller of the function.
string const gchar*
 

The UTF-8 encoded string to match.

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

Return value

Returns: gboolean
 

TRUE if string matches pspec.