Lines Matching refs:start
73 const char *start = position; in collect_a_sequence_of_code_points() local
77 return position - start; in collect_a_sequence_of_code_points()
163 static bool is_empty_string_or_does_not_solely_contain_http_token_code_points(const char *start, si… in is_empty_string_or_does_not_solely_contain_http_token_code_points() argument
169 if (!is_http_token(*start)) { in is_empty_string_or_does_not_solely_contain_http_token_code_points()
173 start++; in is_empty_string_or_does_not_solely_contain_http_token_code_points()
178 static bool solely_contains_http_quoted_string_tokens(const char *start, size_t len) in solely_contains_http_quoted_string_tokens() argument
181 if (!is_http_quoted_string_token(*start)) { in solely_contains_http_quoted_string_tokens()
185 start++; in solely_contains_http_quoted_string_tokens()
192 PHP_LIBXML_API zend_string *php_libxml_sniff_charset_from_string(const char *start, const char *end) in php_libxml_sniff_charset_from_string() argument
195 while (start < end && is_http_whitespace(*start)) { in php_libxml_sniff_charset_from_string()
196 start++; in php_libxml_sniff_charset_from_string()
198 while (start < end && is_http_whitespace(*(end - 1))) { in php_libxml_sniff_charset_from_string()
205 size_t type_length = collect_a_sequence_of_code_points(start, end, is_not_slash); in php_libxml_sniff_charset_from_string()
208 if (is_empty_string_or_does_not_solely_contain_http_token_code_points(start, type_length)) { in php_libxml_sniff_charset_from_string()
211 start += type_length; in php_libxml_sniff_charset_from_string()
214 if (start >= end) { in php_libxml_sniff_charset_from_string()
219 start++; in php_libxml_sniff_charset_from_string()
222 size_t subtype_length = collect_a_sequence_of_code_points(start, end, is_not_semicolon); in php_libxml_sniff_charset_from_string()
227 if (is_empty_string_or_does_not_solely_contain_http_token_code_points(start, subtype_length)) { in php_libxml_sniff_charset_from_string()
230 start += subtype_length; in php_libxml_sniff_charset_from_string()
235 while (start < end) { in php_libxml_sniff_charset_from_string()
237 start++; in php_libxml_sniff_charset_from_string()
240 size_t whitespace_length = collect_a_sequence_of_code_points(start, end, is_http_whitespace); in php_libxml_sniff_charset_from_string()
241 start += whitespace_length; in php_libxml_sniff_charset_from_string()
244 …size_t parameter_name_length = collect_a_sequence_of_code_points(start, end, is_not_semicolon_or_e… in php_libxml_sniff_charset_from_string()
245 const char *parameter_name = start; in php_libxml_sniff_charset_from_string()
246 start += parameter_name_length; in php_libxml_sniff_charset_from_string()
251 if (start < end) { in php_libxml_sniff_charset_from_string()
252 if (*start == ';') { in php_libxml_sniff_charset_from_string()
255 start++; in php_libxml_sniff_charset_from_string()
265 if (*start == '"') { in php_libxml_sniff_charset_from_string()
267 parameter_value = collect_an_http_quoted_string_with_extract_value(start, end, &start); in php_libxml_sniff_charset_from_string()
270 start += collect_a_sequence_of_code_points(start, end, is_not_semicolon); in php_libxml_sniff_charset_from_string()
274 size_t parameter_value_length = collect_a_sequence_of_code_points(start, end, is_not_semicolon); in php_libxml_sniff_charset_from_string()
275 parameter_value = zend_string_init(start, parameter_value_length, false); in php_libxml_sniff_charset_from_string()
276 start += parameter_name_length; in php_libxml_sniff_charset_from_string()