[][src]Type Definition irssi_sys::GRegexEvalCallback

type GRegexEvalCallback = Option<unsafe extern "C" fn(match_info: *const GMatchInfo, result: *mut GString, user_data: gpointer) -> gboolean>;

GRegexEvalCallback: @match_info: the #GMatchInfo generated by the match. Use g_match_info_get_regex() and g_match_info_get_string() if you need the #GRegex or the matched string. @result: a #GString containing the new string @user_data: user data passed to g_regex_replace_eval()

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.

Returns: %FALSE to continue the replacement process, %TRUE to stop it

Since: 2.14