Mercurial > pidgin.yaz
comparison src/util.h @ 8432:33cc36f5a7a6
[gaim-migrate @ 9162]
Added gaim_add_eight(), which adds 8 to a number and returns it. You may
all blame SimGuy for this.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 12 Mar 2004 04:33:30 +0000 |
parents | fec4c1fb2ac8 |
children | 964d42c74ff7 |
comparison
equal
deleted
inserted
replaced
8431:deb36081aaf2 | 8432:33cc36f5a7a6 |
---|---|
119 /**************************************************************************/ | 119 /**************************************************************************/ |
120 /*@{*/ | 120 /*@{*/ |
121 | 121 |
122 /** | 122 /** |
123 * Converts a MIME header field string back to its readable equivalent | 123 * Converts a MIME header field string back to its readable equivalent |
124 * according to RFC 2047. Basically, a header is plain ASCII and can | 124 * according to RFC 2047. Basically, a header is plain ASCII and can |
125 * contain any number of sections called "encoded-words." The format | 125 * contain any number of sections called "encoded-words." The format |
126 * of an encoded word is =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= | 126 * of an encoded word is =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= |
127 * =? designates the beginning of the encoded-word | 127 * =? designates the beginning of the encoded-word |
128 * ?= designates the end of the encoded-word | 128 * ?= designates the end of the encoded-word |
129 * ? segments the encoded word into three pieces. The first piece is | 129 * ? segments the encoded word into three pieces. The first piece is |
130 * the character set, the second peice is the encoding, and the | 130 * the character set, the second peice is the encoding, and the |
131 * third piece is the encoded text. | 131 * third piece is the encoded text. |
132 * | 132 * |
133 * @param str The string to convert back. | 133 * @param str The string to convert back. |
134 * | 134 * |
135 * @return The readble string. | 135 * @return The readble string. |
373 const char *gaim_normalize(const GaimAccount *account, const char *str); | 373 const char *gaim_normalize(const GaimAccount *account, const char *str); |
374 | 374 |
375 /** | 375 /** |
376 * Compares two strings to see if the first contains the second as | 376 * Compares two strings to see if the first contains the second as |
377 * a proper prefix. | 377 * a proper prefix. |
378 * | 378 * |
379 * @param s The string to check. | 379 * @param s The string to check. |
380 * @param p The prefix in question. | 380 * @param p The prefix in question. |
381 * | 381 * |
382 * @return TRUE if p is a prefix of s, otherwise FALSE. | 382 * @return TRUE if p is a prefix of s, otherwise FALSE. |
383 */ | 383 */ |
384 gboolean gaim_str_has_prefix(const char *s, const char *p); | 384 gboolean gaim_str_has_prefix(const char *s, const char *p); |
385 | 385 |
386 /** | 386 /** |
387 * Compares two strings to see if the second is a proper suffix | 387 * Compares two strings to see if the second is a proper suffix |
388 * of the first. | 388 * of the first. |
389 * | 389 * |
390 * @param s The string to check. | 390 * @param s The string to check. |
391 * @param x The suffix in question. | 391 * @param x The suffix in question. |
392 * | 392 * |
393 * @return TRUE if x is a a suffix of s, otherwise FALSE. | 393 * @return TRUE if x is a a suffix of s, otherwise FALSE. |
394 */ | 394 */ |
395 gboolean gaim_str_has_suffix(const char *s, const char *x); | 395 gboolean gaim_str_has_suffix(const char *s, const char *x); |
396 | 396 |
397 /** | 397 /** |
593 * | 593 * |
594 * @param in The string to strip | 594 * @param in The string to strip |
595 * | 595 * |
596 * @return The stripped string | 596 * @return The stripped string |
597 */ | 597 */ |
598 char * gaim_text_strip_mnemonic(const char *in); | 598 char *gaim_text_strip_mnemonic(const char *in); |
599 | 599 |
600 /*@}*/ | 600 /*@}*/ |
601 | |
602 /** | |
603 * Adds 8 to something. | |
604 * | |
605 * Blame SimGuy. | |
606 * | |
607 * @param i The integer to add 8 to. | |
608 * | |
609 * @return i + 8 | |
610 */ | |
611 int gaim_add_eight(int i); | |
601 | 612 |
602 #ifdef __cplusplus | 613 #ifdef __cplusplus |
603 } | 614 } |
604 #endif | 615 #endif |
605 | 616 |