Lines Matching refs:code
1669 first_significant_code(const pcre_uchar *code, BOOL skipassert) in first_significant_code() argument
1673 switch ((int)*code) in first_significant_code()
1678 if (!skipassert) return code; in first_significant_code()
1679 do code += GET(code, 1); while (*code == OP_ALT); in first_significant_code()
1680 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1685 if (!skipassert) return code; in first_significant_code()
1694 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1698 return code; in first_significant_code()
1736 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd, in find_fixedlength() argument
1742 register pcre_uchar *cc = code + 1 + LINK_SIZE; in find_fixedlength()
2080 PRIV(find_bracket)(const pcre_uchar *code, BOOL utf, int number) in PRIV()
2084 register pcre_uchar c = *code; in PRIV()
2092 if (c == OP_XCLASS) code += GET(code, 1); in PRIV()
2098 if (number < 0) return (pcre_uchar *)code; in PRIV()
2099 code += PRIV(OP_lengths)[c]; in PRIV()
2107 int n = (int)GET2(code, 1+LINK_SIZE); in PRIV()
2108 if (n == number) return (pcre_uchar *)code; in PRIV()
2109 code += PRIV(OP_lengths)[c]; in PRIV()
2130 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in PRIV()
2137 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in PRIV()
2138 code += 2; in PRIV()
2145 code += code[1]; in PRIV()
2151 code += PRIV(OP_lengths)[c]; in PRIV()
2216 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in PRIV()
2243 find_recurse(const pcre_uchar *code, BOOL utf) in find_recurse() argument
2247 register pcre_uchar c = *code; in find_recurse()
2249 if (c == OP_RECURSE) return code; in find_recurse()
2255 if (c == OP_XCLASS) code += GET(code, 1); in find_recurse()
2275 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in find_recurse()
2282 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in find_recurse()
2283 code += 2; in find_recurse()
2290 code += code[1]; in find_recurse()
2296 code += PRIV(OP_lengths)[c]; in find_recurse()
2361 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in find_recurse()
2396 could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty_branch() argument
2402 for (code = first_significant_code(code + PRIV(OP_lengths)[*code], TRUE); in could_be_empty_branch()
2403 code < endcode; in could_be_empty_branch()
2404 code = first_significant_code(code + PRIV(OP_lengths)[c], TRUE)) in could_be_empty_branch()
2408 c = *code; in could_be_empty_branch()
2415 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2416 c = *code; in could_be_empty_branch()
2429 const pcre_uchar *scode = cd->start_code + GET(code, 1); in could_be_empty_branch()
2441 if ((int)GET(tcode, 0) == (int)(code + 1 - cd->start_code)) return TRUE; in could_be_empty_branch()
2451 if (code >= scode && code <= endgroup) continue; /* Simple recursion */ in could_be_empty_branch()
2487 code += PRIV(OP_lengths)[c]; in could_be_empty_branch()
2488 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2489 c = *code; in could_be_empty_branch()
2499 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2500 c = *code; in could_be_empty_branch()
2512 if (GET(code, 1) == 0) return TRUE; /* Hit unclosed bracket */ in could_be_empty_branch()
2518 if (c == OP_COND && code[GET(code, 1)] != OP_ALT) in could_be_empty_branch()
2519 code += GET(code, 1); in could_be_empty_branch()
2525 if (!empty_branch && could_be_empty_branch(code, endcode, utf, cd, in could_be_empty_branch()
2527 code += GET(code, 1); in could_be_empty_branch()
2529 while (*code == OP_ALT); in could_be_empty_branch()
2533 c = *code; in could_be_empty_branch()
2549 ccode = code += GET(code, 1); in could_be_empty_branch()
2555 ccode = code + PRIV(OP_lengths)[OP_CLASS]; in could_be_empty_branch()
2649 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in could_be_empty_branch()
2657 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in could_be_empty_branch()
2658 code += 2; in could_be_empty_branch()
2705 if (utf && HAS_EXTRALEN(code[1])) code += GET_EXTRALEN(code[1]); in could_be_empty_branch()
2723 if (utf && HAS_EXTRALEN(code[1 + IMM2_SIZE])) code += GET_EXTRALEN(code[1 + IMM2_SIZE]); in could_be_empty_branch()
2734 code += code[1]; in could_be_empty_branch()
2771 could_be_empty(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty() argument
2774 while (bcptr != NULL && bcptr->current_branch >= code) in could_be_empty()
2915 get_chr_property_list(const pcre_uchar *code, BOOL utf, in get_chr_property_list() argument
2918 pcre_uchar c = *code; in get_chr_property_list()
2932 code++; in get_chr_property_list()
2940 code += IMM2_SIZE; in get_chr_property_list()
2963 list[0] = *code; in get_chr_property_list()
2964 code++; in get_chr_property_list()
2990 return code; in get_chr_property_list()
2994 GETCHARINCTEST(chr, code); in get_chr_property_list()
2997 return code; in get_chr_property_list()
3002 GETCHARINCTEST(chr, code); in get_chr_property_list()
3022 return code; in get_chr_property_list()
3027 if (code[0] != PT_CLIST) in get_chr_property_list()
3029 list[2] = code[0]; in get_chr_property_list()
3030 list[3] = code[1]; in get_chr_property_list()
3031 return code + 2; in get_chr_property_list()
3036 clist_src = PRIV(ucd_caseless_sets) + code[1]; in get_chr_property_list()
3038 code += 2; in get_chr_property_list()
3045 list[2] = code[0]; in get_chr_property_list()
3046 list[3] = code[1]; in get_chr_property_list()
3047 return code; in get_chr_property_list()
3057 return code; in get_chr_property_list()
3065 end = code + GET(code, 0) - 1; in get_chr_property_list()
3068 end = code + 32 / sizeof(pcre_uchar); in get_chr_property_list()
3095 list[2] = (pcre_uint32)(end - code); in get_chr_property_list()
3120 compare_opcodes(const pcre_uchar *code, BOOL utf, const compile_data *cd, in compare_opcodes() argument
3151 c = *code; in compare_opcodes()
3157 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3163 do code += GET(code, 1); while (*code == OP_ALT); in compare_opcodes()
3164 c = *code; in compare_opcodes()
3184 switch(*(code - GET(code, 1))) in compare_opcodes()
3199 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3206 next_code = code + GET(code, 1); in compare_opcodes()
3207 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3211 if (!compare_opcodes(code, utf, cd, base_list, base_end, rec_limit)) in compare_opcodes()
3213 code = next_code + 1 + LINK_SIZE; in compare_opcodes()
3223 next_code = code + 1; in compare_opcodes()
3235 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3244 code = get_chr_property_list(code, utf, cd->fcc, list); in compare_opcodes()
3245 if (code == NULL) return FALSE; /* Unsupported */ in compare_opcodes()
3281 set1 = (pcre_uint8 *)(code - list[2]); in compare_opcodes()
3291 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3296 xclass_flags = (list_ptr == list ? code : base_end) - list_ptr[2] + LINK_SIZE; in compare_opcodes()
3612 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3618 if (PRIV(xclass)(chr, (list_ptr == list ? code : base_end) - in compare_opcodes()
3659 auto_possessify(pcre_uchar *code, BOOL utf, const compile_data *cd) in auto_possessify() argument
3669 c = *code; in auto_possessify()
3683 get_chr_property_list(code, utf, cd->fcc, list) : NULL; in auto_possessify()
3692 *code += OP_POSSTAR - OP_STAR; in auto_possessify()
3696 *code += OP_POSSTAR - OP_MINSTAR; in auto_possessify()
3700 *code += OP_POSPLUS - OP_PLUS; in auto_possessify()
3704 *code += OP_POSPLUS - OP_MINPLUS; in auto_possessify()
3708 *code += OP_POSQUERY - OP_QUERY; in auto_possessify()
3712 *code += OP_POSQUERY - OP_MINQUERY; in auto_possessify()
3716 *code += OP_POSUPTO - OP_UPTO; in auto_possessify()
3720 *code += OP_POSUPTO - OP_MINUPTO; in auto_possessify()
3724 c = *code; in auto_possessify()
3730 repeat_opcode = code + GET(code, 1); in auto_possessify()
3733 repeat_opcode = code + 1 + (32 / sizeof(pcre_uchar)); in auto_possessify()
3739 end = get_chr_property_list(code, utf, cd->fcc, list); in auto_possessify()
3770 c = *code; in auto_possessify()
3787 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in auto_possessify()
3794 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in auto_possessify()
3795 code += 2; in auto_possessify()
3800 code += GET(code, 1); in auto_possessify()
3808 code += code[1]; in auto_possessify()
3814 code += PRIV(OP_lengths)[c]; in auto_possessify()
3879 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in auto_possessify()
4076 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) in auto_callout() argument
4078 *code++ = OP_CALLOUT; in auto_callout()
4079 *code++ = 255; in auto_callout()
4080 PUT(code, 0, (int)(ptr - cd->start_pattern)); /* Pattern offset */ in auto_callout()
4081 PUT(code, LINK_SIZE, 0); /* Default length */ in auto_callout()
4082 return code + 2 * LINK_SIZE; in auto_callout()
4473 register pcre_uchar *code = *codeptr; in compile_branch() local
4474 pcre_uchar *last_code = code; in compile_branch()
4475 pcre_uchar *orig_code = code; in compile_branch()
4589 if (code > cd->hwm) cd->hwm = code; /* High water info */ in compile_branch()
4591 if (code > cd->start_workspace + cd->workspace_size - in compile_branch()
4604 if (code < last_code) code = last_code; in compile_branch()
4608 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4614 *lengthptr += (int)(code - last_code); in compile_branch()
4616 (int)(code - last_code), c, c)); in compile_branch()
4626 memmove(orig_code, previous, IN_UCHARS(code - previous)); in compile_branch()
4627 code -= previous - orig_code; in compile_branch()
4631 else code = orig_code; in compile_branch()
4636 last_code = code; in compile_branch()
4668 previous_callout = code; in compile_branch()
4669 code = auto_callout(code, ptr, cd); in compile_branch()
4724 previous_callout = code; in compile_branch()
4725 code = auto_callout(code, ptr, cd); in compile_branch()
4740 *codeptr = code; in compile_branch()
4744 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4749 *lengthptr += (int)(code - last_code); /* To include callout length */ in compile_branch()
4765 *code++ = OP_CIRCM; in compile_branch()
4767 else *code++ = OP_CIRC; in compile_branch()
4772 *code++ = ((options & PCRE_MULTILINE) != 0)? OP_DOLLM : OP_DOLL; in compile_branch()
4784 previous = code; in compile_branch()
4786 *code++ = ((options & PCRE_DOTALL) != 0)? OP_ALLANY: OP_ANY; in compile_branch()
4836 previous = code; in compile_branch()
4880 *code++ = negate_class? OP_ALLANY : OP_FAIL; in compile_branch()
4898 class_uchardata = code + LINK_SIZE + 2; /* For XCLASS items */ in compile_branch()
5443 *code++ = OP_NOTPROP; in compile_branch()
5444 *code++ = PT_CLIST; in compile_branch()
5445 *code++ = d; in compile_branch()
5452 *code++ = ((options & PCRE_CASELESS) != 0)? OP_NOTI: OP_NOT; in compile_branch()
5455 code += PRIV(ord2utf)(c, code); in compile_branch()
5458 *code++ = c; in compile_branch()
5544 *code++ = OP_XCLASS; in compile_branch()
5545 code += LINK_SIZE; in compile_branch()
5546 *code = negate_class? XCL_NOT:0; in compile_branch()
5547 if (xclass_has_prop) *code |= XCL_HASPROP; in compile_branch()
5554 *code++ |= XCL_MAP; in compile_branch()
5555 memmove(code + (32 / sizeof(pcre_uchar)), code, in compile_branch()
5556 IN_UCHARS(class_uchardata - code)); in compile_branch()
5559 memcpy(code, classbits, 32); in compile_branch()
5560 code = class_uchardata + (32 / sizeof(pcre_uchar)); in compile_branch()
5562 else code = class_uchardata; in compile_branch()
5566 PUT(previous, 1, (int)(code - previous)); in compile_branch()
5583 *code++ = (negate_class == should_flip_negation) ? OP_CLASS : OP_NCLASS; in compile_branch()
5588 memcpy(code, classbits, 32); in compile_branch()
5590 code += 32 / sizeof(pcre_uchar); in compile_branch()
5707 code += 2 + 2 * LINK_SIZE; in compile_branch()
5747 if (utf && NOT_FIRSTCHAR(code[-1])) in compile_branch()
5749 pcre_uchar *lastchar = code - 1; in compile_branch()
5751 c = (int)(code - lastchar); /* Length of UTF-8 character */ in compile_branch()
5761 c = code[-1]; in compile_branch()
5794 oldcode = code; in compile_branch()
5795 code = previous; /* Usually overwrite previous item */ in compile_branch()
5811 if (repeat_max == -1) *code++ = OP_STAR + repeat_type; in compile_branch()
5812 else if (repeat_max == 1) *code++ = OP_QUERY + repeat_type; in compile_branch()
5815 *code++ = OP_UPTO + repeat_type; in compile_branch()
5816 PUT2INC(code, 0, repeat_max); in compile_branch()
5828 *code++ = OP_PLUS + repeat_type; in compile_branch()
5831 code = oldcode; /* leave previous item in place */ in compile_branch()
5833 *code++ = OP_UPTO + repeat_type; in compile_branch()
5834 PUT2INC(code, 0, repeat_max - 1); in compile_branch()
5843 *code++ = OP_EXACT + op_type; /* NB EXACT doesn't have repeat_type */ in compile_branch()
5844 PUT2INC(code, 0, repeat_min); in compile_branch()
5857 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5858 code += c & 7; in compile_branch()
5863 *code++ = c; in compile_branch()
5866 *code++ = prop_type; in compile_branch()
5867 *code++ = prop_value; in compile_branch()
5870 *code++ = OP_STAR + repeat_type; in compile_branch()
5882 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5883 code += c & 7; in compile_branch()
5887 *code++ = c; in compile_branch()
5890 *code++ = prop_type; in compile_branch()
5891 *code++ = prop_value; in compile_branch()
5897 *code++ = OP_QUERY + repeat_type; in compile_branch()
5901 *code++ = OP_UPTO + repeat_type; in compile_branch()
5902 PUT2INC(code, 0, repeat_max); in compile_branch()
5912 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5913 code += c & 7; in compile_branch()
5917 *code++ = c; in compile_branch()
5925 *code++ = prop_type; in compile_branch()
5926 *code++ = prop_value; in compile_branch()
5943 code = previous; in compile_branch()
5948 *code++ = OP_CRSTAR + repeat_type; in compile_branch()
5950 *code++ = OP_CRPLUS + repeat_type; in compile_branch()
5952 *code++ = OP_CRQUERY + repeat_type; in compile_branch()
5955 *code++ = OP_CRRANGE + repeat_type; in compile_branch()
5956 PUT2INC(code, 0, repeat_min); in compile_branch()
5958 PUT2INC(code, 0, repeat_max); in compile_branch()
5974 int len = (int)(code - previous); in compile_branch()
6029 *code = OP_END; in compile_branch()
6032 code++; in compile_branch()
6053 *code = OP_END; in compile_branch()
6056 code += 2 + LINK_SIZE; in compile_branch()
6118 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6136 code += len; in compile_branch()
6182 *code++ = OP_BRAZERO + repeat_type; in compile_branch()
6190 *code++ = OP_BRA; in compile_branch()
6191 offset = (bralink == NULL)? 0 : (int)(code - bralink); in compile_branch()
6192 bralink = code; in compile_branch()
6193 PUTINC(code, 0, offset); in compile_branch()
6196 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6217 code += len; in compile_branch()
6226 int offset = (int)(code - bralink + 1); in compile_branch()
6227 pcre_uchar *bra = code - offset; in compile_branch()
6230 *code++ = OP_KET; in compile_branch()
6231 PUTINC(code, 0, offset); in compile_branch()
6263 pcre_uchar *ketcode = code - 1 - LINK_SIZE; in compile_branch()
6316 int nlen = (int)(code - bracode); in compile_branch()
6317 *code = OP_END; in compile_branch()
6320 code += 1 + LINK_SIZE; in compile_branch()
6323 *code++ = OP_KETRPOS; in compile_branch()
6324 PUTINC(code, 0, nlen); in compile_branch()
6433 len = (int)(code - tempcode); in compile_branch()
6451 *code = OP_END; in compile_branch()
6454 code += 1 + LINK_SIZE; in compile_branch()
6457 *code++ = OP_KET; in compile_branch()
6458 PUTINC(code, 0, len); in compile_branch()
6500 *code = OP_END; in compile_branch()
6503 code += 1 + LINK_SIZE; in compile_branch()
6506 *code++ = OP_KET; in compile_branch()
6507 PUTINC(code, 0, len); in compile_branch()
6607 *code++ = OP_CLOSE; in compile_branch()
6608 PUT2INC(code, 0, oc->number); in compile_branch()
6610 setverb = *code++ = in compile_branch()
6626 setverb = *code++ = verbs[i].op; in compile_branch()
6636 setverb = *code++ = verbs[i].op_arg; in compile_branch()
6640 *code++ = 0; in compile_branch()
6644 *code++ = arglen; in compile_branch()
6645 memcpy(code, arg, IN_UCHARS(arglen)); in compile_branch()
6646 code += arglen; in compile_branch()
6648 *code++ = 0; in compile_branch()
6757 code[1+LINK_SIZE] = OP_CREF; in compile_branch()
6771 code[1+LINK_SIZE] = OP_RREF; /* Change the type of test */ in compile_branch()
6870 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6905 PUT2(code, 2+LINK_SIZE, offset); in compile_branch()
6906 PUT2(code, 2+LINK_SIZE+IMM2_SIZE, count); in compile_branch()
6908 code[1+LINK_SIZE]++; in compile_branch()
6912 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6949 code[1+LINK_SIZE] = OP_RREF; /* Change test type */ in compile_branch()
6950 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6958 code[1+LINK_SIZE] = OP_DEF; in compile_branch()
6992 *code++ = OP_FAIL; in compile_branch()
7036 previous_callout = code; /* Save for later completion */ in compile_branch()
7038 *code++ = OP_CALLOUT; in compile_branch()
7054 *code++ = n; in compile_branch()
7055 PUT(code, 0, (int)(ptr - cd->start_pattern + 1)); /* Pattern offset */ in compile_branch()
7056 PUT(code, LINK_SIZE, 0); /* Default length */ in compile_branch()
7057 code += 2 * LINK_SIZE; in compile_branch()
7357 previous = code; in compile_branch()
7359 *code++ = ((options & PCRE_CASELESS) != 0)? OP_DNREFI : OP_DNREF; in compile_branch()
7360 PUT2INC(code, 0, index); in compile_branch()
7361 PUT2INC(code, 0, count); in compile_branch()
7484 previous = code; in compile_branch()
7497 *code = OP_END; in compile_branch()
7522 PUTINC(cd->hwm, 0, (int)(code + 1 - cd->start_code)); in compile_branch()
7535 could_be_empty(called, code, bcptr, utf, cd)) in compile_branch()
7546 *code = OP_RECURSE; in compile_branch()
7547 PUT(code, 1, (int)(called - cd->start_code)); in compile_branch()
7548 code += 1 + LINK_SIZE; in compile_branch()
7615 if (code == cd->start_code + 1 + LINK_SIZE && in compile_branch()
7660 PUT2(code, 1+LINK_SIZE, cd->bracount); in compile_branch()
7689 previous = code; in compile_branch()
7693 *code = bravalue; in compile_branch()
7694 tempcode = code; in compile_branch()
7727 *code = OP_ONCE_NC; in compile_branch()
7743 pcre_uchar *tc = code; in compile_branch()
7755 if (code[LINK_SIZE+1] == OP_DEF) in compile_branch()
7801 code++; /* This already contains bravalue */ in compile_branch()
7802 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7803 *code++ = OP_KET; in compile_branch()
7804 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7810 code = tempcode; in compile_branch()
8006 previous = code; in compile_branch()
8008 *code++ = ((options & PCRE_CASELESS) != 0)? OP_REFI : OP_REF; in compile_branch()
8009 PUT2INC(code, 0, recno); in compile_branch()
8036 previous = code; in compile_branch()
8038 *code++ = ((escape == ESC_p) != negated)? OP_PROP : OP_NOTPROP; in compile_branch()
8039 *code++ = ptype; in compile_branch()
8040 *code++ = pdata; in compile_branch()
8077 previous = (escape > ESC_b && escape < ESC_Z)? code : NULL; in compile_branch()
8079 *code++ = (!utf && escape == ESC_C)? OP_ALLANY : escape; in compile_branch()
8121 previous = code; in compile_branch()
8134 *code++ = OP_PROP; in compile_branch()
8135 *code++ = PT_CLIST; in compile_branch()
8136 *code++ = c; in compile_branch()
8146 *code++ = ((options & PCRE_CASELESS) != 0)? OP_CHARI : OP_CHAR; in compile_branch()
8147 for (c = 0; c < mclength; c++) *code++ = mcbuffer[c]; in compile_branch()
8176 reqchar = code[-1]; in compile_branch()
8194 reqchar = code[-1]; in compile_branch()
8256 pcre_uchar *code = *codeptr; in compile_regex() local
8257 pcre_uchar *last_branch = code; in compile_regex()
8258 pcre_uchar *start_bracket = code; in compile_regex()
8283 bc.current_branch = code; in compile_regex()
8310 if (*code == OP_CBRA) in compile_regex()
8312 capnumber = GET2(code, 1 + LINK_SIZE); in compile_regex()
8321 PUT(code, 1, 0); in compile_regex()
8322 code += 1 + LINK_SIZE + skipbytes; in compile_regex()
8338 *code++ = OP_REVERSE; in compile_regex()
8339 reverse_count = code; in compile_regex()
8340 PUTINC(code, 0, 0); in compile_regex()
8347 if (!compile_branch(&options, &code, &ptr, errorcodeptr, &branchfirstchar, in compile_regex()
8429 *code = OP_END; in compile_regex()
8464 int branch_length = (int)(code - last_branch); in compile_regex()
8477 *code = OP_KET; in compile_regex()
8478 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8479 code += 1 + LINK_SIZE; in compile_regex()
8490 *code = OP_END; in compile_regex()
8494 IN_UCHARS(code - start_bracket)); in compile_regex()
8496 code += 1 + LINK_SIZE; in compile_regex()
8497 PUT(start_bracket, 1, (int)(code - start_bracket)); in compile_regex()
8498 *code = OP_KET; in compile_regex()
8499 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8500 code += 1 + LINK_SIZE; in compile_regex()
8512 *codeptr = code; in compile_regex()
8541 code = *codeptr + 1 + LINK_SIZE + skipbytes; in compile_regex()
8546 *code = OP_ALT; in compile_regex()
8547 PUT(code, 1, (int)(code - last_branch)); in compile_regex()
8548 bc.current_branch = last_branch = code; in compile_regex()
8549 code += 1 + LINK_SIZE; in compile_regex()
8602 is_anchored(register const pcre_uchar *code, unsigned int bracket_map, in is_anchored() argument
8607 code + PRIV(OP_lengths)[*code], FALSE); in is_anchored()
8659 code += GET(code, 1); in is_anchored()
8661 while (*code == OP_ALT); /* Loop for each alternative */ in is_anchored()
8692 is_startline(const pcre_uchar *code, unsigned int bracket_map, in is_startline() argument
8697 code + PRIV(OP_lengths)[*code], FALSE); in is_startline()
8783 code += GET(code, 1); in is_startline()
8785 while (*code == OP_ALT); /* Loop for each alternative */ in is_startline()
8813 find_firstassertedchar(const pcre_uchar *code, pcre_int32 *flags, in find_firstassertedchar() argument
8823 int xl = (*code == OP_CBRA || *code == OP_SCBRA || in find_firstassertedchar()
8824 *code == OP_CBRAPOS || *code == OP_SCBRAPOS)? IMM2_SIZE:0; in find_firstassertedchar()
8825 const pcre_uchar *scode = first_significant_code(code + 1+LINK_SIZE + xl, in find_firstassertedchar()
8876 code += GET(code, 1); in find_firstassertedchar()
8878 while (*code == OP_ALT); in find_firstassertedchar()
9013 pcre_uchar *code; in pcre_compile2() local
9323 code = cworkspace; in pcre_compile2()
9324 *code = OP_BRA; in pcre_compile2()
9326 (void)compile_regex(cd->external_options, &code, &ptr, &errorcode, FALSE, in pcre_compile2()
9424 code = (pcre_uchar *)codestart; in pcre_compile2()
9425 *code = OP_BRA; in pcre_compile2()
9426 (void)compile_regex(re->options, &code, &ptr, &errorcode, FALSE, FALSE, 0, 0, in pcre_compile2()
9446 *code++ = OP_END; in pcre_compile2()
9449 if (code - codestart > length) errorcode = ERR23; in pcre_compile2()
9456 VALGRIND_MAKE_MEM_NOACCESS(code, (length - (code - codestart)) * sizeof(pcre_uchar)); in pcre_compile2()
9704 if (code - codestart > length) in pcre_compile2()
9719 if (could_be_empty_branch(codestart, code, utf, cd, NULL)) in pcre_compile2()