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.

@FunctionalInterface public static interface Regex.OnRegexEvalCallback
  • 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 string
      user_data - user data passed to g_regex_replace_eval()
      Returns:
      %FALSE to continue the replacement process, %TRUE to stop it