Lines Matching refs:p

220     u_char          *p, *end, *next, *src;  in nxt_var_compile()  local
231 p = str->start; in nxt_var_compile()
232 end = p + str->length; in nxt_var_compile()
234 while (p < end) { in nxt_var_compile()
235 p = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_compile()
236 if (nxt_slow_path(p == NULL)) { in nxt_var_compile()
266 p = str->start; in nxt_var_compile()
268 while (p < end) { in nxt_var_compile()
269 next = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_compile()
278 subs[n].length = next - p; in nxt_var_compile()
279 subs[n].position = p - str->start; in nxt_var_compile()
284 p = next; in nxt_var_compile()
294 u_char *p, *end, *next; in nxt_var_test() local
299 p = str->start; in nxt_var_test()
300 end = p + str->length; in nxt_var_test()
302 while (p < end) { in nxt_var_test()
303 next = nxt_var_next_part(p, end - p, &part, &is_var); in nxt_var_test()
307 "Invalid variable at position %uz%Z", p - str->start); in nxt_var_test()
323 p = next; in nxt_var_test()
334 u_char *p, *end, ch, c; in nxt_var_next_part() local
339 p = nxt_memchr(start, '$', length); in nxt_var_next_part()
341 if (p == start) { in nxt_var_next_part()
344 p++; in nxt_var_next_part()
346 if (p == end) { in nxt_var_next_part()
350 if (*p == '{') { in nxt_var_next_part()
353 if (end - p < 2) { in nxt_var_next_part()
357 p++; in nxt_var_next_part()
363 start = p; in nxt_var_next_part()
366 ch = *p; in nxt_var_next_part()
378 p++; in nxt_var_next_part()
380 if (p == end) { in nxt_var_next_part()
389 length = p - start; in nxt_var_next_part()
390 end = p + bracket; in nxt_var_next_part()
395 if (p != NULL) { in nxt_var_next_part()
396 length = p - start; in nxt_var_next_part()
397 end = p; in nxt_var_next_part()
552 u_char *p, *src; in nxt_var_query_finish() local
589 p = nxt_mp_nget(query->values.mem_pool, length + var->strz); in nxt_var_query_finish()
590 if (nxt_slow_path(p == NULL)) { in nxt_var_query_finish()
596 val[i].value->start = p; in nxt_var_query_finish()
607 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_query_finish()
610 p = nxt_cpymem(p, part[j]->start, part[j]->length); in nxt_var_query_finish()
616 p = nxt_cpymem(p, &src[last], var->length - last); in nxt_var_query_finish()
620 *p = '\0'; in nxt_var_query_finish()