From: Zhou Qiankang Date: Wed, 12 Feb 2025 03:30:46 +0000 (+0800) Subject: glib-2.0: Add Regex.escape_nul in GLib X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0b53cc39309cfc7e7602cf24e26d1c23f1943846;p=thirdparty%2Fvala.git 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 --- 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;