]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add Regex.escape_nul in GLib
authorZhou Qiankang <wszqkzqk@qq.com>
Wed, 12 Feb 2025 03:30:46 +0000 (11:30 +0800)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 2 Mar 2025 17:53:59 +0000 (18:53 +0100)
See: https://docs.gtk.org/glib/type_func.Regex.escape_nul.html

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
vapi/glib-2.0.vapi

index a8535e82c3496ceb3f8970b57f3fdfcf6d18efb4..10642c27a5d28d837a6b499eb1bba96334a2d2a2 100644 (file)
@@ -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;