Package ch.bailu.gtk.glib
Interface Regex.OnRegexEvalCallback
- Enclosing class:
- Regex
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onRegexEvalCallback
(CallbackHandler __self, MatchInfo match_info, GString result, Pointer user_data) Specifies the type of the function passed to g_regex_replace_eval().
-
Method Details
-
onRegexEvalCallback
boolean onRegexEvalCallback(CallbackHandler __self, @Nonnull MatchInfo match_info, @Nonnull GString result, @Nullable Pointer user_data) 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.- Parameters:
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 stringuser_data
- user data passed to g_regex_replace_eval()- Returns:
- %FALSE to continue the replacement process, %TRUE to stop it
-