Lines Matching refs:ptr
85 PCRE2_SPTR ptr = *ptrptr; in find_text_end() local
87 for (; ptr < ptrend; ptr++) in find_text_end()
91 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E) in find_text_end()
94 ptr += 1; in find_text_end()
98 else if (*ptr == CHAR_RIGHT_CURLY_BRACKET) in find_text_end()
104 else if (*ptr == CHAR_COLON && !last && nestlevel == 0) goto EXIT; in find_text_end()
106 else if (*ptr == CHAR_DOLLAR_SIGN) in find_text_end()
108 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET) in find_text_end()
111 ptr += 1; in find_text_end()
115 else if (*ptr == CHAR_BACKSLASH) in find_text_end()
121 if (ptr < ptrend - 1) switch (ptr[1]) in find_text_end()
127 ptr += 1; in find_text_end()
131 ptr += 1; /* Must point after \ */ in find_text_end()
132 erc = PRIV(check_escape)(&ptr, ptrend, &ch, &errorcode, in find_text_end()
134 ptr -= 1; /* Back to last code unit of escape */ in find_text_end()
161 *ptrptr = ptr; in find_text_end()
242 PCRE2_SPTR ptr; in pcre2_substitute() local
492 ptr = replacement; in pcre2_substitute()
495 CHECKMEMCPY(ptr, rlength); in pcre2_substitute()
510 if (ptr >= repend) in pcre2_substitute()
514 ptr = ptrstack[--ptrstackptr]; in pcre2_substitute()
522 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute()
525 ptr += 2; in pcre2_substitute()
533 if (*ptr == CHAR_DOLLAR_SIGN) in pcre2_substitute()
547 if (++ptr >= repend) goto BAD; in pcre2_substitute()
548 if ((next = *ptr) == CHAR_DOLLAR_SIGN) goto LOADLITERAL; in pcre2_substitute()
557 if (++ptr >= repend) goto BAD; in pcre2_substitute()
558 next = *ptr; in pcre2_substitute()
564 if (++ptr >= repend) goto BAD; in pcre2_substitute()
565 next = *ptr; in pcre2_substitute()
572 while (++ptr < repend) in pcre2_substitute()
574 next = *ptr; in pcre2_substitute()
587 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute()
605 if (++ptr >= repend) break; in pcre2_substitute()
606 next = *ptr; in pcre2_substitute()
618 !star && ptr < repend - 2 && next == CHAR_COLON) in pcre2_substitute()
620 special = *(++ptr); in pcre2_substitute()
627 text1_start = ++ptr; in pcre2_substitute()
628 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS); in pcre2_substitute()
630 text1_end = ptr; in pcre2_substitute()
632 if (special == CHAR_PLUS && *ptr == CHAR_COLON) in pcre2_substitute()
634 text2_start = ++ptr; in pcre2_substitute()
635 rc = find_text_end(code, &ptr, repend, TRUE); in pcre2_substitute()
637 text2_end = ptr; in pcre2_substitute()
643 if (ptr >= repend || *ptr != CHAR_RIGHT_CURLY_BRACKET) in pcre2_substitute()
650 ptr++; in pcre2_substitute()
751 ptrstack[ptrstackptr++] = ptr; in pcre2_substitute()
756 ptr = text1_start; in pcre2_substitute()
761 ptr = text2_start; in pcre2_substitute()
817 *ptr == CHAR_BACKSLASH) in pcre2_substitute()
821 if (ptr < repend - 1) switch (ptr[1]) in pcre2_substitute()
825 ptr += 2; in pcre2_substitute()
831 ptr += 2; in pcre2_substitute()
836 ptr += 2; in pcre2_substitute()
842 ptr += 2; in pcre2_substitute()
849 ptr++; /* Point after \ */ in pcre2_substitute()
850 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
877 GETCHARINCTEST(ch, ptr); /* Get character value, increment pointer */ in pcre2_substitute()
1002 *blength = (PCRE2_SIZE)(ptr - replacement); in pcre2_substitute()