~ubuntu-branches/ubuntu/warty/lynx/warty-security

« back to all changes in this revision

Viewing changes to WWW/Library/Implementation/HTMIME.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*                   /Net/dxcern/userd/timbl/hypertext/WWW/Library/Implementation/HTMIME.html
 
2
                                       MIME PARSER
 
3
 
 
4
   The MIME parser stream presents a MIME document.  It recursively invokes the format
 
5
   manager to handle embedded formats.
 
6
 
 
7
   As well as stripping off and parsing the headers, the MIME parser has to parse any
 
8
   weirld MIME encodings it may meet within the body parts of messages, and must deal with
 
9
   multipart messages.
 
10
 
 
11
   This module is implemented to the level necessary for operation with WWW, but is not
 
12
   currently complete for any arbitrary MIME message.
 
13
 
 
14
   Check the source for latest additions to functionality.
 
15
 
 
16
   The MIME parser is complicated by the fact that WWW allows real binary to be sent, not
 
17
   ASCII encoded.  Therefore the netascii decoding is included in this module.  One cannot
 
18
   layer it by converting first from Net to local text, then decoding it.  Of course, for
 
19
   local files, the net ascii decoding is not needed.  There are therefore two creation
 
20
   routines.
 
21
 
 
22
 */
 
23
#ifndef HTMIME_H
 
24
#define HTMIME_H
 
25
 
 
26
#include <HTStream.h>
 
27
#include <HTAnchor.h>
 
28
 
 
29
/*
 
30
**  This function is for trimming off any paired
 
31
**  open- and close-double quotes from header values.
 
32
**  It does not parse the string for embedded quotes,
 
33
**  and will not modify the string unless both the
 
34
**  first and last characters are double-quotes. - FM
 
35
*/
 
36
extern void HTMIME_TrimDoubleQuotes PARAMS((
 
37
        char *          value));
 
38
 
 
39
/*
 
40
 
 
41
  INPUT: LOCAL TEXT
 
42
 
 
43
 */
 
44
extern HTStream * HTMIMEConvert PARAMS((HTPresentation * pres,
 
45
                                        HTParentAnchor * anchor,
 
46
                                        HTStream * sink));
 
47
/*
 
48
 
 
49
  INPUT: NET ASCII
 
50
 
 
51
 */
 
52
extern HTStream * HTNetMIME PARAMS((HTPresentation * pres,
 
53
                                        HTParentAnchor * anchor,
 
54
                                        HTStream * sink));
 
55
/*
 
56
 
 
57
  INPUT: Redirection message, parse headers only for Location if present
 
58
 
 
59
 */
 
60
extern HTStream * HTMIMERedirect PARAMS((HTPresentation * pres,
 
61
                                        HTParentAnchor * anchor,
 
62
                                        HTStream * sink));
 
63
 
 
64
 
 
65
/*
 
66
 
 
67
  For handling Japanese headers.
 
68
 
 
69
*/
 
70
extern void HTmmdec_base64 PARAMS((
 
71
        char *  t,
 
72
        char *  s));
 
73
 
 
74
extern void HTmmdec_quote PARAMS((
 
75
        char *  t,
 
76
        char *  s));
 
77
 
 
78
extern void HTmmdecode PARAMS((
 
79
        char *  trg,
 
80
        char *  str));
 
81
 
 
82
extern int HTrjis PARAMS((
 
83
        char *  t,
 
84
        char *  s));
 
85
 
 
86
extern int HTmaybekanji PARAMS((
 
87
        int     c1,
 
88
        int     c2));
 
89
 
 
90
#endif /* !HTMIME_H */