File: HTWSRC.h

package info (click to toggle)
lynx 2.9.0dev.6-3~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,516 kB
  • sloc: ansic: 135,095; sh: 3,641; makefile: 1,149; perl: 1,130; yacc: 782
file content (43 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*                                                             A parser for WAIS source files
                                 WAIS SOURCE FILE PARSER

   This converter returns a stream object into which a WAIS source file can be
   written.  The result is put via a structured stream into whatever format was
   required for the output stream.

   See also:  HTWAIS protocol interface module

 */
#ifndef HTWSRC_H
#define HTWSRC_H

#include <HTFormat.h>

#ifdef __cplusplus
extern "C" {
#endif
    extern char from_hex(char c);

    extern HTStream *HTWSRCConvert(HTPresentation *pres,
				   HTParentAnchor *anchor,
				   HTStream *sink);

/*

Escaping Strings

   HTDeSlash takes out the invalid characters in a URL path ELEMENT by
   converting them into hex-escaped characters.  HTEnSlash does the reverse.

   Each returns a pointer to a newly allocated string which must eventually be
   freed by the caller.

 */
    extern char *HTDeSlash(const char *str);

    extern char *HTEnSlash(const char *str);

#ifdef __cplusplus
}
#endif
#endif				/* HTWSRC_H */