Application.idIsValid

Checks if @application_id is a valid application identifier.

A valid ID is required for calls to g_application_new() and g_application_set_application_id().

For convenience, the restrictions on application identifiers are reproduced here:

- 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.

class Application
static
bool
idIsValid
()

Parameters

applicationId string

a potential application identifier

Return: %TRUE if @application_id is valid

Meta