Package: gio

Function g-application-id-is-valid

Lambda List

g-application-id-is-valid (id)

Arguments

id -- a string with a potential application identifier

Return Value

True if id is a valid application ID.

Details

Checks if the id argument is a valid application identifier. A valid application ID is required for calls to the g-application-new and g-application-application-id functions.

The restrictions on application identifiers are:
  • Application identifiers must contain only the ASCII characters "[A-Z] [a-z] [0-9] _ - ." and must not begin with a digit.
  • Application identifiers must contain at least one '.' period character and thus at least three elements.
  • Application identifiers must not begin or end with a '.' period character.
  • Application identifiers must not contain consecutive '.' period characters.
  • Application identifiers must not exceed 255 characters.

Example

(g-application-id-is-valid "com.crategus.application") => T
(g-application-id-is-valid "application") => NIL    
 

See also

2021-9-9