Creates a string Variant with the contents of string
.
string
must be valid utf8.
This function consumes string
. g_free will be called on string
when it is no longer required.
You must not modify or access string
in any other way after passing it to this function. It is even possible that
string
is immediately freed.
string |
a normal utf8 nul-terminated string |
a floating reference to a new string Variant instance |