Function

Purplevalidate

Declaration [src]

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

Description [src]

Checks, if a string is valid.

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.