Function
GLibRegexEvalCallback
since: 2.14
Declaration
gboolean
(* GRegexEvalCallback) (
const GMatchInfo* match_info,
GString* result,
gpointer user_data
)
Description [src]
A callback 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.
Use g_match_info_get_regex() and g_match_info_get_string()
if you need the regex object itself, or the matched string.
Available since: 2.14
Parameters
match_info-
Type:
GMatchInfoThe
GMatchInfogenerated by the match.The data is owned by the caller of the function. result-
Type:
GStringThe new string.
The data is owned by the caller of the function. user_data-
Type:
gpointerUser data passed to
g_regex_replace_eval().The argument can be NULL.The data is owned by the caller of the function.