Home | History | Annotate | Download | only in src

Lines Matching refs:ptrend

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