1 /*                                                             A parser for WAIS source files
2                                  WAIS SOURCE FILE PARSER
3 
4    This converter returns a stream object into which a WAIS source file can be
5    written.  The result is put via a structured stream into whatever format was
6    required for the output stream.
7 
8    See also:  HTWAIS protocol interface module
9 
10  */
11 #ifndef HTWSRC_H
12 #define HTWSRC_H
13 
14 #include <HTFormat.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19     extern char from_hex(char c);
20 
21     extern HTStream *HTWSRCConvert(HTPresentation *pres,
22 				   HTParentAnchor *anchor,
23 				   HTStream *sink);
24 
25 /*
26 
27 Escaping Strings
28 
29    HTDeSlash takes out the invlaid characters in a URL path ELEMENT by
30    converting them into hex-escaped characters.  HTEnSlash does the reverse.
31 
32    Each returns a pointer to a newly allocated string which must eventually be
33    freed by the caller.
34 
35  */
36     extern char *HTDeSlash(const char *str);
37 
38     extern char *HTEnSlash(const char *str);
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 #endif				/* HTWSRC_H */
44