Package: glib

Function glib:variant-string

Lambda List

glib:variant-string (value)

Arguments

value -- a g:variant instance with a string

Return Value

The constant string, UTF-8 encoded.

Details

Returns the string value of value. This includes the g:variant-type types with the "s", "o", and "g" type strings. The string will always be UTF-8 encoded. It is an error to call this function with a value of any type other than those three. The return value remains valid as long as value exists. See the g:variant-new-string function for an example.
 

See also

2024-11-20