Function

Purpleutf8_has_word

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.

Parameters

haystack 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 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

Returns: gboolean
 

TRUE if haystack has the word, otherwise FALSE.