Method

GgitConfigmatch

Declaration [src]

gchar*
ggit_config_match (
  GgitConfig* config,
  GRegex* regex,
  GMatchInfo** match_info,
  GError** error
)

Description [src]

Matches a configuration against a regular expression. match_info will contain the match information if the return value is not NULL, otherwise error will be set.

Parameters

regex GRegex
 

A GRegex.

 The data is owned by the caller of the function.
match_info GMatchInfo
 

A GMatchInfo.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gchar*
 

The value of that matched configuration.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.
 The value is a NUL terminated UTF-8 string.