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
495 ptr = replacement; in pcre2_substitute()
498 CHECKMEMCPY(ptr, rlength); in pcre2_substitute()
513 if (ptr >= repend) in pcre2_substitute()
517 ptr = ptrstack[--ptrstackptr]; in pcre2_substitute()
525 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute()
528 ptr += 2; in pcre2_substitute()
536 if (*ptr == CHAR_DOLLAR_SIGN) in pcre2_substitute()
550 if (++ptr >= repend) goto BAD; in pcre2_substitute()
551 if ((next = *ptr) == CHAR_DOLLAR_SIGN) goto LOADLITERAL; in pcre2_substitute()
560 if (++ptr >= repend) goto BAD; in pcre2_substitute()
561 next = *ptr; in pcre2_substitute()
567 if (++ptr >= repend) goto BAD; in pcre2_substitute()
568 next = *ptr; in pcre2_substitute()
575 while (++ptr < repend) in pcre2_substitute()
577 next = *ptr; in pcre2_substitute()
590 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute()
608 if (++ptr >= repend) break; in pcre2_substitute()
609 next = *ptr; in pcre2_substitute()
621 !star && ptr < repend - 2 && next == CHAR_COLON) in pcre2_substitute()
623 special = *(++ptr); in pcre2_substitute()
630 text1_start = ++ptr; in pcre2_substitute()
631 rc = find_text_end(code, &ptr, repend, special == CHAR_MINUS); in pcre2_substitute()
633 text1_end = ptr; in pcre2_substitute()
635 if (special == CHAR_PLUS && *ptr == CHAR_COLON) in pcre2_substitute()
637 text2_start = ++ptr; in pcre2_substitute()
638 rc = find_text_end(code, &ptr, repend, TRUE); in pcre2_substitute()
640 text2_end = ptr; in pcre2_substitute()
646 if (ptr >= repend || *ptr != CHAR_RIGHT_CURLY_BRACKET) in pcre2_substitute()
653 ptr++; in pcre2_substitute()
754 ptrstack[ptrstackptr++] = ptr; in pcre2_substitute()
759 ptr = text1_start; in pcre2_substitute()
764 ptr = text2_start; in pcre2_substitute()
820 *ptr == CHAR_BACKSLASH) in pcre2_substitute()
824 if (ptr < repend - 1) switch (ptr[1]) in pcre2_substitute()
828 ptr += 2; in pcre2_substitute()
834 ptr += 2; in pcre2_substitute()
839 ptr += 2; in pcre2_substitute()
845 ptr += 2; in pcre2_substitute()
852 ptr++; /* Point after \ */ in pcre2_substitute()
853 rc = PRIV(check_escape)(&ptr, repend, &ch, &errorcode, in pcre2_substitute()
880 GETCHARINCTEST(ch, ptr); /* Get character value, increment pointer */ in pcre2_substitute()
1005 *blength = (PCRE2_SIZE)(ptr - replacement); in pcre2_substitute()