Function
GLibRegexEvalCallback
since: 2.14
Declaration
gboolean
(* GRegexEvalCallback) (
const GMatchInfo* match_info,
GString* result,
gpointer user_data
)
Description [src]
Specifies the type of the function passed to g_regex_replace_eval().
It is called for each occurrence of the pattern in the string passed
to g_regex_replace_eval(), and it should append the replacement to
result
.
Available since: 2.14
Parameters
match_info
-
Type:
GMatchInfo
The
GMatchInfo
generated by the match. Useg_match_info_get_regex()
andg_match_info_get_string()
if you need theGRegex
or the matched string.The data is owned by the caller of the function. result
-
Type:
GString
A
GString
containing the new string.The data is owned by the caller of the function. user_data
-
Type:
gpointer
User data passed to g_regex_replace_eval().
The argument can be NULL
.The data is owned by the caller of the function.