Method

PurpleRequestFieldalphanumeric_validator

since: 3.0

Declaration [src]

gboolean
purple_request_field_alphanumeric_validator (
  PurpleRequestField* field,
  char** errmsg,
  gpointer allowed_characters
)

Description [src]

Validates a field which should contain alphanumeric content.

See purple_request_field_set_validator().

Available since: 3.0

Parameters

errmsg

Type: char**

Destination for error message.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
allowed_characters

Type: gpointer

Allowed character list (NULL-terminated string).

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE, if field contains only alphanumeric characters.