Lines Matching refs:ptrend
1236 read_number(PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, int32_t allow_sign, in read_number() argument
1246 if (allow_sign >= 0 && ptr < ptrend) in read_number()
1261 if (ptr >= ptrend || !IS_DIGIT(*ptr)) return FALSE; in read_number()
1262 while (ptr < ptrend && IS_DIGIT(*ptr)) in read_number()
1322 read_repeat_counts(PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, uint32_t *minp, in read_repeat_counts() argument
1333 if (!read_number(&p, ptrend, -1, MAX_REPEAT_COUNT, ERR5, &min, errorcodeptr)) in read_repeat_counts()
1336 if (p >= ptrend) goto EXIT; in read_repeat_counts()
1346 if (*p++ != CHAR_COMMA || p >= ptrend) goto EXIT; in read_repeat_counts()
1349 if (!read_number(&p, ptrend, -1, MAX_REPEAT_COUNT, ERR5, &max, in read_repeat_counts()
1350 errorcodeptr) || p >= ptrend || *p != CHAR_RIGHT_CURLY_BRACKET) in read_repeat_counts()
1410 PRIV(check_escape)(PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, uint32_t *chptr, in PRIV()
1421 if (ptr >= ptrend) in PRIV()
1450 if (escape == ESC_N && ptr < ptrend && *ptr == CHAR_LEFT_CURLY_BRACKET) in PRIV()
1461 if (ptrend - p > 1 && *p == CHAR_U && p[1] == CHAR_PLUS) in PRIV()
1481 if (!read_repeat_counts(&p, ptrend, NULL, NULL, errorcodeptr) && in PRIV()
1527 if (ptrend - ptr < 4) break; /* Less than 4 chars */ in PRIV()
1579 if (ptr >= ptrend) in PRIV()
1597 if (!read_number(&p, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &s, in PRIV()
1603 if (p >= ptrend || *p != CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1615 if (!read_number(&ptr, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &s, in PRIV()
1653 if (!read_number(&ptr, ptrend, -1, INT_MAX/10 - 1, ERR61, &s, in PRIV()
1686 while(i++ < 2 && ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV()
1697 if (ptr >= ptrend || *ptr++ != CHAR_LEFT_CURLY_BRACKET) in PRIV()
1702 else if (ptr >= ptrend || *ptr == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1708 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV()
1726 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in PRIV()
1729 else if (ptr < ptrend && *ptr++ == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1753 if (ptrend - ptr < 2) break; /* Less than 2 characters */ in PRIV()
1769 if (ptr < ptrend && *ptr == CHAR_LEFT_CURLY_BRACKET) in PRIV()
1774 if (++ptr >= ptrend || *ptr == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1782 while (ptr < ptrend && (cc = XDIGIT(*ptr)) != 0xff) in PRIV()
1799 while (ptr < ptrend && XDIGIT(*ptr) != 0xff) ptr++; in PRIV()
1802 else if (ptr < ptrend && *ptr++ == CHAR_RIGHT_CURLY_BRACKET) in PRIV()
1829 if (ptr >= ptrend || (cc = XDIGIT(*ptr)) == 0xff) break; /* Not a hex digit */ in PRIV()
1832 if (ptr >= ptrend || (cc = XDIGIT(*ptr)) == 0xff) break; /* Not a hex digit */ in PRIV()
1858 if (ptr >= ptrend) in PRIV()
2061 check_posix_syntax(PCRE2_SPTR ptr, PCRE2_SPTR ptrend, PCRE2_SPTR *endptr) in check_posix_syntax() argument
2066 for (; ptrend - ptr >= 2; ptr++) in check_posix_syntax()
2145 read_name(PCRE2_SPTR *ptrptr, PCRE2_SPTR ptrend, uint32_t terminator, in read_name() argument
2154 if (++ptr >= ptrend) in read_name()
2170 while (ptr < ptrend && MAX_255(*ptr) && (cb->ctypes[*ptr] & ctype) != 0) in read_name()
2191 if (ptr >= ptrend || *ptr != (PCRE2_UCHAR)terminator) in read_name()
2351 PCRE2_SPTR ptrend = cb->end_pattern; in parse_regex() local
2375 while (ptr < ptrend) in parse_regex()
2410 while (ptr < ptrend) in parse_regex()
2443 if (c == CHAR_BACKSLASH && ptr < ptrend && *ptr == CHAR_E) in parse_regex()
2528 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, options, in parse_regex()
2560 if (c == CHAR_BACKSLASH && ptr < ptrend) in parse_regex()
2586 while (ptr < ptrend) in parse_regex()
2595 if (utf) FORWARDCHARTEST(ptr, ptrend); in parse_regex()
2604 if (c == CHAR_LEFT_PARENTHESIS && ptrend - ptr >= 2 && in parse_regex()
2607 while (++ptr < ptrend && *ptr != CHAR_RIGHT_PARENTHESIS); in parse_regex()
2608 if (ptr >= ptrend) in parse_regex()
2623 !read_repeat_counts(&tempptr, ptrend, NULL, NULL, &errorcode)))) in parse_regex()
2641 BOOL ok = c == CHAR_LEFT_PARENTHESIS && ptrend - ptr >= 3 && in parse_regex()
2711 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, options, in parse_regex()
2719 if (ptr >= ptrend) c = CHAR_BACKSLASH; else in parse_regex()
2878 if (ptr >= ptrend || (*ptr != CHAR_LEFT_CURLY_BRACKET && in parse_regex()
2894 if (read_number(&p, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &i, in parse_regex()
2897 if (p >= ptrend || *p != terminator) in parse_regex()
2910 if (!read_name(&ptr, ptrend, terminator, &offset, &name, &namelen, in parse_regex()
2962 if (!read_repeat_counts(&ptr, ptrend, &min_repeat, &max_repeat, in parse_regex()
3009 if (ptrend - ptr >= 6 && in parse_regex()
3045 if (ptr < ptrend && (*ptr == CHAR_COLON || *ptr == CHAR_DOT || in parse_regex()
3047 check_posix_syntax(ptr, ptrend, &tempptr)) in parse_regex()
3059 while (ptr < ptrend) in parse_regex()
3064 if (ptr < ptrend && *ptr == CHAR_E) ptr++; in parse_regex()
3065 else if (ptrend - ptr >= 3 && in parse_regex()
3112 if (c == CHAR_BACKSLASH && ptr < ptrend && *ptr == CHAR_E) in parse_regex()
3134 ptrend - ptr >= 3 && in parse_regex()
3137 check_posix_syntax(ptr, ptrend, &tempptr)) in parse_regex()
3179 if (ptr < ptrend - 1 && *ptr == CHAR_MINUS && in parse_regex()
3273 escape = PRIV(check_escape)(&ptr, ptrend, &c, &errorcode, in parse_regex()
3281 if (ptr >= ptrend) c = CHAR_BACKSLASH; else in parse_regex()
3408 if (ptr < ptrend - 1 && *ptr == CHAR_MINUS && in parse_regex()
3419 if (ptr >= ptrend) in parse_regex()
3441 if (ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3469 else if (ptrend - ptr > 1 && ptr[1] != CHAR_RIGHT_PARENTHESIS) in parse_regex()
3472 if (!read_name(&ptr, ptrend, 0, &offset, &name, &namelen, &errorcode, in parse_regex()
3474 if (ptr >= ptrend || (*ptr != CHAR_COLON && in parse_regex()
3499 if (*ptr == CHAR_COLON && ptr + 1 < ptrend && in parse_regex()
3562 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3567 if (*ptr == CHAR_MINUS && ptrend - ptr > 1 && IS_DIGIT(ptr[1])) in parse_regex()
3611 if (ptr < ptrend && *ptr == CHAR_CIRCUMFLEX_ACCENT) in parse_regex()
3619 while (ptr < ptrend && *ptr != CHAR_RIGHT_PARENTHESIS && in parse_regex()
3650 if (ptr < ptrend && *ptr == CHAR_x) in parse_regex()
3681 if (ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3705 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3728 if (!read_name(&ptr, ptrend, CHAR_RIGHT_PARENTHESIS, &offset, &name, in parse_regex()
3742 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
3753 if (ptrend - ptr < 2 || !IS_DIGIT(ptr[1])) in parse_regex()
3763 if (!read_number(&ptr, ptrend, in parse_regex()
3772 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
3788 if (!read_name(&ptr, ptrend, CHAR_RIGHT_PARENTHESIS, &offset, &name, in parse_regex()
3799 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3855 if (++ptr >= ptrend) in parse_regex()
3861 if (*ptr == delimiter && (++ptr >= ptrend || *ptr != delimiter)) in parse_regex()
3884 while (ptr < ptrend && IS_DIGIT(*ptr)) in parse_regex()
3898 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
3933 if (++ptr >= ptrend) goto UNCLOSED_PARENTHESIS; in parse_regex()
3953 if (read_number(&ptr, ptrend, cb->bracount, MAX_GROUP_NUMBER, ERR61, &i, in parse_regex()
3970 else if (ptrend - ptr >= 10 && in parse_regex()
3991 if (!read_number(&ptr, ptrend, -1, 1000, ERR79, &major, &errorcode)) in parse_regex()
3994 if (ptr >= ptrend) goto BAD_VERSION_CONDITION; in parse_regex()
3997 if (++ptr >= ptrend || !IS_DIGIT(*ptr)) goto BAD_VERSION_CONDITION; in parse_regex()
4000 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4020 if (*ptr == CHAR_R && ptrend - ptr > 1 && ptr[1] == CHAR_AMPERSAND) in parse_regex()
4035 if (!read_name(&ptr, ptrend, terminator, &offset, &name, &namelen, in parse_regex()
4077 if (ptr >= ptrend || *ptr != CHAR_RIGHT_PARENTHESIS) in parse_regex()
4114 if (ptrend - ptr <= 1 || in parse_regex()
4164 if (!read_name(&ptr, ptrend, terminator, &offset, &name, &namelen, in parse_regex()
4299 if (inverbname && ptr >= ptrend) in parse_regex()