Package: glib

Function glib:key-file-value

Lambda List

glib:key-file-value (keyfile group key)

Syntax

(g:key-file-value keyfile group key) => value
(setf (g:key-file-value keyfile group key) value)

Arguments

keyfile -- a g:key-file instance
group -- a string with the group name
key -- a string with a key
value -- a string with the value

Details

The g:key-file-value function returns the raw value associated with key under group. Use the g:key-file-string functon to retrieve an unescaped UTF-8 string. In the event the key or group name cannot be found, nil is returned.

The (setf g:key-file-value) function associates a new value with key under group. If key cannot be found then it is created. If group cannot be found then it is created. To set an UTF-8 string which may contain characters that need escaping (such as newlines or spaces), use the g:key-file-string function.
 

See also

2025-1-12