Method

PurpleTagscontains

since: 3.0

Declaration [src]

gboolean
purple_tags_contains (
  PurpleTags* tags,
  PurpleTags* needle
)

Description [src]

Checks if all of the tags in needle can be found in tags.

This checks tags, which means names and values, and not just tag names.

For example, if tags contains foo:bar, baz, and needle contains foo:bar, baz:1 this will return FALSE because baz:1 is not in tags.

Available since: 3.0

Parameters

needle

Type: PurpleTags

The tags to find.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if all tags in needle can be found in tags.