Lines Matching refs:code

1650 first_significant_code(const pcre_uchar *code, BOOL skipassert)  in first_significant_code()  argument
1654 switch ((int)*code) in first_significant_code()
1659 if (!skipassert) return code; in first_significant_code()
1660 do code += GET(code, 1); while (*code == OP_ALT); in first_significant_code()
1661 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1666 if (!skipassert) return code; in first_significant_code()
1675 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1679 return code; in first_significant_code()
1717 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd, in find_fixedlength() argument
1723 register pcre_uchar *cc = code + 1 + LINK_SIZE; in find_fixedlength()
2061 PRIV(find_bracket)(const pcre_uchar *code, BOOL utf, int number) in PRIV()
2065 register pcre_uchar c = *code; in PRIV()
2073 if (c == OP_XCLASS) code += GET(code, 1); in PRIV()
2079 if (number < 0) return (pcre_uchar *)code; in PRIV()
2080 code += PRIV(OP_lengths)[c]; in PRIV()
2088 int n = (int)GET2(code, 1+LINK_SIZE); in PRIV()
2089 if (n == number) return (pcre_uchar *)code; in PRIV()
2090 code += PRIV(OP_lengths)[c]; in PRIV()
2111 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in PRIV()
2118 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in PRIV()
2119 code += 2; in PRIV()
2126 code += code[1]; in PRIV()
2132 code += PRIV(OP_lengths)[c]; in PRIV()
2197 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in PRIV()
2224 find_recurse(const pcre_uchar *code, BOOL utf) in find_recurse() argument
2228 register pcre_uchar c = *code; in find_recurse()
2230 if (c == OP_RECURSE) return code; in find_recurse()
2236 if (c == OP_XCLASS) code += GET(code, 1); in find_recurse()
2256 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in find_recurse()
2263 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in find_recurse()
2264 code += 2; in find_recurse()
2271 code += code[1]; in find_recurse()
2277 code += PRIV(OP_lengths)[c]; in find_recurse()
2342 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in find_recurse()
2377 could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty_branch() argument
2383 for (code = first_significant_code(code + PRIV(OP_lengths)[*code], TRUE); in could_be_empty_branch()
2384 code < endcode; in could_be_empty_branch()
2385 code = first_significant_code(code + PRIV(OP_lengths)[c], TRUE)) in could_be_empty_branch()
2389 c = *code; in could_be_empty_branch()
2396 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2397 c = *code; in could_be_empty_branch()
2410 const pcre_uchar *scode = cd->start_code + GET(code, 1); in could_be_empty_branch()
2422 if ((int)GET(tcode, 0) == (int)(code + 1 - cd->start_code)) return TRUE; in could_be_empty_branch()
2432 if (code >= scode && code <= endgroup) continue; /* Simple recursion */ in could_be_empty_branch()
2468 code += PRIV(OP_lengths)[c]; in could_be_empty_branch()
2469 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2470 c = *code; in could_be_empty_branch()
2480 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2481 c = *code; in could_be_empty_branch()
2493 if (GET(code, 1) == 0) return TRUE; /* Hit unclosed bracket */ in could_be_empty_branch()
2499 if (c == OP_COND && code[GET(code, 1)] != OP_ALT) in could_be_empty_branch()
2500 code += GET(code, 1); in could_be_empty_branch()
2506 if (!empty_branch && could_be_empty_branch(code, endcode, utf, cd, in could_be_empty_branch()
2508 code += GET(code, 1); in could_be_empty_branch()
2510 while (*code == OP_ALT); in could_be_empty_branch()
2514 c = *code; in could_be_empty_branch()
2530 ccode = code += GET(code, 1); in could_be_empty_branch()
2536 ccode = code + PRIV(OP_lengths)[OP_CLASS]; in could_be_empty_branch()
2630 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in could_be_empty_branch()
2638 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in could_be_empty_branch()
2639 code += 2; in could_be_empty_branch()
2686 if (utf && HAS_EXTRALEN(code[1])) code += GET_EXTRALEN(code[1]); in could_be_empty_branch()
2704 if (utf && HAS_EXTRALEN(code[1 + IMM2_SIZE])) code += GET_EXTRALEN(code[1 + IMM2_SIZE]); in could_be_empty_branch()
2715 code += code[1]; in could_be_empty_branch()
2752 could_be_empty(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty() argument
2755 while (bcptr != NULL && bcptr->current_branch >= code) in could_be_empty()
2896 get_chr_property_list(const pcre_uchar *code, BOOL utf, in get_chr_property_list() argument
2899 pcre_uchar c = *code; in get_chr_property_list()
2913 code++; in get_chr_property_list()
2921 code += IMM2_SIZE; in get_chr_property_list()
2944 list[0] = *code; in get_chr_property_list()
2945 code++; in get_chr_property_list()
2971 return code; in get_chr_property_list()
2975 GETCHARINCTEST(chr, code); in get_chr_property_list()
2978 return code; in get_chr_property_list()
2983 GETCHARINCTEST(chr, code); in get_chr_property_list()
3003 return code; in get_chr_property_list()
3008 if (code[0] != PT_CLIST) in get_chr_property_list()
3010 list[2] = code[0]; in get_chr_property_list()
3011 list[3] = code[1]; in get_chr_property_list()
3012 return code + 2; in get_chr_property_list()
3017 clist_src = PRIV(ucd_caseless_sets) + code[1]; in get_chr_property_list()
3019 code += 2; in get_chr_property_list()
3026 list[2] = code[0]; in get_chr_property_list()
3027 list[3] = code[1]; in get_chr_property_list()
3028 return code; in get_chr_property_list()
3038 return code; in get_chr_property_list()
3046 end = code + GET(code, 0) - 1; in get_chr_property_list()
3049 end = code + 32 / sizeof(pcre_uchar); in get_chr_property_list()
3076 list[2] = (pcre_uint32)(end - code); in get_chr_property_list()
3101 compare_opcodes(const pcre_uchar *code, BOOL utf, const compile_data *cd, in compare_opcodes() argument
3132 c = *code; in compare_opcodes()
3138 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3144 do code += GET(code, 1); while (*code == OP_ALT); in compare_opcodes()
3145 c = *code; in compare_opcodes()
3165 switch(*(code - GET(code, 1))) in compare_opcodes()
3180 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3187 next_code = code + GET(code, 1); in compare_opcodes()
3188 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3192 if (!compare_opcodes(code, utf, cd, base_list, base_end, rec_limit)) in compare_opcodes()
3194 code = next_code + 1 + LINK_SIZE; in compare_opcodes()
3204 next_code = code + 1; in compare_opcodes()
3216 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3225 code = get_chr_property_list(code, utf, cd->fcc, list); in compare_opcodes()
3226 if (code == NULL) return FALSE; /* Unsupported */ in compare_opcodes()
3262 set1 = (pcre_uint8 *)(code - list[2]); in compare_opcodes()
3272 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3277 xclass_flags = (list_ptr == list ? code : base_end) - list_ptr[2] + LINK_SIZE; in compare_opcodes()
3593 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3599 if (PRIV(xclass)(chr, (list_ptr == list ? code : base_end) - in compare_opcodes()
3640 auto_possessify(pcre_uchar *code, BOOL utf, const compile_data *cd) in auto_possessify() argument
3650 c = *code; in auto_possessify()
3664 get_chr_property_list(code, utf, cd->fcc, list) : NULL; in auto_possessify()
3673 *code += OP_POSSTAR - OP_STAR; in auto_possessify()
3677 *code += OP_POSSTAR - OP_MINSTAR; in auto_possessify()
3681 *code += OP_POSPLUS - OP_PLUS; in auto_possessify()
3685 *code += OP_POSPLUS - OP_MINPLUS; in auto_possessify()
3689 *code += OP_POSQUERY - OP_QUERY; in auto_possessify()
3693 *code += OP_POSQUERY - OP_MINQUERY; in auto_possessify()
3697 *code += OP_POSUPTO - OP_UPTO; in auto_possessify()
3701 *code += OP_POSUPTO - OP_MINUPTO; in auto_possessify()
3705 c = *code; in auto_possessify()
3711 repeat_opcode = code + GET(code, 1); in auto_possessify()
3714 repeat_opcode = code + 1 + (32 / sizeof(pcre_uchar)); in auto_possessify()
3720 end = get_chr_property_list(code, utf, cd->fcc, list); in auto_possessify()
3751 c = *code; in auto_possessify()
3768 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in auto_possessify()
3775 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in auto_possessify()
3776 code += 2; in auto_possessify()
3781 code += GET(code, 1); in auto_possessify()
3789 code += code[1]; in auto_possessify()
3795 code += PRIV(OP_lengths)[c]; in auto_possessify()
3860 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in auto_possessify()
4060 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) in auto_callout() argument
4062 *code++ = OP_CALLOUT; in auto_callout()
4063 *code++ = 255; in auto_callout()
4064 PUT(code, 0, (int)(ptr - cd->start_pattern)); /* Pattern offset */ in auto_callout()
4065 PUT(code, LINK_SIZE, 0); /* Default length */ in auto_callout()
4066 return code + 2 * LINK_SIZE; in auto_callout()
4457 register pcre_uchar *code = *codeptr; in compile_branch() local
4458 pcre_uchar *last_code = code; in compile_branch()
4459 pcre_uchar *orig_code = code; in compile_branch()
4573 if (code > cd->hwm) cd->hwm = code; /* High water info */ in compile_branch()
4575 if (code > cd->start_workspace + cd->workspace_size - in compile_branch()
4588 if (code < last_code) code = last_code; in compile_branch()
4592 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4598 *lengthptr += (int)(code - last_code); in compile_branch()
4600 (int)(code - last_code), c, c)); in compile_branch()
4610 memmove(orig_code, previous, IN_UCHARS(code - previous)); in compile_branch()
4611 code -= previous - orig_code; in compile_branch()
4615 else code = orig_code; in compile_branch()
4620 last_code = code; in compile_branch()
4653 previous_callout = code; in compile_branch()
4654 code = auto_callout(code, ptr, cd); in compile_branch()
4709 previous_callout = code; in compile_branch()
4710 code = auto_callout(code, ptr, cd); in compile_branch()
4725 *codeptr = code; in compile_branch()
4729 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4734 *lengthptr += (int)(code - last_code); /* To include callout length */ in compile_branch()
4750 *code++ = OP_CIRCM; in compile_branch()
4752 else *code++ = OP_CIRC; in compile_branch()
4757 *code++ = ((options & PCRE_MULTILINE) != 0)? OP_DOLLM : OP_DOLL; in compile_branch()
4769 previous = code; in compile_branch()
4770 *code++ = ((options & PCRE_DOTALL) != 0)? OP_ALLANY: OP_ANY; in compile_branch()
4820 previous = code; in compile_branch()
4863 *code++ = negate_class? OP_ALLANY : OP_FAIL; in compile_branch()
4881 class_uchardata = code + LINK_SIZE + 2; /* For XCLASS items */ in compile_branch()
5402 *code++ = OP_NOTPROP; in compile_branch()
5403 *code++ = PT_CLIST; in compile_branch()
5404 *code++ = d; in compile_branch()
5411 *code++ = ((options & PCRE_CASELESS) != 0)? OP_NOTI: OP_NOT; in compile_branch()
5414 code += PRIV(ord2utf)(c, code); in compile_branch()
5417 *code++ = c; in compile_branch()
5502 *code++ = OP_XCLASS; in compile_branch()
5503 code += LINK_SIZE; in compile_branch()
5504 *code = negate_class? XCL_NOT:0; in compile_branch()
5505 if (xclass_has_prop) *code |= XCL_HASPROP; in compile_branch()
5512 *code++ |= XCL_MAP; in compile_branch()
5513 memmove(code + (32 / sizeof(pcre_uchar)), code, in compile_branch()
5514 IN_UCHARS(class_uchardata - code)); in compile_branch()
5517 memcpy(code, classbits, 32); in compile_branch()
5518 code = class_uchardata + (32 / sizeof(pcre_uchar)); in compile_branch()
5520 else code = class_uchardata; in compile_branch()
5524 PUT(previous, 1, (int)(code - previous)); in compile_branch()
5541 *code++ = (negate_class == should_flip_negation) ? OP_CLASS : OP_NCLASS; in compile_branch()
5546 memcpy(code, classbits, 32); in compile_branch()
5548 code += 32 / sizeof(pcre_uchar); in compile_branch()
5665 code += 2 + 2 * LINK_SIZE; in compile_branch()
5705 if (utf && NOT_FIRSTCHAR(code[-1])) in compile_branch()
5707 pcre_uchar *lastchar = code - 1; in compile_branch()
5709 c = (int)(code - lastchar); /* Length of UTF-8 character */ in compile_branch()
5719 c = code[-1]; in compile_branch()
5752 oldcode = code; in compile_branch()
5753 code = previous; /* Usually overwrite previous item */ in compile_branch()
5769 if (repeat_max == -1) *code++ = OP_STAR + repeat_type; in compile_branch()
5770 else if (repeat_max == 1) *code++ = OP_QUERY + repeat_type; in compile_branch()
5773 *code++ = OP_UPTO + repeat_type; in compile_branch()
5774 PUT2INC(code, 0, repeat_max); in compile_branch()
5786 *code++ = OP_PLUS + repeat_type; in compile_branch()
5789 code = oldcode; /* leave previous item in place */ in compile_branch()
5791 *code++ = OP_UPTO + repeat_type; in compile_branch()
5792 PUT2INC(code, 0, repeat_max - 1); in compile_branch()
5801 *code++ = OP_EXACT + op_type; /* NB EXACT doesn't have repeat_type */ in compile_branch()
5802 PUT2INC(code, 0, repeat_min); in compile_branch()
5815 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5816 code += c & 7; in compile_branch()
5821 *code++ = c; in compile_branch()
5824 *code++ = prop_type; in compile_branch()
5825 *code++ = prop_value; in compile_branch()
5828 *code++ = OP_STAR + repeat_type; in compile_branch()
5840 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5841 code += c & 7; in compile_branch()
5845 *code++ = c; in compile_branch()
5848 *code++ = prop_type; in compile_branch()
5849 *code++ = prop_value; in compile_branch()
5855 *code++ = OP_QUERY + repeat_type; in compile_branch()
5859 *code++ = OP_UPTO + repeat_type; in compile_branch()
5860 PUT2INC(code, 0, repeat_max); in compile_branch()
5870 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5871 code += c & 7; in compile_branch()
5875 *code++ = c; in compile_branch()
5883 *code++ = prop_type; in compile_branch()
5884 *code++ = prop_value; in compile_branch()
5901 code = previous; in compile_branch()
5906 *code++ = OP_CRSTAR + repeat_type; in compile_branch()
5908 *code++ = OP_CRPLUS + repeat_type; in compile_branch()
5910 *code++ = OP_CRQUERY + repeat_type; in compile_branch()
5913 *code++ = OP_CRRANGE + repeat_type; in compile_branch()
5914 PUT2INC(code, 0, repeat_min); in compile_branch()
5916 PUT2INC(code, 0, repeat_max); in compile_branch()
5932 int len = (int)(code - previous); in compile_branch()
5987 *code = OP_END; in compile_branch()
5990 code++; in compile_branch()
6011 *code = OP_END; in compile_branch()
6014 code += 2 + LINK_SIZE; in compile_branch()
6076 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6094 code += len; in compile_branch()
6140 *code++ = OP_BRAZERO + repeat_type; in compile_branch()
6148 *code++ = OP_BRA; in compile_branch()
6149 offset = (bralink == NULL)? 0 : (int)(code - bralink); in compile_branch()
6150 bralink = code; in compile_branch()
6151 PUTINC(code, 0, offset); in compile_branch()
6154 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6175 code += len; in compile_branch()
6184 int offset = (int)(code - bralink + 1); in compile_branch()
6185 pcre_uchar *bra = code - offset; in compile_branch()
6188 *code++ = OP_KET; in compile_branch()
6189 PUTINC(code, 0, offset); in compile_branch()
6221 pcre_uchar *ketcode = code - 1 - LINK_SIZE; in compile_branch()
6268 int nlen = (int)(code - bracode); in compile_branch()
6269 *code = OP_END; in compile_branch()
6272 code += 1 + LINK_SIZE; in compile_branch()
6275 *code++ = OP_KETRPOS; in compile_branch()
6276 PUTINC(code, 0, nlen); in compile_branch()
6385 len = (int)(code - tempcode); in compile_branch()
6403 *code = OP_END; in compile_branch()
6406 code += 1 + LINK_SIZE; in compile_branch()
6409 *code++ = OP_KET; in compile_branch()
6410 PUTINC(code, 0, len); in compile_branch()
6452 *code = OP_END; in compile_branch()
6455 code += 1 + LINK_SIZE; in compile_branch()
6458 *code++ = OP_KET; in compile_branch()
6459 PUTINC(code, 0, len); in compile_branch()
6559 *code++ = OP_CLOSE; in compile_branch()
6560 PUT2INC(code, 0, oc->number); in compile_branch()
6562 setverb = *code++ = in compile_branch()
6578 setverb = *code++ = verbs[i].op; in compile_branch()
6588 setverb = *code++ = verbs[i].op_arg; in compile_branch()
6589 *code++ = arglen; in compile_branch()
6590 memcpy(code, arg, IN_UCHARS(arglen)); in compile_branch()
6591 code += arglen; in compile_branch()
6592 *code++ = 0; in compile_branch()
6700 code[1+LINK_SIZE] = OP_CREF; in compile_branch()
6714 code[1+LINK_SIZE] = OP_RREF; /* Change the type of test */ in compile_branch()
6807 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6842 PUT2(code, 2+LINK_SIZE, offset); in compile_branch()
6843 PUT2(code, 2+LINK_SIZE+IMM2_SIZE, count); in compile_branch()
6845 code[1+LINK_SIZE]++; in compile_branch()
6849 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6881 code[1+LINK_SIZE] = OP_RREF; /* Change test type */ in compile_branch()
6882 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6890 code[1+LINK_SIZE] = OP_DEF; in compile_branch()
6924 *code++ = OP_FAIL; in compile_branch()
6968 previous_callout = code; /* Save for later completion */ in compile_branch()
6970 *code++ = OP_CALLOUT; in compile_branch()
6986 *code++ = n; in compile_branch()
6987 PUT(code, 0, (int)(ptr - cd->start_pattern + 1)); /* Pattern offset */ in compile_branch()
6988 PUT(code, LINK_SIZE, 0); /* Default length */ in compile_branch()
6989 code += 2 * LINK_SIZE; in compile_branch()
7249 previous = code; in compile_branch()
7250 *code++ = ((options & PCRE_CASELESS) != 0)? OP_DNREFI : OP_DNREF; in compile_branch()
7251 PUT2INC(code, 0, index); in compile_branch()
7252 PUT2INC(code, 0, count); in compile_branch()
7362 previous = code; in compile_branch()
7374 *code = OP_END; in compile_branch()
7399 PUTINC(cd->hwm, 0, (int)(code + 1 - cd->start_code)); in compile_branch()
7412 could_be_empty(called, code, bcptr, utf, cd)) in compile_branch()
7423 *code = OP_RECURSE; in compile_branch()
7424 PUT(code, 1, (int)(called - cd->start_code)); in compile_branch()
7425 code += 1 + LINK_SIZE; in compile_branch()
7492 if (code == cd->start_code + 1 + LINK_SIZE && in compile_branch()
7537 PUT2(code, 1+LINK_SIZE, cd->bracount); in compile_branch()
7564 else previous = code; in compile_branch()
7566 *code = bravalue; in compile_branch()
7567 tempcode = code; in compile_branch()
7600 *code = OP_ONCE_NC; in compile_branch()
7616 pcre_uchar *tc = code; in compile_branch()
7628 if (code[LINK_SIZE+1] == OP_DEF) in compile_branch()
7674 code++; /* This already contains bravalue */ in compile_branch()
7675 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7676 *code++ = OP_KET; in compile_branch()
7677 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7683 code = tempcode; in compile_branch()
7879 previous = code; in compile_branch()
7880 *code++ = ((options & PCRE_CASELESS) != 0)? OP_REFI : OP_REF; in compile_branch()
7881 PUT2INC(code, 0, recno); in compile_branch()
7908 previous = code; in compile_branch()
7909 *code++ = ((escape == ESC_p) != negated)? OP_PROP : OP_NOTPROP; in compile_branch()
7910 *code++ = ptype; in compile_branch()
7911 *code++ = pdata; in compile_branch()
7948 previous = (escape > ESC_b && escape < ESC_Z)? code : NULL; in compile_branch()
7949 *code++ = (!utf && escape == ESC_C)? OP_ALLANY : escape; in compile_branch()
7991 previous = code; in compile_branch()
8003 *code++ = OP_PROP; in compile_branch()
8004 *code++ = PT_CLIST; in compile_branch()
8005 *code++ = c; in compile_branch()
8015 *code++ = ((options & PCRE_CASELESS) != 0)? OP_CHARI : OP_CHAR; in compile_branch()
8016 for (c = 0; c < mclength; c++) *code++ = mcbuffer[c]; in compile_branch()
8045 reqchar = code[-1]; in compile_branch()
8063 reqchar = code[-1]; in compile_branch()
8125 pcre_uchar *code = *codeptr; in compile_regex() local
8126 pcre_uchar *last_branch = code; in compile_regex()
8127 pcre_uchar *start_bracket = code; in compile_regex()
8152 bc.current_branch = code; in compile_regex()
8179 if (*code == OP_CBRA) in compile_regex()
8181 capnumber = GET2(code, 1 + LINK_SIZE); in compile_regex()
8190 PUT(code, 1, 0); in compile_regex()
8191 code += 1 + LINK_SIZE + skipbytes; in compile_regex()
8207 *code++ = OP_REVERSE; in compile_regex()
8208 reverse_count = code; in compile_regex()
8209 PUTINC(code, 0, 0); in compile_regex()
8216 if (!compile_branch(&options, &code, &ptr, errorcodeptr, &branchfirstchar, in compile_regex()
8298 *code = OP_END; in compile_regex()
8333 int branch_length = (int)(code - last_branch); in compile_regex()
8346 *code = OP_KET; in compile_regex()
8347 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8348 code += 1 + LINK_SIZE; in compile_regex()
8359 *code = OP_END; in compile_regex()
8363 IN_UCHARS(code - start_bracket)); in compile_regex()
8365 code += 1 + LINK_SIZE; in compile_regex()
8366 PUT(start_bracket, 1, (int)(code - start_bracket)); in compile_regex()
8367 *code = OP_KET; in compile_regex()
8368 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8369 code += 1 + LINK_SIZE; in compile_regex()
8381 *codeptr = code; in compile_regex()
8410 code = *codeptr + 1 + LINK_SIZE + skipbytes; in compile_regex()
8415 *code = OP_ALT; in compile_regex()
8416 PUT(code, 1, (int)(code - last_branch)); in compile_regex()
8417 bc.current_branch = last_branch = code; in compile_regex()
8418 code += 1 + LINK_SIZE; in compile_regex()
8471 is_anchored(register const pcre_uchar *code, unsigned int bracket_map, in is_anchored() argument
8476 code + PRIV(OP_lengths)[*code], FALSE); in is_anchored()
8528 code += GET(code, 1); in is_anchored()
8530 while (*code == OP_ALT); /* Loop for each alternative */ in is_anchored()
8561 is_startline(const pcre_uchar *code, unsigned int bracket_map, in is_startline() argument
8566 code + PRIV(OP_lengths)[*code], FALSE); in is_startline()
8652 code += GET(code, 1); in is_startline()
8654 while (*code == OP_ALT); /* Loop for each alternative */ in is_startline()
8682 find_firstassertedchar(const pcre_uchar *code, pcre_int32 *flags, in find_firstassertedchar() argument
8692 int xl = (*code == OP_CBRA || *code == OP_SCBRA || in find_firstassertedchar()
8693 *code == OP_CBRAPOS || *code == OP_SCBRAPOS)? IMM2_SIZE:0; in find_firstassertedchar()
8694 const pcre_uchar *scode = first_significant_code(code + 1+LINK_SIZE + xl, in find_firstassertedchar()
8745 code += GET(code, 1); in find_firstassertedchar()
8747 while (*code == OP_ALT); in find_firstassertedchar()
8882 pcre_uchar *code; in pcre_compile2() local
9191 code = cworkspace; in pcre_compile2()
9192 *code = OP_BRA; in pcre_compile2()
9194 (void)compile_regex(cd->external_options, &code, &ptr, &errorcode, FALSE, in pcre_compile2()
9292 code = (pcre_uchar *)codestart; in pcre_compile2()
9293 *code = OP_BRA; in pcre_compile2()
9294 (void)compile_regex(re->options, &code, &ptr, &errorcode, FALSE, FALSE, 0, 0, in pcre_compile2()
9314 *code++ = OP_END; in pcre_compile2()
9317 if (code - codestart > length) errorcode = ERR23; in pcre_compile2()
9324 VALGRIND_MAKE_MEM_NOACCESS(code, (length - (code - codestart)) * sizeof(pcre_uchar)); in pcre_compile2()
9562 if (code - codestart > length) in pcre_compile2()
9577 if (could_be_empty_branch(codestart, code, utf, cd, NULL)) in pcre_compile2()