Package: gobject

Function gobject:strdup-value-contents

Lambda List

gobject:strdup-value-contents (gvalue)

Arguments

gvalue -- a g:value instance which contents are to be described

Return Value

The string with the contents of gvalue.

Details

Return a string, which describes the contents of a g:value instance. The main purpose of this function is to describe g:value contents for debugging output, the way in which the contents are described may change between different GLib versions.

Examples

(g:with-values ((value1 "gboolean" nil)
                (value2 "gint" 199)
                (value3 "gdouble" 2.0)
                (value4 "gchararray" "string"))
  (values (g:strdup-value-contents value1)
          (g:strdup-value-contents value2)
          (g:strdup-value-contents value3)
          (g:strdup-value-contents value4)))
=> "FALSE"
=> "199"
=> "2.000000"
=> ""string""    
 

See also

2024-12-21