Lines Matching refs:p
55 DUK_LOCAL_DECL void duk__emit_cstring(duk_json_enc_ctx *js_ctx, const char *p);
207 (long) (js_ctx->p - js_ctx->p_start)); in duk__dec_syntax_error()
211 const duk_uint8_t *p; in duk__dec_eat_white() local
214 p = js_ctx->p; in duk__dec_eat_white()
216 DUK_ASSERT(p <= js_ctx->p_end); in duk__dec_eat_white()
217 t = *p; in duk__dec_eat_white()
235 p++; in duk__dec_eat_white()
237 js_ctx->p = p; in duk__dec_eat_white()
241 DUK_ASSERT(js_ctx->p <= js_ctx->p_end); in duk__dec_peek()
242 return *js_ctx->p; in duk__dec_peek()
246 DUK_ASSERT(js_ctx->p <= js_ctx->p_end); in duk__dec_get()
247 return *js_ctx->p++; in duk__dec_get()
291 const duk_uint8_t *p; in duk__dec_req_stridx() local
304 p = (const duk_uint8_t *) DUK_HSTRING_GET_DATA(h) + 1; in duk__dec_req_stridx()
305 DUK_ASSERT(*(js_ctx->p - 1) == *(p - 1)); /* first character has been matched */ in duk__dec_req_stridx()
308 x = *p; in duk__dec_req_stridx()
317 p++; in duk__dec_req_stridx()
398 const duk_uint8_t *p; in duk__dec_string() local
411 p = js_ctx->p; /* temp copy, write back for next loop */ in duk__dec_string()
414 js_ctx->p = p; in duk__dec_string()
422 b = *p++; in duk__dec_string()
428 js_ctx->p = p; in duk__dec_string()
435 js_ctx->p = p; in duk__dec_string()
441 js_ctx->p = p; in duk__dec_string()
489 const duk_uint8_t *p; in duk__dec_plain_string() local
494 js_ctx->p--; /* safe */ in duk__dec_plain_string()
495 p = js_ctx->p; in duk__dec_plain_string()
507 x = *p; in duk__dec_plain_string()
518 p++; in duk__dec_plain_string()
521 duk_push_lstring(ctx, (const char *) js_ctx->p, (duk_size_t) (p - js_ctx->p)); in duk__dec_plain_string()
522 js_ctx->p = p; in duk__dec_plain_string()
532 const duk_uint8_t *p; in duk__dec_pointer() local
538 p = js_ctx->p; in duk__dec_pointer()
541 x = *p; in duk__dec_pointer()
553 p++; in duk__dec_pointer()
568 (void) DUK_SSCANF((const char *) js_ctx->p, DUK_STR_FMT_PTR, &voidptr); in duk__dec_pointer()
570 js_ctx->p = p + 1; /* skip ')' */ in duk__dec_pointer()
586 const duk_uint8_t *p; in duk__dec_buffer() local
593 p = js_ctx->p; in duk__dec_buffer()
608 x = *p; in duk__dec_buffer()
619 p++; in duk__dec_buffer()
622 src_len = (duk_size_t) (p - js_ctx->p); in duk__dec_buffer()
625 DUK_MEMCPY((void *) buf, (const void *) js_ctx->p, src_len); in duk__dec_buffer()
628 js_ctx->p = p + 1; /* skip '|' */ in duk__dec_buffer()
644 const duk_uint8_t *p; in duk__dec_number() local
650 p_start = js_ctx->p; in duk__dec_number()
656 p = js_ctx->p; in duk__dec_number()
658 x = *p; in duk__dec_number()
661 (const void *) p_start, (const void *) p, in duk__dec_number()
682 p++; /* safe, because matched (NUL causes a break) */ in duk__dec_number()
684 js_ctx->p = p; in duk__dec_number()
686 DUK_ASSERT(js_ctx->p > p_start); in duk__dec_number()
687 duk_push_lstring(ctx, (const char *) p_start, (duk_size_t) (p - p_start)); in duk__dec_number()
844 js_ctx->p--; /* backtrack (safe) */ in duk__dec_array()
901 js_ctx->p--; /* safe */
1048 #define DUK__EMIT_CSTR(js_ctx,p) duk__emit_cstring((js_ctx), (p)) argument
1147 const duk_int8_t *p, *p_start, *p_end; /* Note: intentionally signed. */ local
1164 p = p_start;
1166 if (p == p_end) {
1170 cp = (duk_codepoint_t) (*p++);
1174 while (p < p_end) {
1175 cp = (duk_codepoint_t) (*p++);
1199 const duk_uint8_t *p, *p_start, *p_end, *p_now, *p_tmp; local
1208 p = p_start;
1216 while (p < p_end) {
1219 left = (duk_size_t) (p_end - p);
1231 p_now = p + now;
1233 while (p < p_now) {
1237 b = duk__json_quotestr_lookup[*p++];
1245 cp = (duk_ucodepoint_t) (*(p - 1));
1254 p--;
1258 cp = *p;
1262 p++;
1305 p_tmp = p;
1306 if (!duk_unicode_decode_xutf8(thr, &p, p_start, p_end, &cp)) {
1309 p = p_tmp + 1;
1485 const duk_uint8_t *p; local
1490 p = src;
1493 while (p != p_end) {
1494 x = *p++;
1636 duk_uint8_t *p; local
1657 p = DUK_BW_ENSURE_GETPTR(js_ctx->thr, &js_ctx->bw, need_bytes);
1658 p_start = p;
1660 DUK_MEMCPY((void *) p, (const void *) gap_data, (size_t) gap_len);
1661 p += gap_len;
1667 DUK_MEMCPY((void *) p, (const void *) p_start, (size_t) avail_bytes);
1668 p += avail_bytes;
1674 DUK_MEMCPY((void *) p, (const void *) p_start, (size_t) need_bytes);
1675 p += need_bytes;
1678 DUK_BW_SET_PTR(js_ctx->thr, &js_ctx->bw, p);
2735 js_ctx->p = js_ctx->p_start;
2746 if (js_ctx->p != js_ctx->p_end) {