Lines Matching refs:p

117     u_char           *p, *end;  in nxt_var_decl_get()  local
129 p = name->start; in nxt_var_decl_get()
130 end = p + name->length; in nxt_var_decl_get()
132 while (p < end) { in nxt_var_decl_get()
133 if (*p++ == '_') { in nxt_var_decl_get()
138 if (p == end) { in nxt_var_decl_get()
143 str.length = p - 1 - name->start; in nxt_var_decl_get()
148 str.start = p; in nxt_var_decl_get()
149 str.length = end - p; in nxt_var_decl_get()
332 u_char *p, *end, *next, *src; in nxt_var_compile() local
343 p = str->start; in nxt_var_compile()
344 end = p + str->length; in nxt_var_compile()
346 while (p < end) { in nxt_var_compile()
347 p = nxt_var_next_part(p, end, &part); in nxt_var_compile()
348 if (nxt_slow_path(p == NULL)) { in nxt_var_compile()
373 p = str->start; in nxt_var_compile()
375 while (p < end) { in nxt_var_compile()
376 next = nxt_var_next_part(p, end, &part); in nxt_var_compile()
385 subs[n].length = next - p; in nxt_var_compile()
386 subs[n].position = p - str->start; in nxt_var_compile()
391 p = next; in nxt_var_compile()
401 u_char *p, *end, *next; in nxt_var_test() local
405 p = str->start; in nxt_var_test()
406 end = p + str->length; in nxt_var_test()
408 while (p < end) { in nxt_var_test()
409 next = nxt_var_next_part(p, end, &part); in nxt_var_test()
413 "Invalid variable at position %uz%Z", p - str->start); in nxt_var_test()
429 p = next; in nxt_var_test()
440 u_char *p, ch, c; in nxt_var_next_part() local
443 p = memchr(start, '$', end - start); in nxt_var_next_part()
445 if (p == start) { in nxt_var_next_part()
446 p++; in nxt_var_next_part()
448 if (p == end) { in nxt_var_next_part()
452 if (*p == '{') { in nxt_var_next_part()
455 if (end - p < 2) { in nxt_var_next_part()
459 p++; in nxt_var_next_part()
466 start = p; in nxt_var_next_part()
468 while (p < end) { in nxt_var_next_part()
469 ch = *p; in nxt_var_next_part()
474 p++; in nxt_var_next_part()
480 p++; in nxt_var_next_part()
495 if (p == NULL) { in nxt_var_next_part()
496 p = end; in nxt_var_next_part()
502 return p; in nxt_var_next_part()
510 u_char *p, *src; in nxt_var_interpreter() local
544 p = nxt_mp_nget(cache->pool, length); in nxt_var_interpreter()
545 if (nxt_slow_path(p == NULL)) { in nxt_var_interpreter()
550 str->start = p; in nxt_var_interpreter()
561 p = nxt_cpymem(p, &src[last], next - last); in nxt_var_interpreter()
564 p = nxt_cpymem(p, part[i]->start, part[i]->length); in nxt_var_interpreter()
567 *p++ = '-'; in nxt_var_interpreter()
574 p = nxt_cpymem(p, &src[last], var->length - last); in nxt_var_interpreter()