Schnittstelle Regex.OnRegexEvalCallback

Umschließende Klasse:
Regex
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Regex.OnRegexEvalCallback
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    onRegexEvalCallback(CallbackHandler __self, MatchInfo match_info, GString result, Pointer user_data)
    Specifies the type of the function passed to g_regex_replace_eval().
  • Methodendetails

    • 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.
      Parameter:
      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()
      Gibt zurück:
      %FALSE to continue the replacement process, %TRUE to stop it