Lines Matching full:body

54 decode_quoted_printable(const char *body, FILE *fpo, bool rfc2047)  in decode_quoted_printable()  argument
56 while (*body != '\0') { in decode_quoted_printable()
57 switch (*body) { in decode_quoted_printable()
59 if (strlen(body) < 2) { in decode_quoted_printable()
60 fputc(*body, fpo); in decode_quoted_printable()
64 if (body[1] == '\r' && body[2] == '\n') { in decode_quoted_printable()
65 body += 2; in decode_quoted_printable()
68 if (body[1] == '\n') { in decode_quoted_printable()
69 body++; in decode_quoted_printable()
72 if (strchr("0123456789ABCDEFabcdef", body[1]) == NULL) { in decode_quoted_printable()
73 fputc(*body, fpo); in decode_quoted_printable()
76 if (strchr("0123456789ABCDEFabcdef", body[2]) == NULL) { in decode_quoted_printable()
77 fputc(*body, fpo); in decode_quoted_printable()
80 fputc(decode_char(body), fpo); in decode_quoted_printable()
81 body += 2; in decode_quoted_printable()
90 fputc(*body, fpo); in decode_quoted_printable()
93 body++; in decode_quoted_printable()
98 encode_quoted_printable(const char *body, FILE *fpo, bool rfc2047) in encode_quoted_printable() argument
100 const char *end = body + strlen(body); in encode_quoted_printable()
104 while (*body != '\0') { in encode_quoted_printable()
109 if (!isascii(*body) || in encode_quoted_printable()
110 *body == '=' || in encode_quoted_printable()
111 (*body == '.' && body + 1 < end && in encode_quoted_printable()
112 (body[1] == '\n' || body[1] == '\r'))) { in encode_quoted_printable()
113 fprintf(fpo, "=%02X", (unsigned char)*body); in encode_quoted_printable()
115 prev = *body; in encode_quoted_printable()
116 } else if (*body < 33 && *body != '\n') { in encode_quoted_printable()
117 if ((*body == ' ' || *body == '\t') && in encode_quoted_printable()
118 body + 1 < end && in encode_quoted_printable()
119 (body[1] != '\n' && body[1] != '\r')) { in encode_quoted_printable()
120 if (*body == 0x20 && rfc2047) in encode_quoted_printable()
123 fputc(*body, fpo); in encode_quoted_printable()
124 prev = *body; in encode_quoted_printable()
126 fprintf(fpo, "=%02X", (unsigned char)*body); in encode_quoted_printable()
130 } else if (*body == '\n') { in encode_quoted_printable()
138 fputc(*body, fpo); in encode_quoted_printable()
139 prev = *body; in encode_quoted_printable()
141 body++; in encode_quoted_printable()