Mercurial > pidgin
comparison src/util.h @ 11132:a4611130e3eb
[gaim-migrate @ 13189]
A bit more dewarnification. I also think I found a memleak in sametime.
siege, could you please check that out sometime?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 20 Jul 2005 02:43:09 +0000 |
parents | 719779387f96 |
children | f2755f58a7da |
comparison
equal
deleted
inserted
replaced
11131:ece127d56c14 | 11132:a4611130e3eb |
---|---|
117 /**************************************************************************/ | 117 /**************************************************************************/ |
118 /*@{*/ | 118 /*@{*/ |
119 | 119 |
120 /** | 120 /** |
121 * Converts a quoted printable string back to its readable equivalent. | 121 * Converts a quoted printable string back to its readable equivalent. |
122 * | 122 * What is a quoted printable string, you ask? It's an encoding used |
123 * @param str The string to convert back. | 123 * to transmit binary data as ASCII. It's intended purpose is to send |
124 * e-mails containing non-ASCII characters. Wikipedia has a pretty good | |
125 * explanation. Also see RFC 2045. | |
126 * | |
127 * @param str The quoted printable ASCII string to convert to raw data. | |
124 * @param ret_str The returned, readable string. | 128 * @param ret_str The returned, readable string. |
125 * @param ret_len The returned string length. | 129 * @param ret_len The length of the returned data. You can |
126 */ | 130 * pass in NULL if you're sure that you know |
127 void gaim_quotedp_decode (const char *str, char **ret_str, int *ret_len); | 131 * the length of the decoded data, or if you |
132 * know you'll be able to use strlen to | |
133 * determine the length, etc. | |
134 * | |
135 * @return The raw data. Must be g'free'd when no longer needed. | |
136 */ | |
137 guint8 *gaim_quotedp_decode(const char *str, gsize *ret_len); | |
128 | 138 |
129 /*@}*/ | 139 /*@}*/ |
130 | 140 |
131 /**************************************************************************/ | 141 /**************************************************************************/ |
132 /** @name MIME Functions */ | 142 /** @name MIME Functions */ |