From 0b53cc39309cfc7e7602cf24e26d1c23f1943846 Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Wed, 12 Feb 2025 11:30:46 +0800 Subject: [PATCH] glib-2.0: Add Regex.escape_nul in GLib See: https://docs.gtk.org/glib/type_func.Regex.escape_nul.html Signed-off-by: Zhou Qiankang --- vapi/glib-2.0.vapi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index f6a94b9c4..41ff2feaa 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4650,6 +4650,8 @@ namespace GLib { public int get_capture_count (); public int get_string_number (string name); public static string escape_string (string str, int length = -1); + [Version (since = "2.30")] + public static string escape_nul (char[] str); public static bool match_simple (string pattern, string str, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0); public bool match (string str, RegexMatchFlags match_options = 0, out MatchInfo match_info = null); public bool match_full (string str, ssize_t string_len = -1, int start_position = 0, RegexMatchFlags match_options = 0, out MatchInfo match_info = null) throws RegexError; -- 2.47.2