Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 7627:dc88428762c9 | 7628:e293d0c42ccb |
|---|---|
| 320 * @return A pointer to the normalized version stored in a static buffer. | 320 * @return A pointer to the normalized version stored in a static buffer. |
| 321 */ | 321 */ |
| 322 const char *gaim_normalize(const GaimAccount *account, const char *str); | 322 const char *gaim_normalize(const GaimAccount *account, const char *str); |
| 323 | 323 |
| 324 /** | 324 /** |
| 325 * Compares two strings to see if the first contains the second as | |
| 326 * a proper prefix. | |
| 327 * | |
| 328 * @param s The string to check. | |
| 329 * @param p The prefix in question. | |
| 330 * | |
| 331 * @return TRUE if p is a prefix of s, otherwise FALSE. | |
| 332 */ | |
| 333 gboolean gaim_str_has_prefix(const char *s, const char *p); | |
| 334 | |
| 335 /** | |
| 336 * Compares two strings to see if the second is a proper suffix | |
| 337 * of the first. | |
| 338 * | |
| 339 * @param s The string to check. | |
| 340 * @param x The suffix in question. | |
| 341 * | |
| 342 * @return TRUE if x is a a suffix of s, otherwise FALSE. | |
| 343 */ | |
| 344 gboolean gaim_str_has_suffix(const char *s, const char *x); | |
| 345 | |
| 346 /** | |
| 325 * Looks for %n, %d, or %t in a string, and replaces them with the | 347 * Looks for %n, %d, or %t in a string, and replaces them with the |
| 326 * specified name, date, and time, respectively. | 348 * specified name, date, and time, respectively. |
| 327 * | 349 * |
| 328 * The returned string is stored in a static buffer, so the result | 350 * The returned string is stored in a static buffer, so the result |
| 329 * should be g_strdup()'d if it's intended to be used for long. | 351 * should be g_strdup()'d if it's intended to be used for long. |
