Function

FwupdPlugincommon_fnmatch

Declaration [src]

gboolean
fu_common_fnmatch (
  const gchar* pattern,
  const gchar* str
)

Description [src]

Matches a string against a glob pattern.

Available since:1.3.5

Parameters

pattern const gchar*
 

A glob pattern, e.g. *foo*

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

A string to match against the pattern, e.g. bazfoobar

 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 the string matched.