comparison src/util.h @ 7162:d14e026611c0

[gaim-migrate @ 7729] constificating the countryside committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 05 Oct 2003 18:32:43 +0000
parents 67f9b43c402a
children 1930e3d00ecd
comparison
equal deleted inserted replaced
7161:3471c3b1e85c 7162:d14e026611c0
110 * 110 *
111 * @return The current local time. 111 * @return The current local time.
112 * 112 *
113 * @see gaim_date_full() 113 * @see gaim_date_full()
114 */ 114 */
115 char *gaim_date(void); 115 const char *gaim_date(void);
116 116
117 /** 117 /**
118 * Returns the date and time in human-readable form. 118 * Returns the date and time in human-readable form.
119 * 119 *
120 * The returned string is stored in a static buffer, so the result 120 * The returned string is stored in a static buffer, so the result
122 * 122 *
123 * @return The date and time in human-readable form. 123 * @return The date and time in human-readable form.
124 * 124 *
125 * @see gaim_date() 125 * @see gaim_date()
126 */ 126 */
127 char *gaim_date_full(void); 127 const char *gaim_date_full(void);
128 128
129 /** 129 /**
130 * Builds a time_t from the supplied information. 130 * Builds a time_t from the supplied information.
131 * 131 *
132 * @param year The year. 132 * @param year The year.
304 * 304 *
305 * @param str The string to normalize. 305 * @param str The string to normalize.
306 * 306 *
307 * @return A pointer to the normalized version stored in a static buffer. 307 * @return A pointer to the normalized version stored in a static buffer.
308 */ 308 */
309 char *gaim_normalize(const char *str); 309 const char *gaim_normalize(const char *str);
310 310
311 /** 311 /**
312 * Looks for %n, %d, or %t in a string, and replaces them with the 312 * Looks for %n, %d, or %t in a string, and replaces them with the
313 * specified name, date, and time, respectively. 313 * specified name, date, and time, respectively.
314 * 314 *
318 * @param str The string that may contain the special variables. 318 * @param str The string that may contain the special variables.
319 * @param name The sender name. 319 * @param name The sender name.
320 * 320 *
321 * @return A new string where the special variables are expanded. 321 * @return A new string where the special variables are expanded.
322 */ 322 */
323 char *gaim_str_sub_away_formatters(const char *str, const char *name); 323 const char *gaim_str_sub_away_formatters(const char *str, const char *name);
324 324
325 /** 325 /**
326 * Copies a string and replaces all HTML linebreaks with newline characters. 326 * Copies a string and replaces all HTML linebreaks with newline characters.
327 * 327 *
328 * @param dest The destination string. 328 * @param dest The destination string.
460 * This will change hex codes and such to their ascii equivalents. 460 * This will change hex codes and such to their ascii equivalents.
461 * 461 *
462 * @param str The string to translate. 462 * @param str The string to translate.
463 * 463 *
464 * @return The resulting string. 464 * @return The resulting string.
465 */ 465 */
466 char *gaim_url_decode(const char *str); 466 const char *gaim_url_decode(const char *str);
467 467
468 /** 468 /**
469 * Encodes a URL into an escaped string. 469 * Encodes a URL into an escaped string.
470 * 470 *
471 * This will change non-alphanumeric characters to hex codes. 471 * This will change non-alphanumeric characters to hex codes.
472 * 472 *
473 * @param str The string to translate. 473 * @param str The string to translate.
474 * 474 *
475 * @return The resulting string. 475 * @return The resulting string.
476 */ 476 */
477 char *gaim_url_encode(const char *str); 477 const char *gaim_url_encode(const char *str);
478 478
479 /*@}*/ 479 /*@}*/
480 480
481 /************************************************************************** 481 /**************************************************************************
482 * UTF8 String Functions 482 * UTF8 String Functions