Lines Matching refs:body
53 decode_quoted_printable(const char *body, FILE *fpo) in decode_quoted_printable() argument
55 while (*body != '\0') { in decode_quoted_printable()
56 switch (*body) { in decode_quoted_printable()
58 if (strlen(body) < 2) { in decode_quoted_printable()
59 fputc(*body, fpo); in decode_quoted_printable()
63 if (body[1] == '\r' && body[2] == '\n') { in decode_quoted_printable()
64 body += 2; in decode_quoted_printable()
67 if (body[1] == '\n') { in decode_quoted_printable()
68 body++; in decode_quoted_printable()
71 if (strchr("0123456789ABCDEFabcdef", body[1]) == NULL) { in decode_quoted_printable()
72 fputc(*body, fpo); in decode_quoted_printable()
75 if (strchr("0123456789ABCDEFabcdef", body[2]) == NULL) { in decode_quoted_printable()
76 fputc(*body, fpo); in decode_quoted_printable()
79 fputc(decode_char(body), fpo); in decode_quoted_printable()
80 body += 2; in decode_quoted_printable()
83 fputc(*body, fpo); in decode_quoted_printable()
86 body++; in decode_quoted_printable()
91 encode_quoted_printable(const char *body, FILE *fpo) in encode_quoted_printable() argument
93 const char *end = body + strlen(body); in encode_quoted_printable()
97 while (*body != '\0') { in encode_quoted_printable()
102 if (!isascii(*body) || in encode_quoted_printable()
103 *body == '=' || in encode_quoted_printable()
104 (*body == '.' && body + 1 < end && in encode_quoted_printable()
105 (body[1] == '\n' || body[1] == '\r'))) { in encode_quoted_printable()
106 fprintf(fpo, "=%02X", (unsigned char)*body); in encode_quoted_printable()
108 prev = *body; in encode_quoted_printable()
109 } else if (*body < 33 && *body != '\n') { in encode_quoted_printable()
110 if ((*body == ' ' || *body == '\t') && in encode_quoted_printable()
111 body + 1 < end && in encode_quoted_printable()
112 (body[1] != '\n' && body[1] != '\r')) { in encode_quoted_printable()
113 fputc(*body, fpo); in encode_quoted_printable()
114 prev = *body; in encode_quoted_printable()
116 fprintf(fpo, "=%02X", (unsigned char)*body); in encode_quoted_printable()
120 } else if (*body == '\n') { in encode_quoted_printable()
128 fputc(*body, fpo); in encode_quoted_printable()
129 prev = *body; in encode_quoted_printable()
131 body++; in encode_quoted_printable()