comparison libpurple/util.h @ 27666:a08e84032814

merge of '2348ff22f0ff3453774b8b25b36238465580c609' and 'e76f11543c2a4aa05bdf584f087cbe3439029661'
author Paul Aurich <paul@darkrain42.org>
date Sun, 12 Jul 2009 05:43:38 +0000
parents 8c41a23e6b44
children e1cd44c7c7af c9c038529f38
comparison
equal deleted inserted replaced
27186:048bcf41deef 27666:a08e84032814
411 411
412 /**************************************************************************/ 412 /**************************************************************************/
413 /** @name Markup Functions */ 413 /** @name Markup Functions */
414 /**************************************************************************/ 414 /**************************************************************************/
415 /*@{*/ 415 /*@{*/
416
417 /**
418 * Escapes special characters in a plain-text string so they display
419 * correctly as HTML. For example, & is replaced with &amp; and < is
420 * replaced with &lt;
421 *
422 * This is exactly the same as g_markup_escape_text(), except that it
423 * does not change ' to &apos; because &apos; is not a valid HTML 4 entity,
424 * and is displayed literally in IE7.
425 *
426 * @since 2.6.0
427 */
428 gchar *purple_markup_escape_text(const gchar *text, gssize length);
416 429
417 /** 430 /**
418 * Finds an HTML tag matching the given name. 431 * Finds an HTML tag matching the given name.
419 * 432 *
420 * This locates an HTML tag's start and end, and stores its attributes 433 * This locates an HTML tag's start and end, and stores its attributes
1188 * Checks if the given IP address is a syntactically valid IPv4 address. 1201 * Checks if the given IP address is a syntactically valid IPv4 address.
1189 * 1202 *
1190 * @param ip The IP address to validate. 1203 * @param ip The IP address to validate.
1191 * 1204 *
1192 * @return True if the IP address is syntactically correct. 1205 * @return True if the IP address is syntactically correct.
1206 * @deprecated This function will be replaced with one that validates
1207 * as either IPv4 or IPv6 in 3.0.0. If you don't want this,
1208 * behavior, use one of the more specific functions.
1193 */ 1209 */
1194 gboolean purple_ip_address_is_valid(const char *ip); 1210 gboolean purple_ip_address_is_valid(const char *ip);
1211
1212 /**
1213 * Checks if the given IP address is a syntactically valid IPv4 address.
1214 *
1215 * @param ip The IP address to validate.
1216 *
1217 * @return True if the IP address is syntactically correct.
1218 * @since 2.6.0
1219 */
1220 gboolean purple_ipv4_address_is_valid(const char *ip);
1221
1222 /**
1223 * Checks if the given IP address is a syntactically valid IPv6 address.
1224 *
1225 * @param ip The IP address to validate.
1226 *
1227 * @return True if the IP address is syntactically correct.
1228 * @since 2.6.0
1229 */
1230 gboolean purple_ipv6_address_is_valid(const char *ip);
1195 1231
1196 /** 1232 /**
1197 * This function extracts a list of URIs from the a "text/uri-list" 1233 * This function extracts a list of URIs from the a "text/uri-list"
1198 * string. It was "borrowed" from gnome_uri_list_extract_uris 1234 * string. It was "borrowed" from gnome_uri_list_extract_uris
1199 * 1235 *