MCPcopy Create free account
hub / github.com/acl-dev/acl / tok822_quote_atom

Function tok822_quote_atom

lib_acl_cpp/src/mime/internal/tok822_parse.cpp:571–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569/* tok822_quote_atom - see if an atom needs quoting when externalized */
570
571static void tok822_quote_atom(TOK822 *tp)
572{
573 char *cp;
574 int ch;
575
576 /*
577 * RFC 822 expects 7-bit data. Rather than quoting every 8-bit character
578 * (and still passing it on as 8-bit data) we leave 8-bit data alone.
579 */
580 for (cp = acl_vstring_str(tp->vstr); (ch = *(unsigned char *) cp) != 0; cp++) {
581 if ( /* !ISASCII(ch) || */ ch == ' '
582 || ACL_ISCNTRL(ch) || strchr(tok822_opchar, ch))
583 {
584 tp->type = TOK822_QSTRING;
585 break;
586 }
587 }
588}
589
590/* tok822_comment - tokenize comment */
591

Callers 1

tok822_scan_limitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…