Lines Matching refs:i
64 for (uint_fast32_t i = 0; i < len; ++i) { in __attribute_nonnull__() local
65 if (__builtin_expect( (s[i] <= 32), 0)) return (const char *)s+i; in __attribute_nonnull__()
66 if (__builtin_expect( (s[i] == 127), 0)) return (const char *)s+i; in __attribute_nonnull__()
67 if (__builtin_expect( (s[i] == 255), 0)) return (const char *)s+i; in __attribute_nonnull__()
75 for (uint_fast32_t i = 0; i < len; ++i) { in __attribute_nonnull__() local
76 if (__builtin_expect( (((const uint8_t *)s)[i]<32), 0) && s[i] != '\t') in __attribute_nonnull__()
77 return s+i; in __attribute_nonnull__()
78 if (__builtin_expect( (s[i] == 127), 0)) in __attribute_nonnull__()
79 return s+i; in __attribute_nonnull__()
87 for (uint_fast32_t i = 0; i < len; ++i) { in __attribute_nonnull__() local
88 if (__builtin_expect( (s[i] == '\0'), 0)) return s+i; in __attribute_nonnull__()
89 if (__builtin_expect( (s[i] == '\r'), 0)) return s+i; in __attribute_nonnull__()
90 if (__builtin_expect( (s[i] == '\n'), 0)) return s+i; in __attribute_nonnull__()
129 for (uint32_t i = 0; i < hlen; ++i) { in request_check_hostname() local
130 const int ch = h[i]; in request_check_hostname()
134 else if ((light_isalpha(ch) || (ch == '-' && i != 0))) in request_check_hostname()
136 else if (ch == '.' && 1 != label_len && '-' != h[i+1]) { in request_check_hostname()
354 uint32_t i; in li_restricted_strtoint64() local
355 for (i = 0; i < vlen; ++i) { in li_restricted_strtoint64()
356 const uint8_t c = ((uint8_t *)v)[i] - '0'; /*(unsigned; underflow ok)*/ in li_restricted_strtoint64()
363 *err = v+i; in li_restricted_strtoint64()
908 size_t i = 0; in http_request_parse_reqline() local
909 while (ptr[i] != ' ') ++i; in http_request_parse_reqline()
911 while (i < len && ptr[i] != ' ') ++i; in http_request_parse_reqline()
912 if (ptr[i] != ' ') in http_request_parse_reqline()
916 r->http_method = get_http_method_key(ptr, i); in http_request_parse_reqline()
920 const char *uri = ptr + i + 1; in http_request_parse_reqline()
1062 for (int i = 0; i < klen; ++i) { in http_request_parse_header_other() local
1063 if (light_isalpha(k[i]) || k[i] == '-') continue; /*(common cases)*/ in http_request_parse_header_other()
1069 switch(k[i]) { in http_request_parse_header_other()
1092 … return http_request_header_char_invalid(r, k[i], "invalid character in header key -> 400"); in http_request_parse_header_other()
1094 if (http_header_strict ? (k[i] < 32 || ((unsigned char *)k)[i] >= 127) : k[i] == '\0') in http_request_parse_header_other()
1095 … return http_request_header_char_invalid(r, k[i], "invalid character in header key -> 400"); in http_request_parse_header_other()
1106 int i = hoff[2]; in http_request_parse_headers()
1108 if (ptr[i] == ' ' || ptr[i] == '\t') { in http_request_parse_headers()
1113 for (int i = 2; i < hoff[0]; ++i) { in http_request_parse_headers() local
1114 const char *k = ptr + hoff[i]; in http_request_parse_headers()
1116 char *end = ptr + hoff[i+1]; in http_request_parse_headers()
1165 for (; i+1 <= hoff[0]; ++i) { in http_request_parse_headers()
1166 end = ptr + hoff[i+1]; in http_request_parse_headers()