Lines Matching +full:16 +full:- +full:128

1 /* SPDX-License-Identifier: MIT */
41 /* Set the mark FOR; non-destructive if mark is already set */
61 0 | T(2) | 0 | 0 | T(16) | 0 | 0 | 0,
62 /* 16 dle 17 dc1 18 dc2 19 dc3 20 dc4 21 nak 22 syn 23 etb */
67 0 | 2 | 4 | 0 | 16 | 32 | 64 | 128,
68 /* 40 ( 41 ) 42 * 43 + 44 , 45 - 46 . 47 / */
69 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
71 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
73 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
75 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
77 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
79 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
81 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
83 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
85 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
87 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128,
89 1 | 2 | 4 | 8 | 16 | 32 | 64 | 0,
110 /* Macros for character classes; depends on strict-mode */
117 #define IS_MARK(c) ((c) == '-' || (c) == '_' || (c) == '.' || \
128 #define IS_HOST_CHAR(c) (IS_ALPHANUM(c) || (c) == '.' || (c) == '-')
133 (IS_ALPHANUM(c) || (c) == '.' || (c) == '-' || (c) == '_')
139 * hence it has a state transition + byte-for-byte interface. In addition, it
143 * This function should only be invoked with non-space characters. It is
145 * URL and non-URL states by looking for these.
359 /* RFC 6874 Zone ID consists of 1*( unreserved / pct-encoded) */ in http_parse_host_char()
360 if (IS_ALPHANUM(ch) || ch == '%' || ch == '.' || ch == '-' || in http_parse_host_char()
389 buflen = u->field_data[UF_HOST].off + u->field_data[UF_HOST].len; in http_parse_host()
390 __ASSERT_NO_MSG(u->field_set & (1 << UF_HOST)); in http_parse_host()
392 u->field_data[UF_HOST].len = 0U; in http_parse_host()
396 for (p = buf + u->field_data[UF_HOST].off; p < buf + buflen; p++) { in http_parse_host()
406 u->field_data[UF_HOST].off = p - buf; in http_parse_host()
408 u->field_data[UF_HOST].len++; in http_parse_host()
413 u->field_data[UF_HOST].off = p - buf; in http_parse_host()
415 u->field_data[UF_HOST].len++; in http_parse_host()
420 u->field_data[UF_HOST].len++; in http_parse_host()
425 u->field_data[UF_PORT].off = p - buf; in http_parse_host()
426 u->field_data[UF_PORT].len = 0U; in http_parse_host()
427 u->field_set |= (1 << UF_PORT); in http_parse_host()
429 u->field_data[UF_PORT].len++; in http_parse_host()
434 u->field_data[UF_USERINFO].off = p - buf; in http_parse_host()
435 u->field_data[UF_USERINFO].len = 0U; in http_parse_host()
436 u->field_set |= (1 << UF_USERINFO); in http_parse_host()
438 u->field_data[UF_USERINFO].len++; in http_parse_host()
481 u->port = u->field_set = 0U; in http_parser_parse_url()
532 u->field_data[uf].len++; in http_parser_parse_url()
536 u->field_data[uf].off = p - buf; in http_parser_parse_url()
537 u->field_data[uf].len = 1U; in http_parser_parse_url()
539 u->field_set |= (1 << uf); in http_parser_parse_url()
545 if ((u->field_set & (1 << UF_SCHEMA)) && in http_parser_parse_url()
546 (u->field_set & (1 << UF_HOST)) == 0U) { in http_parser_parse_url()
550 if (u->field_set & (1 << UF_HOST)) { in http_parser_parse_url()
557 if (is_connect && u->field_set != ((1 << UF_HOST)|(1 << UF_PORT))) { in http_parser_parse_url()
561 if (u->field_set & (1 << UF_PORT)) { in http_parser_parse_url()
565 v = strtoul(buf + u->field_data[UF_PORT].off, NULL, 10); in http_parser_parse_url()
567 /* Ports have a max value of 2^16 */ in http_parser_parse_url()
572 u->port = (uint16_t) v; in http_parser_parse_url()