Package: glib

Function g-variant-string

Lambda List

g-variant-string (value)

Arguments

value -- a string g-variant instance

Return Value

The constant string, UTF-8 encoded.

Details

Returns the string value of a g-variant instance with a string type. 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

*2021-10-31