Lines Matching refs:pptr

930 uint32_t *pptr = cb->parsed_pattern;  in show_parsed()  local
938 uint32_t meta_arg = META_DATA(*pptr); in show_parsed()
940 fprintf(stderr, "+++ %02d %.8x ", (int)(pptr - cb->parsed_pattern), *pptr); in show_parsed()
942 if (*pptr < META_END) in show_parsed()
944 if (*pptr > 32 && *pptr < 128) fprintf(stderr, "%c", *pptr); in show_parsed()
945 pptr++; in show_parsed()
948 else switch (META_CODE(*pptr++)) in show_parsed()
963 GETOFFSET(offset, pptr); in show_parsed()
971 GETOFFSET(offset, pptr); in show_parsed()
978 uint32_t ptype = *pptr >> 16; in show_parsed()
979 uint32_t pvalue = *pptr++ & 0xffff; in show_parsed()
999 min = *pptr++; in show_parsed()
1000 max = *pptr++; in show_parsed()
1008 min = *pptr++; in show_parsed()
1009 max = *pptr++; in show_parsed()
1017 min = *pptr++; in show_parsed()
1018 max = *pptr++; in show_parsed()
1025 case META_BIGVALUE: fprintf(stderr, "META_BIGVALUE %.8x", *pptr++); break; in show_parsed()
1058 case META_POSIX: fprintf(stderr, "META_POSIX %d", *pptr++); break; in show_parsed()
1059 case META_POSIX_NEG: fprintf(stderr, "META_POSIX_NEG %d", *pptr++); break; in show_parsed()
1069 fprintf(stderr, "META_OPTIONS 0x%08x 0x%08x", pptr[0], pptr[1]); in show_parsed()
1070 pptr += 2; in show_parsed()
1074 fprintf(stderr, "META (?<= %d %d", meta_arg, *pptr); in show_parsed()
1075 pptr += 2; in show_parsed()
1079 fprintf(stderr, "META (*naplb: %d %d", meta_arg, *pptr); in show_parsed()
1080 pptr += 2; in show_parsed()
1084 fprintf(stderr, "META (?<! %d %d", meta_arg, *pptr); in show_parsed()
1085 pptr += 2; in show_parsed()
1089 fprintf(stderr, "META (?C%d) next=%d/%d", pptr[2], pptr[0], in show_parsed()
1090 pptr[1]); in show_parsed()
1091 pptr += 3; in show_parsed()
1096 uint32_t patoffset = *pptr++; /* Offset of next pattern item */ in show_parsed()
1097 uint32_t patlength = *pptr++; /* Length of next pattern item */ in show_parsed()
1098 fprintf(stderr, "META (?Cstring) length=%d offset=", *pptr++); in show_parsed()
1099 GETOFFSET(offset, pptr); in show_parsed()
1105 fprintf(stderr, "META (?(&name) length=%d offset=", *pptr++); in show_parsed()
1106 GETOFFSET(offset, pptr); in show_parsed()
1111 fprintf(stderr, "META_BACKREF_BYNAME length=%d offset=", *pptr++); in show_parsed()
1112 GETOFFSET(offset, pptr); in show_parsed()
1117 fprintf(stderr, "META_COND_NUMBER %d offset=", pptr[SIZEOFFSET]); in show_parsed()
1118 GETOFFSET(offset, pptr); in show_parsed()
1120 pptr++; in show_parsed()
1125 GETOFFSET(offset, pptr); in show_parsed()
1130 fprintf(stderr, "META (?(VERSION%s", (*pptr++ == 0)? "=" : ">="); in show_parsed()
1131 fprintf(stderr, "%d.", *pptr++); in show_parsed()
1132 fprintf(stderr, "%d)", *pptr++); in show_parsed()
1136 fprintf(stderr, "META (?(<name>) length=%d offset=", *pptr++); in show_parsed()
1137 GETOFFSET(offset, pptr); in show_parsed()
1142 fprintf(stderr, "META (?(R&name) length=%d offset=", *pptr++); in show_parsed()
1143 GETOFFSET(offset, pptr); in show_parsed()
1150 fprintf(stderr, "META (?(Rnumber) length=%d offset=", *pptr++); in show_parsed()
1151 GETOFFSET(offset, pptr); in show_parsed()
1174 length = *pptr++; in show_parsed()
1177 uint32_t cc = *pptr++; in show_parsed()
5653 uint32_t *pptr = *pptrptr; in compile_branch() local
5723 for (;; pptr++) in compile_branch()
5745 meta = META_CODE(*pptr); in compile_branch()
5746 meta_arg = META_DATA(*pptr); in compile_branch()
5824 *pptrptr = pptr; in compile_branch()
5903 if (pptr[1] < META_END && pptr[2] == META_CLASS_END) in compile_branch()
5908 uint32_t c = pptr[1]; in compile_branch()
5910 pptr += 2; /* Move on to class end */ in compile_branch()
5956 if (meta == META_CLASS && pptr[1] < META_END && pptr[2] < META_END && in compile_branch()
5957 pptr[3] == META_CLASS_END) in compile_branch()
5959 uint32_t c = pptr[1]; in compile_branch()
5964 c < 128 && pptr[2] < 128)) in compile_branch()
5979 if (c != d && pptr[2] == d) in compile_branch()
5981 pptr += 3; /* Move on to class end */ in compile_branch()
6030 while ((meta = *(++pptr)) != META_CLASS_END) in compile_branch()
6037 int posix_class = *(++pptr); in compile_branch()
6150 meta = *(++pptr); in compile_branch()
6247 uint32_t ptype = *(++pptr) >> 16; in compile_branch()
6248 uint32_t pdata = *pptr & 0xffff; in compile_branch()
6280 if (pptr[1] == META_RANGE_LITERAL || pptr[1] == META_RANGE_ESCAPED) in compile_branch()
6283 BOOL range_is_literal = (pptr[1] == META_RANGE_LITERAL); in compile_branch()
6285 pptr += 2; in compile_branch()
6286 d = *pptr; in compile_branch()
6287 if (d == META_BIGVALUE) d = *(++pptr); in compile_branch()
6550 verbarglen = *(++pptr); in compile_branch()
6555 meta = *(++pptr); in compile_branch()
6582 *optionsptr = options = *(++pptr); in compile_branch()
6583 *xoptionsptr = xoptions = *(++pptr); in compile_branch()
6606 uint32_t length = *(++pptr); in compile_branch()
6608 GETPLUSOFFSET(offset, pptr); in compile_branch()
6702 GETPLUSOFFSET(offset, pptr); in compile_branch()
6711 GETPLUSOFFSET(offset, pptr); in compile_branch()
6712 groupnumber = *(++pptr); in compile_branch()
6730 if (pptr[1] > 0) in compile_branch()
6731 code[1+LINK_SIZE] = ((PCRE2_MAJOR > pptr[2]) || in compile_branch()
6732 (PCRE2_MAJOR == pptr[2] && PCRE2_MINOR >= pptr[3]))? in compile_branch()
6735 code[1+LINK_SIZE] = (PCRE2_MAJOR == pptr[2] && PCRE2_MINOR == pptr[3])? in compile_branch()
6738 pptr += 3; in compile_branch()
6769 if (pptr[1] == META_KET && in compile_branch()
6770 (pptr[2] < META_ASTERISK || pptr[2] > META_MINMAX_QUERY)) in compile_branch()
6773 pptr++; in compile_branch()
6822 pptr++; in compile_branch()
6832 &pptr, /* Input pointer (updated) */ in compile_branch()
7028 uint32_t length = *(++pptr); in compile_branch()
7030 GETPLUSOFFSET(offset, pptr); in compile_branch()
7106 PUT(code, 1, pptr[1]); /* Offset to next pattern item */ in compile_branch()
7107 PUT(code, 1 + LINK_SIZE, pptr[2]); /* Length of next pattern item */ in compile_branch()
7108 code[1 + 2*LINK_SIZE] = pptr[3]; in compile_branch()
7109 pptr += 3; in compile_branch()
7124 *lengthptr += pptr[3] + (1 + 4*LINK_SIZE); in compile_branch()
7125 pptr += 3; in compile_branch()
7126 SKIPOFFSET(pptr); in compile_branch()
7137 uint32_t length = pptr[3]; in compile_branch()
7141 PUT(code, 1, pptr[1]); /* Offset to next pattern item */ in compile_branch()
7142 PUT(code, 1 + LINK_SIZE, pptr[2]); /* Length of next pattern item */ in compile_branch()
7144 pptr += 3; in compile_branch()
7145 GETPLUSOFFSET(offset, pptr); /* Offset to string in pattern */ in compile_branch()
7185 repeat_min = *(++pptr); in compile_branch()
7186 repeat_max = *(++pptr); in compile_branch()
8018 pptr++; in compile_branch()
8031 else GETPLUSOFFSET(offset, pptr); in compile_branch()
8071 GETPLUSOFFSET(offset, pptr); in compile_branch()
8139 uint32_t ptype = *(++pptr) >> 16; in compile_branch()
8140 uint32_t pdata = *pptr & 0xffff; in compile_branch()
8217 fprintf(stderr, "** Unrecognized parsed pattern item 0x%.8x\n", *pptr); in compile_branch()
8227 meta = *pptr; /* Get the full 32 bits */ in compile_branch()
8391 uint32_t *pptr = *pptrptr; in compile_regex() local
8436 lookbehindlength = META_DATA(pptr[-1]); in compile_regex()
8437 lookbehindminlength = *pptr; in compile_regex()
8438 pptr += SIZEOFFSET; in compile_regex()
8497 compile_branch(&options, &xoptions, &code, &pptr, errorcodeptr, in compile_regex()
8576 if (META_CODE(*pptr) != META_ALT) in compile_regex()
8600 *pptrptr = pptr; in compile_regex()
8642 lookbehindlength = META_DATA(*pptr); in compile_regex()
8643 pptr++; in compile_regex()
9250 parsed_skip(uint32_t *pptr, uint32_t skiptype) in parsed_skip() argument
9254 for (;; pptr++) in parsed_skip()
9256 uint32_t meta = META_CODE(*pptr); in parsed_skip()
9272 if (META_DATA(*pptr) >= 10) pptr += SIZEOFFSET; in parsed_skip()
9276 switch (META_DATA(*pptr)) in parsed_skip()
9280 pptr += 1; in parsed_skip()
9285 pptr += 1 + SIZEOFFSET; in parsed_skip()
9295 pptr += pptr[1]; in parsed_skip()
9301 if (skiptype == PSKIP_CLASS) return pptr; in parsed_skip()
9325 if (nestlevel == 0 && skiptype == PSKIP_ALT) return pptr; in parsed_skip()
9329 if (nestlevel == 0) return pptr; in parsed_skip()
9338 pptr += meta_extra_lengths[meta]; in parsed_skip()
9341 return pptr; in parsed_skip()
9451 uint32_t *pptr = *pptrptr; in get_branchlength() local
9467 for (;; pptr++) in get_branchlength()
9477 if (*pptr < META_END) in get_branchlength()
9482 else switch (META_CODE(*pptr)) in get_branchlength()
9493 pptr = parsed_skip(pptr, PSKIP_ALT); in get_branchlength()
9494 if (pptr == NULL) goto PARSED_SKIP_FAILED; in get_branchlength()
9502 pptr += pptr[1] + 1; in get_branchlength()
9514 pptr += 2; in get_branchlength()
9519 pptr += 1; in get_branchlength()
9525 pptr = parsed_skip(pptr, PSKIP_CLASS); in get_branchlength()
9526 if (pptr == NULL) goto PARSED_SKIP_FAILED; in get_branchlength()
9535 pptr += 3; in get_branchlength()
9539 pptr += 3 + SIZEOFFSET; in get_branchlength()
9547 escape = META_DATA(*pptr); in get_branchlength()
9564 if (escape == ESC_p || escape == ESC_P) pptr++; /* Skip prop data */ in get_branchlength()
9574 *errcodeptr = check_lookbehinds(pptr + 1, &pptr, recurses, cb, lcptr); in get_branchlength()
9579 switch (pptr[1]) in get_branchlength()
9590 pptr++; in get_branchlength()
9596 pptr += 3; in get_branchlength()
9610 if (!set_lookbehind_lengths(&pptr, errcodeptr, lcptr, recurses, cb)) in get_branchlength()
9631 uint32_t meta_code = META_CODE(*pptr); in get_branchlength()
9632 uint32_t length = *(++pptr); in get_branchlength()
9634 GETPLUSOFFSET(offset, pptr); in get_branchlength()
9671 group = META_DATA(*pptr); in get_branchlength()
9685 group = META_DATA(*pptr); in get_branchlength()
9686 GETPLUSOFFSET(offset, pptr); in get_branchlength()
9707 if (pptr > gptr && pptr < gptrend) goto ISNOTFIXED; /* Local recursion */ in get_branchlength()
9735 pptr = parsed_skip(pptr + 1, PSKIP_KET); in get_branchlength()
9745 pptr += 2 + SIZEOFFSET; in get_branchlength()
9749 pptr += 1; in get_branchlength()
9753 pptr += 4; in get_branchlength()
9757 group = META_DATA(*pptr); in get_branchlength()
9763 pptr++; in get_branchlength()
9765 grouplength = get_grouplength(&pptr, &groupminlength, TRUE, errcodeptr, in get_branchlength()
9785 min = pptr[1]; in get_branchlength()
9786 max = pptr[2]; in get_branchlength()
9787 pptr += 2; in get_branchlength()
9836 *pptrptr = pptr; in get_branchlength()
9966 check_lookbehinds(uint32_t *pptr, uint32_t **retptr, in check_lookbehinds() argument
9974 for (; *pptr != META_END; pptr++) in check_lookbehinds()
9976 if (*pptr < META_END) continue; /* Literal */ in check_lookbehinds()
9978 switch (META_CODE(*pptr)) in check_lookbehinds()
9984 if (*pptr - META_ESCAPE == ESC_P || *pptr - META_ESCAPE == ESC_p) in check_lookbehinds()
9985 pptr += 1; in check_lookbehinds()
9991 if (retptr != NULL) *retptr = pptr; in check_lookbehinds()
10037 pptr += SIZEOFFSET; in check_lookbehinds()
10042 pptr += 1 + SIZEOFFSET; in check_lookbehinds()
10046 pptr += SIZEOFFSET; in check_lookbehinds()
10054 pptr += 1 + SIZEOFFSET; in check_lookbehinds()
10059 pptr += 3; in check_lookbehinds()
10064 pptr += 3 + SIZEOFFSET; in check_lookbehinds()
10070 pptr += 1; in check_lookbehinds()
10077 pptr += 2; in check_lookbehinds()
10081 pptr += 3; in check_lookbehinds()
10089 pptr += 1 + pptr[1]; in check_lookbehinds()
10095 if (!set_lookbehind_lengths(&pptr, &errorcode, lcptr, recurses, cb)) in check_lookbehinds()
10140 uint32_t *pptr; /* Current pointer in parsed pattern */ in pcre2_compile() local
10588 pptr = cb.parsed_pattern; in pcre2_compile()
10592 (void)compile_regex(cb.external_options, ccontext->extra_options, &code, &pptr, in pcre2_compile()
10694 pptr = cb.parsed_pattern; in pcre2_compile()
10698 &pptr, &errorcode, 0, &firstcu, &firstcuflags, &reqcu, &reqcuflags, NULL, in pcre2_compile()