GLib.RegexEvalCallback
function onRegexEvalCallback(match_info: GLib.MatchInfo, result: GLib.String): Boolean { }
Specifies the type of the function passed to GLib.Regex.replace_eval. It is called for each occurrence of the pattern in the string passed to GLib.Regex.replace_eval, and it should append the replacement to result.
Since 2.14
- match_info
the GLib.MatchInfo generated by the match. Use GLib.MatchInfo.prototype.get_regex and GLib.MatchInfo.prototype.get_string if you need the GLib.Regex or the matched string.
- result
a GLib.String containing the new string
- Returns
false to continue the replacement process, true to stop it