--- libwww/Library/src/HTEscape.html 1995/09/08 17:40:42 2.7 +++ libwww/Library/src/HTEscape.html 1995/09/20 18:29:29 2.8 @@ -1,6 +1,7 @@ Escape and Unescape Illegal Characters in URIs + @@ -20,9 +21,8 @@ bunch of the library code. It contains f unescaping a URI for reserved characters in URIs.

This module is implemented by HTEscape.c, and -it is a part of the -W3C Reference Library. +it is a part of the W3C +Reference Library.

 #ifndef HTESCAPE_H
@@ -39,16 +39,13 @@ form %xy where x
-extern char * HTEscape PARAMS((CONST char * str, unsigned char mask));
-
- -The following are valid mask values. The terms are the BNF names in -the URI document. +typedef enum _HTURIEncoding { + URL_XALPHAS = 0x1, + URL_XPALPHAS = 0x2, + URL_PATH = 0x4 +} HTURIEncoding; -
-#define URL_XALPHAS	(unsigned char) 1
-#define URL_XPALPHAS	(unsigned char) 2
-#define URL_PATH	(unsigned char) 4
+extern char * HTEscape (CONST char * str, HTURIEncoding mask);
 

Decode %xy Escaped Characters

@@ -59,9 +56,10 @@ acsii hex code for character 16x+y. The as it will never grow.
-extern char * HTUnEscape PARAMS(( char * str));
-
+extern char * HTUnEscape (char * str);
+
+
 #endif	/* HTESCAPE_H */