RegexEvalCallback


Description:

[ Version ( since = "2.14" ) ]
public delegate bool RegexEvalCallback (MatchInfo match_info, StringBuilder result)

Specifies the type of the function passed to replace_eval.

It is called for each occurrence of the pattern in the string passed to replace_eval, and it should append the replacement to result.

Parameters:

match_info

the MatchInfo generated by the match. Use get_regex and get_string if you need the Regex or the matched string.

result

a StringBuilder containing the new string

user_data

user data passed to replace_eval

Returns:

false to continue the replacement process, true to stop it


Namespace: GLib
Package: glib-2.0