Lines Matching refs:ptr

1322 PCRE2_SPTR ptr = *ptrptr;  in read_number()  local
1327 if (allow_sign >= 0 && ptr < ptrend) in read_number()
1329 if (*ptr == CHAR_PLUS) in read_number()
1333 ptr++; in read_number()
1335 else if (*ptr == CHAR_MINUS) in read_number()
1338 ptr++; in read_number()
1342 if (ptr >= ptrend || !IS_DIGIT(*ptr)) return FALSE; in read_number()
1343 while (ptr < ptrend && IS_DIGIT(*ptr)) in read_number()
1345 n = n * 10 + *ptr++ - CHAR_0; in read_number()
1374 *ptrptr = ptr; in read_number()
1507 PCRE2_SPTR ptr = *ptrptr; in PRIV() local
1514 if (ptr >= ptrend) in PRIV()
1520 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */ in PRIV()
1554 if (escape == ESC_N && ptr < ptrend && *ptr == CHAR_LEFT_CURLY_BRACKET) in PRIV()
1556 PCRE2_SPTR p = ptr + 1; in PRIV()
1572 ptr = p + 1; in PRIV()
1640 if (ptr >= ptrend) break; in PRIV()
1641 if (*ptr == CHAR_LEFT_CURLY_BRACKET && in PRIV()
1644 PCRE2_SPTR hptr = ptr + 1; in PRIV()
1652 ptr = hptr; /* Show where */ in PRIV()
1659 if (hptr == ptr + 1 || /* No hex digits */ in PRIV()
1665 ptr = hptr + 1; in PRIV()
1670 if (ptrend - ptr < 4) break; /* Less than 4 chars */ in PRIV()
1671 if ((cc = XDIGIT(ptr[0])) == 0xff) break; /* Not a hex digit */ in PRIV()
1672 if ((xc = XDIGIT(ptr[1])) == 0xff) break; /* Not a hex digit */ in PRIV()
1674 if ((xc = XDIGIT(ptr[2])) == 0xff) break; /* Not a hex digit */ in PRIV()
1676 if ((xc = XDIGIT(ptr[3])) == 0xff) break; /* Not a hex digit */ in PRIV()
1678 ptr += 4; in PRIV()
1724 if (ptr >= ptrend) in PRIV()
1730 if (*ptr == CHAR_LESS_THAN_SIGN || *ptr == CHAR_APOSTROPHE) in PRIV()
1739 if (*ptr == CHAR_LEFT_CURLY_BRACKET) in PRIV()
1741 PCRE2_SPTR p = ptr + 1; in PRIV()
1753 ptr = p + 1; in PRIV()
1760 if (!read_number(&ptr, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &s, in PRIV()
1796 oldptr = ptr; in PRIV()
1797 ptr--; /* Back to the digit */ in PRIV()
1807 if (read_number(&ptr, ptrend, -1, INT_MAX/10 - 1, 0, &s, errorcodeptr) && in PRIV()
1815 ptr = oldptr; /* Put the pointer back and fall through */ in PRIV()
1835 while(i++ < 2 && ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV()
1836 c = c * 8 + *ptr++ - CHAR_0; in PRIV()
1846 if (ptr >= ptrend || *ptr++ != CHAR_LEFT_CURLY_BRACKET) in PRIV()
1848 ptr--; in PRIV()
1851 else if (ptr >= ptrend || *ptr == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1857 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV()
1859 cc = *ptr++; in PRIV()
1875 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in PRIV()
1878 else if (ptr < ptrend && *ptr++ == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1883 ptr--; in PRIV()
1889 ptr--; in PRIV()
1902 if (ptrend - ptr < 2) break; /* Less than 2 characters */ in PRIV()
1903 if ((cc = XDIGIT(ptr[0])) == 0xff) break; /* Not a hex digit */ in PRIV()
1904 if ((xc = XDIGIT(ptr[1])) == 0xff) break; /* Not a hex digit */ in PRIV()
1906 ptr += 2; in PRIV()
1918 if (ptr < ptrend && *ptr == CHAR_LEFT_CURLY_BRACKET) in PRIV()
1923 if (++ptr >= ptrend || *ptr == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1931 while (ptr < ptrend && (cc = XDIGIT(*ptr)) != 0xff) in PRIV()
1933 ptr++; in PRIV()
1948 while (ptr < ptrend && XDIGIT(*ptr) != 0xff) ptr++; in PRIV()
1951 else if (ptr < ptrend && *ptr++ == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1956 ptr--; in PRIV()
1968 ptr--; in PRIV()
1978 if (ptr >= ptrend || (cc = XDIGIT(*ptr)) == 0xff) break; /* Not a hex digit */ in PRIV()
1979 ptr++; in PRIV()
1981 if (ptr >= ptrend || (cc = XDIGIT(*ptr)) == 0xff) break; /* Not a hex digit */ in PRIV()
1982 ptr++; in PRIV()
2007 if (ptr >= ptrend) in PRIV()
2012 c = *ptr; in PRIV()
2043 ptr++; in PRIV()
2051 *ptrptr = ptr - 1; /* Point to the character at fault */ in PRIV()
2058 *ptrptr = ptr; in PRIV()
2092 PCRE2_SPTR ptr = *ptrptr; in get_ucp() local
2097 if (ptr >= cb->end_pattern) goto ERROR_RETURN; in get_ucp()
2098 c = *ptr++; in get_ucp()
2106 if (ptr >= cb->end_pattern) goto ERROR_RETURN; in get_ucp()
2108 if (*ptr == CHAR_CIRCUMFLEX_ACCENT) in get_ucp()
2111 ptr++; in get_ucp()
2116 if (ptr >= cb->end_pattern) goto ERROR_RETURN; in get_ucp()
2117 c = *ptr++; in get_ucp()
2120 if (ptr >= cb->end_pattern) goto ERROR_RETURN; in get_ucp()
2121 c = *ptr++; in get_ucp()
2143 *ptrptr = ptr; in get_ucp()
2240 *ptrptr = ptr; in get_ucp()
2293 check_posix_syntax(PCRE2_SPTR ptr, PCRE2_SPTR ptrend, PCRE2_SPTR *endptr) in check_posix_syntax() argument
2296 terminator = *ptr++; /* compiler warns about "non-constant" initializer. */ in check_posix_syntax()
2298 for (; ptrend - ptr >= 2; ptr++) in check_posix_syntax()
2300 if (*ptr == CHAR_BACKSLASH && in check_posix_syntax()
2301 (ptr[1] == CHAR_RIGHT_SQUARE_BRACKET || ptr[1] == CHAR_BACKSLASH)) in check_posix_syntax()
2302 ptr++; in check_posix_syntax()
2304 else if ((*ptr == CHAR_LEFT_SQUARE_BRACKET && ptr[1] == terminator) || in check_posix_syntax()
2305 *ptr == CHAR_RIGHT_SQUARE_BRACKET) return FALSE; in check_posix_syntax()
2307 else if (*ptr == terminator && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET) in check_posix_syntax()
2309 *endptr = ptr; in check_posix_syntax()
2334 check_posix_name(PCRE2_SPTR ptr, int len) in check_posix_name() argument
2341 PRIV(strncmp_c8)(ptr, pn, (unsigned int)len) == 0) return yield; in check_posix_name()
2383 PCRE2_SPTR ptr = *ptrptr; in read_name() local
2384 BOOL is_group = (*ptr != CHAR_ASTERISK); in read_name()
2386 if (++ptr >= ptrend) /* No characters in name */ in read_name()
2393 *nameptr = ptr; in read_name()
2394 *offsetptr = (PCRE2_SIZE)(ptr - cb->start_pattern); in read_name()
2404 GETCHAR(c, ptr); in read_name()
2417 ptr++; in read_name()
2418 FORWARDCHARTEST(ptr, ptrend); in read_name()
2419 if (ptr >= ptrend) break; in read_name()
2420 GETCHAR(c, ptr); in read_name()
2434 if (is_group && IS_DIGIT(*ptr)) in read_name()
2440 while (ptr < ptrend && MAX_255(*ptr) && (cb->ctypes[*ptr] & ctype_word) != 0) in read_name()
2442 ptr++; in read_name()
2448 if (ptr > *nameptr + MAX_NAME_SIZE) in read_name()
2453 *namelenptr = (uint32_t)(ptr - *nameptr); in read_name()
2460 if (ptr == *nameptr) in read_name()
2465 if (ptr >= ptrend || *ptr != (PCRE2_UCHAR)terminator) in read_name()
2470 ptr++; in read_name()
2473 *ptrptr = ptr; in read_name()
2477 *ptrptr = ptr; in read_name()
2504 manage_callouts(PCRE2_SPTR ptr, uint32_t **pcalloutptr, BOOL auto_callout, in manage_callouts() argument
2509 if (previous_callout != NULL) previous_callout[2] = (uint32_t)(ptr - in manage_callouts()
2524 previous_callout[1] = (uint32_t)(ptr - cb->start_pattern); in manage_callouts()
2598 static int parse_regex(PCRE2_SPTR ptr, uint32_t options, BOOL *has_lookbehind, in parse_regex() argument
2652 while (ptr < ptrend) in parse_regex()
2659 thisptr = ptr; in parse_regex()
2660 GETCHARINCTEST(c, ptr); in parse_regex()
2687 while (ptr < ptrend) in parse_regex()
2712 thisptr = ptr; in parse_regex()
2713 GETCHARINCTEST(c, ptr); in parse_regex()
2720 if (c == CHAR_BACKSLASH && ptr < ptrend && *ptr == CHAR_E) in parse_regex()
2723 ptr++; /* Skip E */ in parse_regex()
2729 ptr--; /* but an empty \Q\E sequence is OK. */ in parse_regex()
2795 if (ptr - verbnamestart - 1 > (int)MAX_MARK) in parse_regex()
2797 ptr--; in parse_regex()
2817 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, options, in parse_regex()
2852 if (c == CHAR_BACKSLASH && ptr < ptrend) in parse_regex()
2854 if (*ptr == CHAR_Q || *ptr == CHAR_E) in parse_regex()
2856 inescq = *ptr == CHAR_Q; in parse_regex()
2857 ptr++; in parse_regex()
2878 while (ptr < ptrend) in parse_regex()
2880 if (IS_NEWLINE(ptr)) /* For non-fixed-length newline cases, */ in parse_regex()
2882 ptr += cb->nllen; in parse_regex()
2885 ptr++; in parse_regex()
2887 if (utf) FORWARDCHARTEST(ptr, ptrend); in parse_regex()
2896 if (c == CHAR_LEFT_PARENTHESIS && ptrend - ptr >= 2 && in parse_regex()
2897 ptr[0] == CHAR_QUESTION_MARK && ptr[1] == CHAR_NUMBER_SIGN) in parse_regex()
2899 while (++ptr < ptrend && *ptr != CHAR_RIGHT_PARENTHESIS); in parse_regex()
2900 if (ptr >= ptrend) in parse_regex()
2905 ptr++; in parse_regex()
2914 (tempptr = ptr, in parse_regex()
2933 BOOL ok = c == CHAR_LEFT_PARENTHESIS && ptrend - ptr >= 3 && in parse_regex()
2934 (ptr[0] == CHAR_QUESTION_MARK || ptr[0] == CHAR_ASTERISK); in parse_regex()
2937 if (ptr[0] == CHAR_ASTERISK) /* New alpha assertion format, possibly */ in parse_regex()
2939 ok = MAX_255(ptr[1]) && (cb->ctypes[ptr[1]] & ctype_lcletter) != 0; in parse_regex()
2941 else switch(ptr[1]) /* Traditional symbolic format */ in parse_regex()
2952 ok = ptr[2] == CHAR_EQUALS_SIGN || ptr[2] == CHAR_EXCLAMATION_MARK; in parse_regex()
2962 ptr--; /* Adjust error offset */ in parse_regex()
3009 tempptr = ptr; in parse_regex()
3010 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, options, in parse_regex()
3017 ptr = tempptr; in parse_regex()
3018 if (ptr >= ptrend) c = CHAR_BACKSLASH; else in parse_regex()
3020 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */ in parse_regex()
3041 offset = (PCRE2_SIZE)(ptr - cb->start_pattern - 1); in parse_regex()
3156 if (!get_ucp(&ptr, &negated, &ptype, &pdata, &errorcode, cb)) in parse_regex()
3177 if (ptr >= ptrend || (*ptr != CHAR_LEFT_CURLY_BRACKET && in parse_regex()
3178 *ptr != CHAR_LESS_THAN_SIGN && *ptr != CHAR_APOSTROPHE)) in parse_regex()
3183 terminator = (*ptr == CHAR_LESS_THAN_SIGN)? in parse_regex()
3184 CHAR_GREATER_THAN_SIGN : (*ptr == CHAR_APOSTROPHE)? in parse_regex()
3191 PCRE2_SPTR p = ptr + 1; in parse_regex()
3201 ptr = p; in parse_regex()
3209 if (!read_name(&ptr, ptrend, utf, terminator, &offset, &name, &namelen, in parse_regex()
3261 if (!read_repeat_counts(&ptr, ptrend, &min_repeat, &max_repeat, in parse_regex()
3323 if (ptrend - ptr >= 6 && in parse_regex()
3324 (PRIV(strncmp_c8)(ptr, STRING_WEIRD_STARTWORD, 6) == 0 || in parse_regex()
3325 PRIV(strncmp_c8)(ptr, STRING_WEIRD_ENDWORD, 6) == 0)) in parse_regex()
3329 if (ptr[2] == CHAR_LESS_THAN_SIGN) in parse_regex()
3352 ptr += 6; in parse_regex()
3359 if (ptr < ptrend && (*ptr == CHAR_COLON || *ptr == CHAR_DOT || in parse_regex()
3360 *ptr == CHAR_EQUALS_SIGN) && in parse_regex()
3361 check_posix_syntax(ptr, ptrend, &tempptr)) in parse_regex()
3363 errorcode = (*ptr-- == CHAR_COLON)? ERR12 : ERR13; in parse_regex()
3373 while (ptr < ptrend) in parse_regex()
3375 GETCHARINCTEST(c, ptr); in parse_regex()
3378 if (ptr < ptrend && *ptr == CHAR_E) ptr++; in parse_regex()
3379 else if (ptrend - ptr >= 3 && in parse_regex()
3380 PRIV(strncmp_c8)(ptr, STR_Q STR_BACKSLASH STR_E, 3) == 0) in parse_regex()
3381 ptr += 3; in parse_regex()
3426 if (c == CHAR_BACKSLASH && ptr < ptrend && *ptr == CHAR_E) in parse_regex()
3429 ptr++; /* Skip the 'E' */ in parse_regex()
3448 ptrend - ptr >= 3 && in parse_regex()
3449 (*ptr == CHAR_COLON || *ptr == CHAR_DOT || in parse_regex()
3450 *ptr == CHAR_EQUALS_SIGN) && in parse_regex()
3451 check_posix_syntax(ptr, ptrend, &tempptr)) in parse_regex()
3467 if (*ptr != CHAR_COLON) in parse_regex()
3473 if (*(++ptr) == CHAR_CIRCUMFLEX_ACCENT) in parse_regex()
3476 ptr++; in parse_regex()
3479 posix_class = check_posix_name(ptr, (int)(tempptr - ptr)); in parse_regex()
3485 ptr = tempptr + 2; in parse_regex()
3493 if (ptr < ptrend - 1 && *ptr == CHAR_MINUS && in parse_regex()
3494 ptr[1] != CHAR_RIGHT_SQUARE_BRACKET) in parse_regex()
3586 tempptr = ptr; in parse_regex()
3587 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, options, in parse_regex()
3594 ptr = tempptr; in parse_regex()
3595 if (ptr >= ptrend) c = CHAR_BACKSLASH; else in parse_regex()
3597 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */ in parse_regex()
3624 ptr--; in parse_regex()
3703 if (!get_ucp(&ptr, &negated, &ptype, &pdata, &errorcode, cb)) in parse_regex()
3717 ptr--; in parse_regex()
3724 if (ptr < ptrend - 1 && *ptr == CHAR_MINUS && in parse_regex()
3725 ptr[1] != CHAR_RIGHT_SQUARE_BRACKET) in parse_regex()
3735 if (ptr >= ptrend) in parse_regex()
3740 GETCHARINCTEST(c, ptr); in parse_regex()
3759 if (ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3764 if (*ptr != CHAR_QUESTION_MARK) in parse_regex()
3771 if (*ptr != CHAR_ASTERISK) in parse_regex()
3790 else if (ptrend - ptr <= 1 || (c = ptr[1]) == CHAR_RIGHT_PARENTHESIS) in parse_regex()
3804 if (!read_name(&ptr, ptrend, utf, 0, &offset, &name, &namelen, in parse_regex()
3806 if (ptr >= ptrend || *ptr != CHAR_COLON) in parse_regex()
3865 ptr--; in parse_regex()
3878 ptr++; in parse_regex()
3906 if (!read_name(&ptr, ptrend, utf, 0, &offset, &name, &namelen, in parse_regex()
3908 if (ptr >= ptrend || (*ptr != CHAR_COLON && in parse_regex()
3909 *ptr != CHAR_RIGHT_PARENTHESIS)) in parse_regex()
3933 if (*ptr == CHAR_COLON && ptr + 1 < ptrend && in parse_regex()
3934 ptr[1] == CHAR_RIGHT_PARENTHESIS) in parse_regex()
3935 ptr++; /* Advance to the closing parens */ in parse_regex()
3939 if (verbs[i].has_arg > 0 && *ptr != CHAR_COLON) in parse_regex()
3960 if (*ptr++ == CHAR_COLON) /* Skip past : or ) */ in parse_regex()
3982 verbnamestart = ptr; in parse_regex()
4002 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
4004 switch(*ptr) in parse_regex()
4007 if (*ptr == CHAR_MINUS && ptrend - ptr > 1 && IS_DIGIT(ptr[1])) in parse_regex()
4027 if (*ptr == CHAR_VERTICAL_LINE) in parse_regex()
4034 ptr++; in parse_regex()
4051 if (ptr < ptrend && *ptr == CHAR_CIRCUMFLEX_ACCENT) in parse_regex()
4056 ptr++; in parse_regex()
4059 while (ptr < ptrend && *ptr != CHAR_RIGHT_PARENTHESIS && in parse_regex()
4060 *ptr != CHAR_COLON) in parse_regex()
4062 switch (*ptr++) in parse_regex()
4068 ptr--; /* Correct the offset */ in parse_regex()
4090 if (ptr < ptrend && *ptr == CHAR_x) in parse_regex()
4093 ptr++; in parse_regex()
4099 ptr--; /* Correct the offset */ in parse_regex()
4121 if (ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
4122 if (*ptr++ == CHAR_RIGHT_PARENTHESIS) in parse_regex()
4145 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
4149 if (*ptr == CHAR_LESS_THAN_SIGN) in parse_regex()
4158 if (*ptr == CHAR_GREATER_THAN_SIGN) goto RECURSE_BY_NAME; in parse_regex()
4163 if (*ptr != CHAR_EQUALS_SIGN) in parse_regex()
4168 if (!read_name(&ptr, ptrend, utf, CHAR_RIGHT_PARENTHESIS, &offset, &name, in parse_regex()
4181 ptr++; in parse_regex()
4182 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4193 if (ptrend - ptr < 2 || !IS_DIGIT(ptr[1])) in parse_regex()
4203 if (!read_number(&ptr, ptrend, in parse_regex()
4204 (IS_DIGIT(*ptr))? -1:(int)(cb->bracount), /* + and - are relative */ in parse_regex()
4212 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4217 offset = (PCRE2_SIZE)(ptr - cb->start_pattern); in parse_regex()
4218 ptr++; in parse_regex()
4228 if (!read_name(&ptr, ptrend, utf, CHAR_RIGHT_PARENTHESIS, &offset, &name, in parse_regex()
4239 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
4270 if (*ptr != CHAR_RIGHT_PARENTHESIS && !IS_DIGIT(*ptr)) in parse_regex()
4273 PCRE2_SPTR startptr = ptr; in parse_regex()
4278 if (*ptr == PRIV(callout_start_delims)[i]) in parse_regex()
4295 if (++ptr >= ptrend) in parse_regex()
4298 ptr = startptr; /* To give a more useful message */ in parse_regex()
4301 if (*ptr == delimiter && (++ptr >= ptrend || *ptr != delimiter)) in parse_regex()
4305 calloutlength = (PCRE2_SIZE)(ptr - startptr); in parse_regex()
4324 while (ptr < ptrend && IS_DIGIT(*ptr)) in parse_regex()
4326 n = n * 10 + *ptr++ - CHAR_0; in parse_regex()
4338 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4343 ptr++; in parse_regex()
4348 previous_callout[1] = (uint32_t)(ptr - cb->start_pattern); in parse_regex()
4373 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
4384 if (*ptr == CHAR_QUESTION_MARK || *ptr == CHAR_ASTERISK) in parse_regex()
4387 ptr--; /* Pull pointer back to the opening parenthesis. */ in parse_regex()
4394 if (read_number(&ptr, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &i, in parse_regex()
4403 offset = (PCRE2_SIZE)(ptr - cb->start_pattern - 2); in parse_regex()
4411 else if (ptrend - ptr >= 10 && in parse_regex()
4412 PRIV(strncmp_c8)(ptr, STRING_VERSION, 7) == 0 && in parse_regex()
4413 ptr[7] != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4419 ptr += 7; in parse_regex()
4420 if (*ptr == CHAR_GREATER_THAN_SIGN) in parse_regex()
4423 ptr++; in parse_regex()
4429 if (*ptr != CHAR_EQUALS_SIGN || (ptr++, !IS_DIGIT(*ptr))) in parse_regex()
4432 if (!read_number(&ptr, ptrend, -1, 1000, ERR79, &major, &errorcode)) in parse_regex()
4435 if (ptr >= ptrend) goto BAD_VERSION_CONDITION; in parse_regex()
4436 if (*ptr == CHAR_DOT) in parse_regex()
4438 if (++ptr >= ptrend || !IS_DIGIT(*ptr)) goto BAD_VERSION_CONDITION; in parse_regex()
4439 minor = (*ptr++ - CHAR_0) * 10; in parse_regex()
4440 if (ptr >= ptrend) goto BAD_VERSION_CONDITION; in parse_regex()
4441 if (IS_DIGIT(*ptr)) minor += *ptr++ - CHAR_0; in parse_regex()
4442 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4462 if (*ptr == CHAR_R && ptrend - ptr > 1 && ptr[1] == CHAR_AMPERSAND) in parse_regex()
4466 ptr++; in parse_regex()
4468 else if (*ptr == CHAR_LESS_THAN_SIGN) in parse_regex()
4470 else if (*ptr == CHAR_APOSTROPHE) in parse_regex()
4475 ptr--; /* Point to char before name */ in parse_regex()
4477 if (!read_name(&ptr, ptrend, utf, terminator, &offset, &name, &namelen, in parse_regex()
4485 ptr--; /* Back to closing parens */ in parse_regex()
4503 ptr--; /* Back to closing parens */ in parse_regex()
4519 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4524 ptr++; in parse_regex()
4534 ptr++; in parse_regex()
4543 ptr++; in parse_regex()
4549 ptr++; in parse_regex()
4555 ptr++; in parse_regex()
4565 if (ptrend - ptr <= 1 || in parse_regex()
4566 (ptr[1] != CHAR_EQUALS_SIGN && in parse_regex()
4567 ptr[1] != CHAR_EXCLAMATION_MARK && in parse_regex()
4568 ptr[1] != CHAR_ASTERISK)) in parse_regex()
4573 *parsed_pattern++ = (ptr[1] == CHAR_EQUALS_SIGN)? in parse_regex()
4574 META_LOOKBEHIND : (ptr[1] == CHAR_EXCLAMATION_MARK)? in parse_regex()
4579 offset = (PCRE2_SIZE)(ptr - cb->start_pattern - 2); in parse_regex()
4581 ptr += 2; in parse_regex()
4620 if (!read_name(&ptr, ptrend, utf, terminator, &offset, &name, &namelen, in parse_regex()
4766 if (inverbname && ptr >= ptrend) in parse_regex()
4775 parsed_pattern = manage_callouts(ptr, &previous_callout, auto_callout, in parse_regex()
4810 cb->erroroffset = (PCRE2_SIZE)(ptr - cb->start_pattern); in parse_regex()
4816 ptr--; in parse_regex()
9775 PCRE2_SPTR ptr; /* Current pointer in pattern */ in pcre2_compile() local
9938 ptr = pattern; in pcre2_compile()
9944 ptr[skipatstart] == CHAR_LEFT_PARENTHESIS && in pcre2_compile()
9945 ptr[skipatstart+1] == CHAR_ASTERISK) in pcre2_compile()
9953 PRIV(strncmp_c8)(ptr + skipatstart + 2, (char *)(p->name), in pcre2_compile()
9982 if (!IS_DIGIT(ptr[pp])) in pcre2_compile()
9985 ptr += pp; in pcre2_compile()
9988 while (IS_DIGIT(ptr[pp])) in pcre2_compile()
9991 c = c*10 + (ptr[pp++] - CHAR_0); in pcre2_compile()
9993 if (ptr[pp++] != CHAR_RIGHT_PARENTHESIS) in pcre2_compile()
9996 ptr += pp; in pcre2_compile()
10014 ptr += skipatstart; in pcre2_compile()
10122 for (p = ptr; p < cb.end_pattern; p++) if (*p >= META_END) big32count++; in pcre2_compile()
10156 errorcode = parse_regex(ptr, cb.external_options, &has_lookbehind, &cb); in pcre2_compile()
10611 ptr = pattern + cb.erroroffset; in pcre2_compile()
10614 *erroroffset = ptr - pattern; in pcre2_compile()