Method

PurpleSavedPresencematches

unstable since: 3.0

Declaration [src]

gboolean
purple_saved_presence_matches (
  PurpleSavedPresence* presence,
  const char* needle
)

Description [src]

Checks if needle matches the PurpleSavedPresence:name, PurpleSavedPresence:message, or PurpleSavedPresence:emoji of presence.

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 method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if presence matches needle in any way, otherwise FALSE.