| 3510 { |
3510 { |
| 3511 return g_str_has_prefix(s, p); |
3511 return g_str_has_prefix(s, p); |
| 3512 } |
3512 } |
| 3513 |
3513 |
| 3514 gboolean |
3514 gboolean |
| |
3515 purple_str_has_caseprefix(const gchar *s, const gchar *p) |
| |
3516 { |
| |
3517 g_return_val_if_fail(s, FALSE); |
| |
3518 g_return_val_if_fail(p, FALSE); |
| |
3519 |
| |
3520 return (g_ascii_strncasecmp(s, p, strlen(p)) == 0); |
| |
3521 } |
| |
3522 |
| |
3523 gboolean |
| 3515 purple_str_has_suffix(const char *s, const char *x) |
3524 purple_str_has_suffix(const char *s, const char *x) |
| 3516 { |
3525 { |
| 3517 return g_str_has_suffix(s, x); |
3526 return g_str_has_suffix(s, x); |
| 3518 } |
3527 } |
| 3519 |
3528 |