Function

Purplevalidate

since: 3.0

Declaration [src]

gboolean
purple_validate (
  PurpleProtocol* protocol,
  const char* str
)

Description [src]

Checks, if a string is valid.

Available since: 3.0

Parameters

protocol

Type: PurpleProtocol

The protocol the string belongs to.

The data is owned by the caller of the function.
str

Type: const char*

The string to validate.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE, if string is valid, otherwise FALSE.