Lines Matching defs:ptr

85 PCRE2_SPTR ptr = *ptrptr;
87 for (; ptr < ptrend; ptr++)
91 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E)
94 ptr += 1;
98 else if (*ptr == CHAR_RIGHT_CURLY_BRACKET)
104 else if (*ptr == CHAR_COLON && !last && nestlevel == 0) goto EXIT;
106 else if (*ptr == CHAR_DOLLAR_SIGN)
108 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET)
111 ptr += 1;
115 else if (*ptr == CHAR_BACKSLASH)
121 if (ptr < ptrend - 1) switch (ptr[1])
127 ptr += 1;
131 ptr += 1; /* Must point after \ */
132 erc = PRIV(check_escape)(&ptr, ptrend, &ch, &errorcode,
134 ptr -= 1; /* Back to last code unit of escape */
161 *ptrptr = ptr;
242 PCRE2_SPTR ptr;
495 ptr = replacement;
498 CHECKMEMCPY(ptr, rlength);
513 if (ptr >= repend)
517 ptr = ptrstack[--ptrstackptr];
525 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E)
528 ptr += 2;
536 if (*ptr == CHAR_DOLLAR_SIGN)
550 if (++ptr >= repend) goto BAD;
551 if ((next = *ptr) == CHAR_DOLLAR_SIGN) goto LOADLITERAL;
560 if (++ptr >= repend) goto BAD;
561 next = *ptr;
567 if (++ptr >= repend) goto BAD;
568 next = *ptr;
575 while (++ptr < repend)
577 next = *ptr;
590 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9);
608 if (++ptr >= repend) break;
609 next = *ptr;
621 !star && ptr < repend - 2 && next == CHAR_COLON)
623 special = *(++ptr);
630 text1_start = ++ptr;
631 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS);
633 text1_end = ptr;
635 if (special == CHAR_PLUS && *ptr == CHAR_COLON)
637 text2_start = ++ptr;
638 rc = find_text_end(code, &ptr, repend, TRUE);
640 text2_end = ptr;
646 if (ptr >= repend || *ptr != CHAR_RIGHT_CURLY_BRACKET)
653 ptr++;
754 ptrstack[ptrstackptr++] = ptr;
759 ptr = text1_start;
764 ptr = text2_start;
820 *ptr == CHAR_BACKSLASH)
824 if (ptr < repend - 1) switch (ptr[1])
828 ptr += 2;
834 ptr += 2;
839 ptr += 2;
845 ptr += 2;
852 ptr++; /* Point after \ */
853 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode,
880 GETCHARINCTEST(ch, ptr); /* Get character value, increment pointer */
1005 *blength = (PCRE2_SIZE)(ptr - replacement);