comparison src/util.h @ 5136:381da05cb5ed

[gaim-migrate @ 5500] this started out as simply adding an option to right-click on a jabber buddy and re-request authorization. Then I ended up chasing the disgusting mess of const vs non-const parameters all over gaim. The end result is that you can now right-click on jabber buddies and re-request auth like you can for ICQ. Also, a lot more things are const that should be, I fixed a bug or two, and I cleaned up one of my least favorite functions in gaim (linkify_text). It is now decidedly less evil. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 15 Apr 2003 04:18:00 +0000
parents 4691c5936c01
children 8d8bf0d31a23
comparison
equal deleted inserted replaced
5135:102135caa225 5136:381da05cb5ed
104 char *date(void); 104 char *date(void);
105 105
106 /** 106 /**
107 * Adds the necessary HTML code to turn URIs into HTML links in a string. 107 * Adds the necessary HTML code to turn URIs into HTML links in a string.
108 * 108 *
109 * The string passed must be able to store at least BUF_LEN * 2 bytes.
110 *
111 * @param str The string to linkify. 109 * @param str The string to linkify.
112 * 110 *
113 * @return The length of the new string. 111 * @return The linkified text.
114 */ 112 */
115 gint linkify_text(char *str); 113 char *linkify_text(const char *str);
116 114
117 /** 115 /**
118 * Converts seconds into a human-readable form. 116 * Converts seconds into a human-readable form.
119 * 117 *
120 * @param sec The seconds. 118 * @param sec The seconds.
245 * 243 *
246 * @param str The source string. 244 * @param str The source string.
247 * 245 *
248 * @return The string with carriage returns. 246 * @return The string with carriage returns.
249 */ 247 */
250 char *add_cr(char *); 248 char *add_cr(const char *);
251 249
252 /** 250 /**
253 * Strips all linefeeds from a string. 251 * Strips all linefeeds from a string.
254 * 252 *
255 * @param str The string to strip linefeeds from. 253 * @param str The string to strip linefeeds from.