2 * @file upnp/upnp_util.h Utility Functions
7 * Gaim is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * @todo Rename the functions so that they live somewhere in the gaim
40 * Unescapes HTML entities to their literal characters.
41 * For example "&" is replaced by '&' and so on.
42 * Actually only "&", """, "<" and ">" are currently
45 * @param html The string in which to unescape any HTML entities
47 * @return the text with HTML entities literalized
49 char *gaim_unescape_html (const char *html);
52 * Compares two strings to see if the first contains the second as
55 * @param s The string to check.
56 * @param p The prefix in question.
58 * @return TRUE if p is a prefix of s, otherwise FALSE.
60 int gaim_str_has_prefix (const char *s, const char *p);
62 char *g_strdup_printf (const char *fmt, ...);