3static char *(hname[]) = {
30,
"content-transfer-encoding"
31,
"notice-requested-upon-delivery-to"
36static int hmatch(
char *s,
int len,
char *t)
41 for (i = 0; (ch = t[i]); ++i) {
42 if (i >= len)
return 0;
44 if (ch ==
'-')
return 0;
45 if (ch - 32 != s[i])
return 0;
49 if (i >= len)
return 0;
51 if (ch ==
':')
return 1;
52 if ((ch !=
' ') && (ch !=
'\t'))
return 0;
62 for (i = 1; (t = hname[i]); ++i)
75 for (
j = 0;
j < len; ++
j)
76 if (s[
j] ==
':')
break;
78 if (
j >= len)
return 0;
82 if ((ch !=
' ') && (ch !=
'\t'))
88 for (i = 0; i <
j; ++i) {
90 if (ch <= 32)
return 0;
91 if (ch >= 127)
return 0;
101 for (i = 0; i < len; ++i)
102 if (s[i] ==
':')
break;
107 if ((ch !=
'\t') && (ch !=
'\n') && (ch !=
'\r') && (ch !=
' '))
int hfield_valid(char *s, int len)
unsigned int hfield_skipname(char *s, int len)
int hfield_known(char *s, int len)