Lines Matching refs:pptr

851 uint32_t *pptr = cb->parsed_pattern;  in show_parsed()  local
859 uint32_t meta_arg = META_DATA(*pptr); in show_parsed()
861 fprintf(stderr, "+++ %02d %.8x ", (int)(pptr - cb->parsed_pattern), *pptr); in show_parsed()
863 if (*pptr < META_END) in show_parsed()
865 if (*pptr > 32 && *pptr < 128) fprintf(stderr, "%c", *pptr); in show_parsed()
866 pptr++; in show_parsed()
869 else switch (META_CODE(*pptr++)) in show_parsed()
884 GETOFFSET(offset, pptr); in show_parsed()
892 GETOFFSET(offset, pptr); in show_parsed()
899 uint32_t ptype = *pptr >> 16; in show_parsed()
900 uint32_t pvalue = *pptr++ & 0xffff; in show_parsed()
920 min = *pptr++; in show_parsed()
921 max = *pptr++; in show_parsed()
929 min = *pptr++; in show_parsed()
930 max = *pptr++; in show_parsed()
938 min = *pptr++; in show_parsed()
939 max = *pptr++; in show_parsed()
946 case META_BIGVALUE: fprintf(stderr, "META_BIGVALUE %.8x", *pptr++); break; in show_parsed()
977 case META_POSIX: fprintf(stderr, "META_POSIX %d", *pptr++); break; in show_parsed()
978 case META_POSIX_NEG: fprintf(stderr, "META_POSIX_NEG %d", *pptr++); break; in show_parsed()
987 case META_OPTIONS: fprintf(stderr, "META_OPTIONS 0x%02x", *pptr++); break; in show_parsed()
991 GETOFFSET(offset, pptr); in show_parsed()
997 GETOFFSET(offset, pptr); in show_parsed()
1002 fprintf(stderr, "META (?C%d) next=%d/%d", pptr[2], pptr[0], in show_parsed()
1003 pptr[1]); in show_parsed()
1004 pptr += 3; in show_parsed()
1009 uint32_t patoffset = *pptr++; /* Offset of next pattern item */ in show_parsed()
1010 uint32_t patlength = *pptr++; /* Length of next pattern item */ in show_parsed()
1011 fprintf(stderr, "META (?Cstring) length=%d offset=", *pptr++); in show_parsed()
1012 GETOFFSET(offset, pptr); in show_parsed()
1018 fprintf(stderr, "META (?(&name) length=%d offset=", *pptr++); in show_parsed()
1019 GETOFFSET(offset, pptr); in show_parsed()
1024 fprintf(stderr, "META_BACKREF_BYNAME length=%d offset=", *pptr++); in show_parsed()
1025 GETOFFSET(offset, pptr); in show_parsed()
1030 fprintf(stderr, "META_COND_NUMBER %d offset=", pptr[SIZEOFFSET]); in show_parsed()
1031 GETOFFSET(offset, pptr); in show_parsed()
1033 pptr++; in show_parsed()
1038 GETOFFSET(offset, pptr); in show_parsed()
1043 fprintf(stderr, "META (?(VERSION%s", (*pptr++ == 0)? "=" : ">="); in show_parsed()
1044 fprintf(stderr, "%d.", *pptr++); in show_parsed()
1045 fprintf(stderr, "%d)", *pptr++); in show_parsed()
1049 fprintf(stderr, "META (?(<name>) length=%d offset=", *pptr++); in show_parsed()
1050 GETOFFSET(offset, pptr); in show_parsed()
1055 fprintf(stderr, "META (?(R&name) length=%d offset=", *pptr++); in show_parsed()
1056 GETOFFSET(offset, pptr); in show_parsed()
1063 fprintf(stderr, "META (?(Rnumber) length=%d offset=", *pptr++); in show_parsed()
1064 GETOFFSET(offset, pptr); in show_parsed()
1087 length = *pptr++; in show_parsed()
1090 uint32_t cc = *pptr++; in show_parsed()
4926 uint32_t *pptr = *pptrptr; in compile_branch() local
4993 for (;; pptr++) in compile_branch()
5016 meta = META_CODE(*pptr); in compile_branch()
5017 meta_arg = META_DATA(*pptr); in compile_branch()
5095 *pptrptr = pptr; in compile_branch()
5174 if (pptr[1] < META_END && pptr[2] == META_CLASS_END) in compile_branch()
5179 uint32_t c = pptr[1]; in compile_branch()
5181 pptr += 2; /* Move on to class end */ in compile_branch()
5256 while ((meta = *(++pptr)) != META_CLASS_END) in compile_branch()
5263 int posix_class = *(++pptr); in compile_branch()
5372 meta = *(++pptr); in compile_branch()
5464 uint32_t ptype = *(++pptr) >> 16; in compile_branch()
5465 uint32_t pdata = *pptr & 0xffff; in compile_branch()
5497 if (pptr[1] == META_RANGE_LITERAL || pptr[1] == META_RANGE_ESCAPED) in compile_branch()
5500 BOOL range_is_literal = (pptr[1] == META_RANGE_LITERAL); in compile_branch()
5502 pptr += 2; in compile_branch()
5503 d = *pptr; in compile_branch()
5504 if (d == META_BIGVALUE) d = *(++pptr); in compile_branch()
5760 verbarglen = *(++pptr); in compile_branch()
5765 meta = *(++pptr); in compile_branch()
5792 *optionsptr = options = *(++pptr); in compile_branch()
5814 uint32_t length = *(++pptr); in compile_branch()
5816 GETPLUSOFFSET(offset, pptr); in compile_branch()
5910 GETPLUSOFFSET(offset, pptr); in compile_branch()
5919 GETPLUSOFFSET(offset, pptr); in compile_branch()
5920 groupnumber = *(++pptr); in compile_branch()
5938 if (pptr[1] > 0) in compile_branch()
5939 code[1+LINK_SIZE] = ((PCRE2_MAJOR > pptr[2]) || in compile_branch()
5940 (PCRE2_MAJOR == pptr[2] && PCRE2_MINOR >= pptr[3]))? in compile_branch()
5943 code[1+LINK_SIZE] = (PCRE2_MAJOR == pptr[2] && PCRE2_MINOR == pptr[3])? in compile_branch()
5946 pptr += 3; in compile_branch()
5972 if (pptr[1] == META_KET && in compile_branch()
5973 (pptr[2] < META_ASTERISK || pptr[2] > META_MINMAX_QUERY)) in compile_branch()
5976 pptr++; in compile_branch()
6016 pptr++; in compile_branch()
6025 &pptr, /* Input pointer (updated) */ in compile_branch()
6220 uint32_t length = *(++pptr); in compile_branch()
6222 GETPLUSOFFSET(offset, pptr); in compile_branch()
6310 PUT(code, 1, pptr[1]); /* Offset to next pattern item */ in compile_branch()
6311 PUT(code, 1 + LINK_SIZE, pptr[2]); /* Length of next pattern item */ in compile_branch()
6312 code[1 + 2*LINK_SIZE] = pptr[3]; in compile_branch()
6313 pptr += 3; in compile_branch()
6328 *lengthptr += pptr[3] + (1 + 4*LINK_SIZE); in compile_branch()
6329 pptr += 3; in compile_branch()
6330 SKIPOFFSET(pptr); in compile_branch()
6341 uint32_t length = pptr[3]; in compile_branch()
6345 PUT(code, 1, pptr[1]); /* Offset to next pattern item */ in compile_branch()
6346 PUT(code, 1 + LINK_SIZE, pptr[2]); /* Length of next pattern item */ in compile_branch()
6348 pptr += 3; in compile_branch()
6349 GETPLUSOFFSET(offset, pptr); /* Offset to string in pattern */ in compile_branch()
6389 repeat_min = *(++pptr); in compile_branch()
6390 repeat_max = *(++pptr); in compile_branch()
7208 pptr++; in compile_branch()
7221 else GETPLUSOFFSET(offset, pptr); in compile_branch()
7275 GETPLUSOFFSET(offset, pptr); in compile_branch()
7341 uint32_t ptype = *(++pptr) >> 16; in compile_branch()
7342 uint32_t pdata = *pptr & 0xffff; in compile_branch()
7380 fprintf(stderr, "** Unrecognized parsed pattern item 0x%.8x\n", *pptr); in compile_branch()
7390 meta = *pptr; /* Get the full 32 bits */ in compile_branch()
7531 uint32_t *pptr = *pptrptr; in compile_regex() local
7572 lookbehindlength = META_DATA(pptr[-1]); in compile_regex()
7573 pptr += SIZEOFFSET; in compile_regex()
7616 compile_branch(&options, &code, &pptr, errorcodeptr, &branchfirstcu, in compile_regex()
7695 if (META_CODE(*pptr) != META_ALT) in compile_regex()
7740 *pptrptr = pptr; in compile_regex()
7782 lookbehindlength = META_DATA(*pptr); in compile_regex()
7783 pptr++; in compile_regex()
8374 parsed_skip(uint32_t *pptr, uint32_t skiptype) in parsed_skip() argument
8378 for (;; pptr++) in parsed_skip()
8380 uint32_t meta = META_CODE(*pptr); in parsed_skip()
8396 if (META_DATA(*pptr) >= 10) pptr += SIZEOFFSET; in parsed_skip()
8400 switch (META_DATA(*pptr)) in parsed_skip()
8404 pptr += 1; in parsed_skip()
8409 pptr += 1 + SIZEOFFSET; in parsed_skip()
8419 pptr += pptr[1]; in parsed_skip()
8425 if (skiptype == PSKIP_CLASS) return pptr; in parsed_skip()
8446 if (nestlevel == 0 && skiptype == PSKIP_ALT) return pptr; in parsed_skip()
8450 if (nestlevel == 0) return pptr; in parsed_skip()
8459 pptr += meta_extra_lengths[meta]; in parsed_skip()
8462 return pptr; in parsed_skip()
8561 uint32_t *pptr = *pptrptr; in get_branchlength() local
8577 for (;; pptr++) in get_branchlength()
8585 if (*pptr < META_END) in get_branchlength()
8590 else switch (META_CODE(*pptr)) in get_branchlength()
8601 pptr = parsed_skip(pptr, PSKIP_ALT); in get_branchlength()
8602 if (pptr == NULL) goto PARSED_SKIP_FAILED; in get_branchlength()
8610 pptr += pptr[1] + 1; in get_branchlength()
8622 pptr += 1; in get_branchlength()
8627 pptr += 1; in get_branchlength()
8633 pptr = parsed_skip(pptr, PSKIP_CLASS); in get_branchlength()
8634 if (pptr == NULL) goto PARSED_SKIP_FAILED; in get_branchlength()
8643 pptr += 3; in get_branchlength()
8647 pptr += 3 + SIZEOFFSET; in get_branchlength()
8655 escape = META_DATA(*pptr); in get_branchlength()
8667 if (escape == ESC_p || escape == ESC_P) pptr++; /* Skip prop data */ in get_branchlength()
8676 pptr = parsed_skip(pptr + 1, PSKIP_KET); in get_branchlength()
8677 if (pptr == NULL) goto PARSED_SKIP_FAILED; in get_branchlength()
8681 switch (pptr[1]) in get_branchlength()
8692 pptr++; in get_branchlength()
8698 pptr += 3; in get_branchlength()
8710 if (!set_lookbehind_lengths(&pptr, errcodeptr, lcptr, recurses, cb)) in get_branchlength()
8731 uint32_t meta_code = META_CODE(*pptr); in get_branchlength()
8732 uint32_t length = *(++pptr); in get_branchlength()
8734 GETPLUSOFFSET(offset, pptr); in get_branchlength()
8771 group = META_DATA(*pptr); in get_branchlength()
8785 group = META_DATA(*pptr); in get_branchlength()
8786 GETPLUSOFFSET(offset, pptr); in get_branchlength()
8807 if (pptr > gptr && pptr < gptrend) goto ISNOTFIXED; /* Local recursion */ in get_branchlength()
8837 pptr += 2 + SIZEOFFSET; in get_branchlength()
8841 pptr += 1; in get_branchlength()
8845 pptr += 4; in get_branchlength()
8849 group = META_DATA(*pptr); in get_branchlength()
8854 pptr++; in get_branchlength()
8856 grouplength = get_grouplength(&pptr, TRUE, errcodeptr, lcptr, group, in get_branchlength()
8868 if (pptr[1] == pptr[2]) in get_branchlength()
8870 if (pptr[1] == 0) branchlength -= lastitemlength; in get_branchlength()
8871 else itemlength = (pptr[1] - 1) * lastitemlength; in get_branchlength()
8872 pptr += 2; in get_branchlength()
8901 *pptrptr = pptr; in get_branchlength()
8981 uint32_t *pptr; in check_lookbehinds() local
8987 for (pptr = cb->parsed_pattern; *pptr != META_END; pptr++) in check_lookbehinds()
8989 if (*pptr < META_END) continue; /* Literal */ in check_lookbehinds()
8991 switch (META_CODE(*pptr)) in check_lookbehinds()
8997 if (*pptr - META_ESCAPE == ESC_P || *pptr - META_ESCAPE == ESC_p) in check_lookbehinds()
8998 pptr += 1; in check_lookbehinds()
9038 pptr += SIZEOFFSET; in check_lookbehinds()
9048 pptr += 1 + SIZEOFFSET; in check_lookbehinds()
9052 pptr += 3 + SIZEOFFSET; in check_lookbehinds()
9059 pptr += 1; in check_lookbehinds()
9065 pptr += 2; in check_lookbehinds()
9070 pptr += 3; in check_lookbehinds()
9078 pptr += 1 + pptr[1]; in check_lookbehinds()
9083 if (!set_lookbehind_lengths(&pptr, &errorcode, &loopcount, NULL, cb)) in check_lookbehinds()
9127 uint32_t *pptr; /* Current pointer in parsed pattern */ in pcre2_compile() local
9570 pptr = cb.parsed_pattern; in pcre2_compile()
9574 (void)compile_regex(cb.external_options, &code, &pptr, &errorcode, 0, &firstcu, in pcre2_compile()
9669 pptr = cb.parsed_pattern; in pcre2_compile()
9672 regexrc = compile_regex(re->overall_options, &code, &pptr, &errorcode, 0, in pcre2_compile()