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-Tag: 0.56.18~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96407de3d9dc4a64585d2fed161be4ea6feac7e6;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 a8535e82c..10642c27a 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4660,6 +4660,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;