Mercurial > pidgin.yaz
comparison src/util.c @ 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 | 3fe6b56a39cc |
children | f9c5480ad0ce |
comparison
equal
deleted
inserted
replaced
11551:78aad676fdb2 | 11552:11d30825c1bb |
---|---|
3371 g_free(b_norm); | 3371 g_free(b_norm); |
3372 | 3372 |
3373 return ret; | 3373 return ret; |
3374 } | 3374 } |
3375 | 3375 |
3376 /* previously conversation::find_nick() */ | |
3377 gboolean | |
3378 gaim_utf8_has_word(const char *haystack, const char *needle) | |
3379 { | |
3380 char *hay, *pin, *p; | |
3381 int n; | |
3382 gboolean ret = FALSE; | |
3383 | |
3384 hay = g_utf8_strdown(haystack, -1); | |
3385 | |
3386 pin = g_utf8_strdown(needle, -1); | |
3387 n = strlen(pin); | |
3388 | |
3389 if ((p = strstr(hay, pin)) != NULL) { | |
3390 if ((p == hay || !isalnum(*(p - 1))) && !isalnum(*(p + n))) { | |
3391 ret = TRUE; | |
3392 } | |
3393 } | |
3394 | |
3395 g_free(pin); | |
3396 g_free(hay); | |
3397 | |
3398 return ret; | |
3399 } | |
3400 | |
3376 gboolean gaim_message_meify(char *message, size_t len) | 3401 gboolean gaim_message_meify(char *message, size_t len) |
3377 { | 3402 { |
3378 char *c; | 3403 char *c; |
3379 gboolean inside_html = FALSE; | 3404 gboolean inside_html = FALSE; |
3380 | 3405 |