Lines Matching refs:position
71 static zend_always_inline size_t collect_a_sequence_of_code_points(const char *position, const char… in collect_a_sequence_of_code_points() argument
73 const char *start = position; in collect_a_sequence_of_code_points()
74 while (position < end && condition(*position)) { in collect_a_sequence_of_code_points()
75 position++; in collect_a_sequence_of_code_points()
77 return position - start; in collect_a_sequence_of_code_points()
81 static zend_string *collect_an_http_quoted_string_with_extract_value(const char *position, const ch… in collect_an_http_quoted_string_with_extract_value() argument
86 zend_string *value = zend_string_alloc(end - position /* can't be longer than this */, false); in collect_an_http_quoted_string_with_extract_value()
90 ZEND_ASSERT(*position == '"'); in collect_an_http_quoted_string_with_extract_value()
93 position++; in collect_an_http_quoted_string_with_extract_value()
98 size_t length = collect_a_sequence_of_code_points(position, end, is_not_quote_or_backslash); in collect_an_http_quoted_string_with_extract_value()
99 memcpy(ZSTR_VAL(value) + ZSTR_LEN(value), position, length); in collect_an_http_quoted_string_with_extract_value()
101 position += length; in collect_an_http_quoted_string_with_extract_value()
104 if (position >= end) { in collect_an_http_quoted_string_with_extract_value()
109 char quote_or_backslash = *position; in collect_an_http_quoted_string_with_extract_value()
112 position++; in collect_an_http_quoted_string_with_extract_value()
117 if (position >= end) { in collect_an_http_quoted_string_with_extract_value()
124 ZSTR_VAL(value)[ZSTR_LEN(value)] = *position; in collect_an_http_quoted_string_with_extract_value()
128 position++; in collect_an_http_quoted_string_with_extract_value()
138 *position_out = position; in collect_an_http_quoted_string_with_extract_value()