Mercurial > pidgin
diff src/util.h @ 7628:e293d0c42ccb
[gaim-migrate @ 8252]
"Hi, my name is Gaim ... and I'm addicted to glib 2.0."
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 25 Nov 2003 03:30:59 +0000 |
parents | 072feee65244 |
children | 0351ff7030d0 |
line wrap: on
line diff
--- a/src/util.h Tue Nov 25 02:23:25 2003 +0000 +++ b/src/util.h Tue Nov 25 03:30:59 2003 +0000 @@ -322,6 +322,28 @@ const char *gaim_normalize(const GaimAccount *account, const char *str); /** + * Compares two strings to see if the first contains the second as + * a proper prefix. + * + * @param s The string to check. + * @param p The prefix in question. + * + * @return TRUE if p is a prefix of s, otherwise FALSE. + */ +gboolean gaim_str_has_prefix(const char *s, const char *p); + +/** + * Compares two strings to see if the second is a proper suffix + * of the first. + * + * @param s The string to check. + * @param x The suffix in question. + * + * @return TRUE if x is a a suffix of s, otherwise FALSE. + */ +gboolean gaim_str_has_suffix(const char *s, const char *x); + +/** * Looks for %n, %d, or %t in a string, and replaces them with the * specified name, date, and time, respectively. *