--- libaitwww/inc/aitwww.h 2012/03/15 01:59:37 1.3 +++ libaitwww/inc/aitwww.h 2012/07/31 11:56:16 1.3.4.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitwww.h,v 1.3 2012/03/15 01:59:37 misho Exp $ +* $Id: aitwww.h,v 1.3.4.1 2012/07/31 11:56:16 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -214,6 +214,46 @@ inline void www_freeAttributes(cgi_t ** __restrict att * return: NULL not found or !=NULL attribute value */ inline const char *www_getAttribute(cgi_t * __restrict attr, const char *name); + + +/* + * www_cmp() - Compare two string + * + * @ct = content text from www + * @s = string + * return: 0 are equal or !0 are different + */ +int www_cmp(const char *ct, const char *s); +/* + * www_cmptype() - Compare context type + * + * @ct = content text from www + * @type = content type + * return: 0 are equal or !0 are different + */ +int www_cmptype(const char *ct, const char *type); +/* + * www_getpair() - Get AV pair from WWW query string + * + * @str = query string + * @delim = delimiter + * return: NULL error or AV pair, must be free() after use! + */ +char *www_getpair(char ** __restrict str, const char *delim); +/* + * www_x2c() - Hex from string to digit + * + * @str = string + * return: digit + */ +inline char www_x2c(const char *str); +/* + * www_unescape() - Unescape/decode WWW query string to host string + * + * @str = string + * return: none + */ +inline void www_unescape(char * __restrict str); /*