Package: glib

Function glib:variant-new-string

Lambda List

glib:variant-new-string (value)

Arguments

string -- a normal UTF-8 string

Return Value

The floating reference to a g:variant instance.

Details

Creates a g:variant instance with a string value. The string must be valid UTF-8. Use the g:variant-string function to retrieve the string.

Examples

(g:variant-new-string "This is a string.")
=> #.(SB-SYS:INT-SAP #X55EF04FDCE00)
(g:variant-string *) => "This is a string."    
 

See also

2024-11-20