Function

Purpleutf8_has_word

since: 2.0

Declaration [src]

gboolean
purple_utf8_has_word (
  const char* haystack,
  const char* needle
)

Description [src]

Case insensitive search for a word in a string. The needle string must be contained in the haystack string and not be immediately preceded or immediately followed by another alphanumeric character.

Available since: 2.0

Parameters

haystack

Type: const char*

The string to search in.

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

Type: const char*

The substring to find.

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 haystack has the word, otherwise FALSE.