Method

PurpleProtocolClientnormalize

deprecated: 3.0 since: 3.0

Declaration [src]

const gchar*
purple_protocol_client_normalize (
  PurpleProtocolClient* client,
  PurpleAccount* account,
  const gchar* who
)

Description [src]

Normalizes a who to the canonical form for the protocol. For example, many protocols only support all lower case, but might have display version where there are capital letters.

Available since: 3.0

Deprecated since: 3.0

This should use purple_protocol_client_normalize_name when it is created which will return an allocated value.

Parameters

account

Type: PurpleAccount

A PurpleAccount instance.

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

Type: const gchar*

The name to normalize.

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

Return value

Type: const gchar*

The normalized version of who for account.

The data is owned by the instance.
The value is a NUL terminated UTF-8 string.