RegexEvalCallback


Description:

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

A callback passed to [method@GLib.

Regex.replace_eval].

It is called for each occurrence of the pattern in the string passed to [method@GLib.Regex.replace_eval], and it should append the replacement to result.

Use [method@GLib.MatchInfo.get_regex] and [method@GLib.MatchInfo.get_string] if you need the regex object itself, or the matched string.

Parameters:

match_info

the [struct@GLib.MatchInfo] generated by the match

result

the new string

user_data

user data passed to [method@GLib.Regex.replace_eval]

Returns:

false to continue the replacement process; true to stop it


Namespace: GLib
Package: glib-2.0