Package: gio

Function g-action-name-is-valid

Lambda List

g-action-name-is-valid (name)

Arguments

name -- a string with an action name

Return Value

True if the name argument is a valid action name.

Details

Checks if the action name is valid. The action name is valid if it consists only of alphanumeric characters, plus '-' and '.'. The empty string is not a valid action name.

It is an error to call this function with a non UTF-8 action name.

Example

(g-action-name-is-valid "action") => T
(g-action-name-is-valid "win.action") => T
(g-action-name-is-valid "win-action") => T
(g-action-name-is-valid "win-action!") NIL
(g-action-name-is-valid "") => NIL    
 

See also

2021-12-10