JunkBox_Lib  1.10.2
mime_tool.h
Go to the documentation of this file.
1 #ifndef __JBXL_MIME_TOOL_H_
2 #define __JBXL_MIME_TOOL_H_
3 
11 #include "xtools.h"
12 
13 #define MIME_CONTENT_LINE "Content-"
14 #define MIME_CONTENTTYPE_LINE "Content-Type"
15 #define MIME_CONTENTDSPO_LINE "Content-Disposition"
16 #define MIME_NAMEEQ_LINE "name="
17 #define MIME_FILENAMEEQ_LINE "filename="
18 #define MIME_FILENAMESTAR_LINE "filename*"
19 #define MIME_BOUNDARY_LINE "boundary="
20 #define MIME_ISO2022JP_LINE "ISO-2022-JP"
21 #define MIME_BASE64 "=?ISO-2022-JP?B?"
22 #define MIME_QUTDPRNTBL ""
23 #define MIME_RFC2231 "iso-2022-jp'ja'"
24 #define MIME_CHARSET_ISO2022JP "Content-Type: text/plain; charset=iso-2022-jp"
25 
26 #define MIME_ERR_ENCODE -1
27 #define MIME_UNKNOWN_ENCODE 0
28 #define MIME_BASE64_ENCODE 1
29 #define MIME_QUTDPRNTBL_ENCODE 2
30 #define MIME_URL_ENCODE 3
31 
32 
34 
35 char* get_mime_boundary(tList* list);
36 tList* get_mime_filename(FILE* fp, char* bndry);
37 tList* get_mime_filenameffn(char* fn, char* bndry);
38 
39 char* decode_mime_string (char* str);
40 char* decode_mime_rfc2047(char* str);
41 char* decode_mime_rfc2231(char* str);
42 
43 char* encode_mime_string(char* str, int kind);
44 int get_mime_enckind(char* str);
45 
46 
47 #endif
48 
int get_mime_enckind(char *str)
Definition: mime_tool.c:512
char * decode_mime_rfc2047(char *str)
Definition: mime_tool.c:181
char * encode_mime_string(char *str, int kind)
Definition: mime_tool.c:444
char * decode_mime_string(char *str)
Definition: mime_tool.c:361
char * get_mime_boundary(tList *list)
Definition: mime_tool.c:27
tList * get_mime_filenameffn(char *fn, char *bndry)
Definition: mime_tool.c:153
char * decode_mime_rfc2231(char *str)
Definition: mime_tool.c:312
tList * get_mime_filename(FILE *fp, char *bndry)
Definition: mime_tool.c:67
汎用拡張ツールヘッダ