Method

PurplePersonmatches

since: 3.0

Declaration [src]

gboolean
purple_person_matches (
  PurplePerson* person,
  const char* needle
)

Description [src]

Checks if the alias matches needle. This also checks needle against purple_contact_info_matches() for each PurpleContactInfo that person is tracking.

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

Available since: 3.0

Parameters

needle

Type: const char*

The string to match on.

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 person matches needle in any way.