Type Alias panda_sys::GRegexEvalCallback

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

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

Aliased Type§

enum GRegexEvalCallback {
    None,
    Some(unsafe extern "C" fn(_: *const _GMatchInfo, _: *mut _GString, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const _GMatchInfo, _: *mut _GString, _: *mut c_void) -> i32)

Some value of type T.