libcmime  
A lightweight C mime library
cmime_qp.h
Go to the documentation of this file.
1 /* libcmime - A C mime library
2  * Copyright (C) 2013 SpaceNet AG
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining
5  * a copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sublicense, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be
13  * included in all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  */
23 
30 #ifndef _CMIME_QP_H
31 #define _CMIME_QP_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #include <stdlib.h>
38 #include <stdio.h>
39 #include <string.h>
40 #include <ctype.h>
41 
50 char *cmime_qp_decode(char *line_in, int mode, char esc_char);
51 
58 char *cmime_qp_decode_text (char *line_in);
59 
66 char *cmime_qp_decode_iso (char *line_in);
67 
74 char *cmime_qp_decode_multipart (char *line_in);
75 
83 char *cmime_qp_encode(char *line_in, char *lt);
84 
91 char *cmime_qp_rm_charenc(char *line_in);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 #endif /* _CMIME_QP_H */
char * cmime_qp_rm_charenc(char *line_in)
function to remove charset encoding from string
Definition: cmime_qp.c:241
char * cmime_qp_decode_text(char *line_in)
helper function to decode from quoted-printable
Definition: cmime_qp.c:124
char * cmime_qp_decode_iso(char *line_in)
helper function to decode from quoted-printable with ISO
Definition: cmime_qp.c:130
char * cmime_qp_decode_multipart(char *line_in)
helper function to decode multipart from quoted-printable
Definition: cmime_qp.c:136
char * cmime_qp_decode(char *line_in, int mode, char esc_char)
decode string from quoted-printable
Definition: cmime_qp.c:51
char * cmime_qp_encode(char *line_in, char *lt)
function to encode string to quoted-printable
Definition: cmime_qp.c:142