gstring: add g_string_new_take

Adds a GString constructor that takes over ownership of an existing,
dynamically allocated, string.
This commit is contained in:
Peter Eisenmann
2023-05-02 13:07:13 +02:00
committed by Philip Withnall
parent 03aa8513f8
commit afdab4f493
4 changed files with 72 additions and 0 deletions

View File

@@ -2625,6 +2625,7 @@ g_str_hash
<FILE>strings</FILE>
GString
g_string_new
g_string_new_take
g_string_new_len
g_string_sized_new
g_string_assign