Method

PurpleContactInfomatches

since: 3.0

Declaration [src]

gboolean
purple_contact_info_matches (
  PurpleContactInfo* info,
  const char* needle
)

Description [src]

This will determine if the alias, display name, or username matches needle. The id is ignored because generally it is a UUID or hex string which will give very confusing results to end users.

If needle is NULL or empty string, TRUE will be returned.

Available since: 3.0

Parameters

needle

Type: const char*

The string to match.

The argument can be NULL.
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 needle matches any of the above properties, otherwise FALSE.