Function

Purplevalidate

Declaration [src]

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

Description [src]

Checks, if a string is valid.

Parameters

protocol PurpleProtocol
 

The protocol the string belongs to.

 The data is owned by the caller of the function.
str 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

Returns: gboolean
 

TRUE, if string is valid, otherwise FALSE.