Package: gio

Function gio:application-id-is-valid

Lambda List

gio:application-id-is-valid (id)

Arguments

id -- a string for 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.

Examples

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

See also

2025-2-3