Lines Matching +full:0 +full:c

3 /* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
51 # define T(v) 0
58 /* 0 nul 1 soh 2 stx 3 etx 4 eot 5 enq 6 ack 7 bel */
59 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
61 0 | T(2) | 0 | 0 | T(16) | 0 | 0 | 0,
63 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
65 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0,
67 0 | 2 | 4 | 0 | 16 | 32 | 64 | 128,
70 /* 48 0 49 1 50 2 51 3 52 4 53 5 54 6 55 7 */
73 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
74 /* 64 @ 65 A 66 B 67 C 68 D 69 E 70 F 71 G */
82 /* 96 ` 97 a 98 b 99 c 100 d 101 e 102 f 103 g */
89 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
111 #define LOWER(c) (unsigned char)(c | 0x20) argument
112 #define IS_ALPHA(c) (LOWER(c) >= 'a' && LOWER(c) <= 'z') argument
113 #define IS_NUM(c) ((c) >= '0' && (c) <= '9') argument
114 #define IS_ALPHANUM(c) (IS_ALPHA(c) || IS_NUM(c)) argument
115 #define IS_HEX(c) (IS_NUM(c) || (LOWER(c) >= 'a' && LOWER(c) <= 'f')) argument
117 #define IS_MARK(c) ((c) == '-' || (c) == '_' || (c) == '.' || \ argument
118 (c) == '!' || (c) == '~' || (c) == '*' || \
119 (c) == '\'' || (c) == '(' || (c) == ')')
121 #define IS_USERINFO_CHAR(c) (IS_ALPHANUM(c) || IS_MARK(c) || (c) == '%' || \ argument
122 (c) == ';' || (c) == ':' || (c) == '&' || \
123 (c) == '=' || (c) == '+' || (c) == '$' || \
124 (c) == ',')
127 #define IS_URL_CHAR(c) (BIT_AT(normal_url_char, (unsigned char)c)) argument
128 #define IS_HOST_CHAR(c) (IS_ALPHANUM(c) || (c) == '.' || (c) == '-') argument
130 #define IS_URL_CHAR(c) \ argument
131 (BIT_AT(normal_url_char, (unsigned char)c) || ((c) & 0x80))
132 #define IS_HOST_CHAR(c) \ argument
133 (IS_ALPHANUM(c) || (c) == '.' || (c) == '-' || (c) == '_')
392 u->field_data[UF_HOST].len = 0U; in http_parse_host()
426 u->field_data[UF_PORT].len = 0U; in http_parse_host()
435 u->field_data[UF_USERINFO].len = 0U; in http_parse_host()
462 return 0; in http_parse_host()
468 (void)memset(u, 0, sizeof(*u)); in http_parser_url_init()
477 int found_at = 0; in http_parser_parse_url()
481 u->port = u->field_set = 0U; in http_parser_parse_url()
546 (u->field_set & (1 << UF_HOST)) == 0U) { in http_parser_parse_url()
551 if (http_parse_host(buf, u, found_at) != 0) { in http_parser_parse_url()
568 if (v > 0xffff) { in http_parser_parse_url()
575 return 0; in http_parser_parse_url()