]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: Improve string.replace()
authorwszqkzqk <wszqkzqk@qq.com>
Wed, 18 Jan 2023 06:25:50 +0000 (14:25 +0800)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 30 Jan 2023 09:31:12 +0000 (10:31 +0100)
commit79b6b149219d54fa8b7bf2c3ad367aac4d487cd8
treef461a4ba518609cdb9ca79210ae5abf2488d33bb
parenteb38c29d8f163792be026f46e46c0f86f719d14e
glib-2.0: Improve string.replace()

Use string.split() and string.joinv() which is way faster than GLib.Regex()

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1402
tests/basic-types/strings.c-expected
vapi/glib-2.0.vapi