comparison src/util.h @ 11153:8e600ee6ec61

[gaim-migrate @ 13235] sf patch #1243998, from Evan Schoenberg, also some changes by me Basically novell needed a prpl->normalize function that didn't remove spaces. But I didn't like having the default normalize code make the string lowercase and remove spaces, so I changed the default to basically do nothing. Anyhoo, if you think of yourself as the primary contact for one of the PRPLs, you may want to make sure your PRPL has a normalize function, if it needs one. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 24 Jul 2005 19:36:22 +0000
parents 096020ae09a9
children 9563b768e8e2
comparison
equal deleted inserted replaced
11152:c25b3815d781 11153:8e600ee6ec61
503 * @return A pointer to the normalized version stored in a static buffer. 503 * @return A pointer to the normalized version stored in a static buffer.
504 */ 504 */
505 const char *gaim_normalize(const GaimAccount *account, const char *str); 505 const char *gaim_normalize(const GaimAccount *account, const char *str);
506 506
507 /** 507 /**
508 * Normalizes a string, so that it is suitable for comparison.
509 *
510 * This is one possible implementation for the PRPL callback
511 * function "normalize." It returns a lowercase and UTF-8
512 * normalized version of the string.
513 *
514 * @param account The account the string belongs to.
515 * @param str The string to normalize.
516 *
517 * @return A pointer to the normalized version stored in a static buffer.
518 */
519 const char *gaim_normalize_nocase(const GaimAccount *account, const char *str);
520
521 /**
508 * Compares two strings to see if the first contains the second as 522 * Compares two strings to see if the first contains the second as
509 * a proper prefix. 523 * a proper prefix.
510 * 524 *
511 * @param s The string to check. 525 * @param s The string to check.
512 * @param p The prefix in question. 526 * @param p The prefix in question.