diff src/util.h @ 11552:11d30825c1bb

[gaim-migrate @ 13812] Source Forge patch 1273590 from Casey Harkins to move all sound playing events into gtksound.[ch] as well as a few other clean ups to make sure that all sounds are being played by the ui. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Sat, 17 Sep 2005 03:00:12 +0000
parents 9563b768e8e2
children f672349cfc1c
line wrap: on
line diff
--- a/src/util.h	Thu Sep 15 14:54:23 2005 +0000
+++ b/src/util.h	Sat Sep 17 03:00:12 2005 +0000
@@ -796,6 +796,18 @@
 int gaim_utf8_strcasecmp(const char *a, const char *b);
 
 /**
+ * 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 alpha-numeric character.
+ *
+ * @param haystack The string to search in.
+ * @param needle   The substring to find.
+ *
+ * @return TRUE if haystack has the word, otherwise FALSE
+ */
+gboolean gaim_utf8_has_word(const char *haystack, const char *needle);
+
+/**
  * Checks for messages starting with "/me "
  *
  * @param message The message to check