Lines Matching refs:code

1670 first_significant_code(const pcre_uchar *code, BOOL skipassert)  in first_significant_code()  argument
1674 switch ((int)*code) in first_significant_code()
1679 if (!skipassert) return code; in first_significant_code()
1680 do code += GET(code, 1); while (*code == OP_ALT); in first_significant_code()
1681 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1686 if (!skipassert) return code; in first_significant_code()
1695 code += PRIV(OP_lengths)[*code]; in first_significant_code()
1699 return code; in first_significant_code()
1737 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd, in find_fixedlength() argument
1743 register pcre_uchar *cc = code + 1 + LINK_SIZE; in find_fixedlength()
2081 PRIV(find_bracket)(const pcre_uchar *code, BOOL utf, int number) in PRIV()
2085 register pcre_uchar c = *code; in PRIV()
2093 if (c == OP_XCLASS) code += GET(code, 1); in PRIV()
2099 if (number < 0) return (pcre_uchar *)code; in PRIV()
2100 code += PRIV(OP_lengths)[c]; in PRIV()
2108 int n = (int)GET2(code, 1+LINK_SIZE); in PRIV()
2109 if (n == number) return (pcre_uchar *)code; in PRIV()
2110 code += PRIV(OP_lengths)[c]; in PRIV()
2131 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in PRIV()
2138 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in PRIV()
2139 code += 2; in PRIV()
2146 code += code[1]; in PRIV()
2152 code += PRIV(OP_lengths)[c]; in PRIV()
2217 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in PRIV()
2244 find_recurse(const pcre_uchar *code, BOOL utf) in find_recurse() argument
2248 register pcre_uchar c = *code; in find_recurse()
2250 if (c == OP_RECURSE) return code; in find_recurse()
2256 if (c == OP_XCLASS) code += GET(code, 1); in find_recurse()
2276 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in find_recurse()
2283 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in find_recurse()
2284 code += 2; in find_recurse()
2291 code += code[1]; in find_recurse()
2297 code += PRIV(OP_lengths)[c]; in find_recurse()
2362 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in find_recurse()
2397 could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty_branch() argument
2403 for (code = first_significant_code(code + PRIV(OP_lengths)[*code], TRUE); in could_be_empty_branch()
2404 code < endcode; in could_be_empty_branch()
2405 code = first_significant_code(code + PRIV(OP_lengths)[c], TRUE)) in could_be_empty_branch()
2409 c = *code; in could_be_empty_branch()
2416 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2417 c = *code; in could_be_empty_branch()
2430 const pcre_uchar *scode = cd->start_code + GET(code, 1); in could_be_empty_branch()
2442 if ((int)GET(tcode, 0) == (int)(code + 1 - cd->start_code)) return TRUE; in could_be_empty_branch()
2452 if (code >= scode && code <= endgroup) continue; /* Simple recursion */ in could_be_empty_branch()
2488 code += PRIV(OP_lengths)[c]; in could_be_empty_branch()
2489 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2490 c = *code; in could_be_empty_branch()
2500 do code += GET(code, 1); while (*code == OP_ALT); in could_be_empty_branch()
2501 c = *code; in could_be_empty_branch()
2513 if (GET(code, 1) == 0) return TRUE; /* Hit unclosed bracket */ in could_be_empty_branch()
2519 if (c == OP_COND && code[GET(code, 1)] != OP_ALT) in could_be_empty_branch()
2520 code += GET(code, 1); in could_be_empty_branch()
2526 if (!empty_branch && could_be_empty_branch(code, endcode, utf, cd, in could_be_empty_branch()
2528 code += GET(code, 1); in could_be_empty_branch()
2530 while (*code == OP_ALT); in could_be_empty_branch()
2534 c = *code; in could_be_empty_branch()
2550 ccode = code += GET(code, 1); in could_be_empty_branch()
2556 ccode = code + PRIV(OP_lengths)[OP_CLASS]; in could_be_empty_branch()
2650 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in could_be_empty_branch()
2658 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in could_be_empty_branch()
2659 code += 2; in could_be_empty_branch()
2706 if (utf && HAS_EXTRALEN(code[1])) code += GET_EXTRALEN(code[1]); in could_be_empty_branch()
2724 if (utf && HAS_EXTRALEN(code[1 + IMM2_SIZE])) code += GET_EXTRALEN(code[1 + IMM2_SIZE]); in could_be_empty_branch()
2735 code += code[1]; in could_be_empty_branch()
2772 could_be_empty(const pcre_uchar *code, const pcre_uchar *endcode, in could_be_empty() argument
2775 while (bcptr != NULL && bcptr->current_branch >= code) in could_be_empty()
2916 get_chr_property_list(const pcre_uchar *code, BOOL utf, in get_chr_property_list() argument
2919 pcre_uchar c = *code; in get_chr_property_list()
2933 code++; in get_chr_property_list()
2941 code += IMM2_SIZE; in get_chr_property_list()
2964 list[0] = *code; in get_chr_property_list()
2965 code++; in get_chr_property_list()
2991 return code; in get_chr_property_list()
2995 GETCHARINCTEST(chr, code); in get_chr_property_list()
2998 return code; in get_chr_property_list()
3003 GETCHARINCTEST(chr, code); in get_chr_property_list()
3023 return code; in get_chr_property_list()
3028 if (code[0] != PT_CLIST) in get_chr_property_list()
3030 list[2] = code[0]; in get_chr_property_list()
3031 list[3] = code[1]; in get_chr_property_list()
3032 return code + 2; in get_chr_property_list()
3037 clist_src = PRIV(ucd_caseless_sets) + code[1]; in get_chr_property_list()
3039 code += 2; in get_chr_property_list()
3046 list[2] = code[0]; in get_chr_property_list()
3047 list[3] = code[1]; in get_chr_property_list()
3048 return code; in get_chr_property_list()
3058 return code; in get_chr_property_list()
3066 end = code + GET(code, 0) - 1; in get_chr_property_list()
3069 end = code + 32 / sizeof(pcre_uchar); in get_chr_property_list()
3096 list[2] = (pcre_uint32)(end - code); in get_chr_property_list()
3121 compare_opcodes(const pcre_uchar *code, BOOL utf, const compile_data *cd, in compare_opcodes() argument
3152 c = *code; in compare_opcodes()
3158 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3164 do code += GET(code, 1); while (*code == OP_ALT); in compare_opcodes()
3165 c = *code; in compare_opcodes()
3185 switch(*(code - GET(code, 1))) in compare_opcodes()
3200 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3207 next_code = code + GET(code, 1); in compare_opcodes()
3208 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3212 if (!compare_opcodes(code, utf, cd, base_list, base_end, rec_limit)) in compare_opcodes()
3214 code = next_code + 1 + LINK_SIZE; in compare_opcodes()
3224 next_code = code + 1; in compare_opcodes()
3236 code += PRIV(OP_lengths)[c]; in compare_opcodes()
3245 code = get_chr_property_list(code, utf, cd->fcc, list); in compare_opcodes()
3246 if (code == NULL) return FALSE; /* Unsupported */ in compare_opcodes()
3282 set1 = (pcre_uint8 *)(code - list[2]); in compare_opcodes()
3292 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3297 xclass_flags = (list_ptr == list ? code : base_end) - list_ptr[2] + LINK_SIZE; in compare_opcodes()
3613 ((list_ptr == list ? code : base_end) - list_ptr[2]); in compare_opcodes()
3619 if (PRIV(xclass)(chr, (list_ptr == list ? code : base_end) - in compare_opcodes()
3660 auto_possessify(pcre_uchar *code, BOOL utf, const compile_data *cd) in auto_possessify() argument
3670 c = *code; in auto_possessify()
3684 get_chr_property_list(code, utf, cd->fcc, list) : NULL; in auto_possessify()
3693 *code += OP_POSSTAR - OP_STAR; in auto_possessify()
3697 *code += OP_POSSTAR - OP_MINSTAR; in auto_possessify()
3701 *code += OP_POSPLUS - OP_PLUS; in auto_possessify()
3705 *code += OP_POSPLUS - OP_MINPLUS; in auto_possessify()
3709 *code += OP_POSQUERY - OP_QUERY; in auto_possessify()
3713 *code += OP_POSQUERY - OP_MINQUERY; in auto_possessify()
3717 *code += OP_POSUPTO - OP_UPTO; in auto_possessify()
3721 *code += OP_POSUPTO - OP_MINUPTO; in auto_possessify()
3725 c = *code; in auto_possessify()
3731 repeat_opcode = code + GET(code, 1); in auto_possessify()
3734 repeat_opcode = code + 1 + (32 / sizeof(pcre_uchar)); in auto_possessify()
3740 end = get_chr_property_list(code, utf, cd->fcc, list); in auto_possessify()
3771 c = *code; in auto_possessify()
3788 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) code += 2; in auto_possessify()
3795 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in auto_possessify()
3796 code += 2; in auto_possessify()
3801 code += GET(code, 1); in auto_possessify()
3809 code += code[1]; in auto_possessify()
3815 code += PRIV(OP_lengths)[c]; in auto_possessify()
3880 if (HAS_EXTRALEN(code[-1])) code += GET_EXTRALEN(code[-1]); in auto_possessify()
4077 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) in auto_callout() argument
4079 *code++ = OP_CALLOUT; in auto_callout()
4080 *code++ = 255; in auto_callout()
4081 PUT(code, 0, (int)(ptr - cd->start_pattern)); /* Pattern offset */ in auto_callout()
4082 PUT(code, LINK_SIZE, 0); /* Default length */ in auto_callout()
4083 return code + 2 * LINK_SIZE; in auto_callout()
4474 register pcre_uchar *code = *codeptr; in compile_branch() local
4475 pcre_uchar *last_code = code; in compile_branch()
4476 pcre_uchar *orig_code = code; in compile_branch()
4594 if (code > cd->hwm) cd->hwm = code; /* High water info */ in compile_branch()
4596 if (code > cd->start_workspace + cd->workspace_size - in compile_branch()
4599 *errorcodeptr = (code >= cd->start_workspace + cd->workspace_size)? in compile_branch()
4610 if (code < last_code) code = last_code; in compile_branch()
4614 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4620 *lengthptr += (int)(code - last_code); in compile_branch()
4622 (int)(code - last_code), c, c)); in compile_branch()
4632 memmove(orig_code, previous, IN_UCHARS(code - previous)); in compile_branch()
4633 code -= previous - orig_code; in compile_branch()
4637 else code = orig_code; in compile_branch()
4642 last_code = code; in compile_branch()
4675 previous_callout = code; in compile_branch()
4676 code = auto_callout(code, ptr, cd); in compile_branch()
4761 previous_callout = code; in compile_branch()
4762 code = auto_callout(code, ptr, cd); in compile_branch()
4777 *codeptr = code; in compile_branch()
4781 if (OFLOW_MAX - *lengthptr < code - last_code) in compile_branch()
4786 *lengthptr += (int)(code - last_code); /* To include callout length */ in compile_branch()
4802 *code++ = OP_CIRCM; in compile_branch()
4804 else *code++ = OP_CIRC; in compile_branch()
4809 *code++ = ((options & PCRE_MULTILINE) != 0)? OP_DOLLM : OP_DOLL; in compile_branch()
4821 previous = code; in compile_branch()
4823 *code++ = ((options & PCRE_DOTALL) != 0)? OP_ALLANY: OP_ANY; in compile_branch()
4873 previous = code; in compile_branch()
4917 *code++ = negate_class? OP_ALLANY : OP_FAIL; in compile_branch()
4935 class_uchardata = code + LINK_SIZE + 2; /* For XCLASS items */ in compile_branch()
5482 *code++ = OP_NOTPROP; in compile_branch()
5483 *code++ = PT_CLIST; in compile_branch()
5484 *code++ = d; in compile_branch()
5491 *code++ = ((options & PCRE_CASELESS) != 0)? OP_NOTI: OP_NOT; in compile_branch()
5494 code += PRIV(ord2utf)(c, code); in compile_branch()
5497 *code++ = c; in compile_branch()
5611 *code++ = OP_XCLASS; in compile_branch()
5612 code += LINK_SIZE; in compile_branch()
5613 *code = negate_class? XCL_NOT:0; in compile_branch()
5614 if (xclass_has_prop) *code |= XCL_HASPROP; in compile_branch()
5621 *code++ |= XCL_MAP; in compile_branch()
5622 memmove(code + (32 / sizeof(pcre_uchar)), code, in compile_branch()
5623 IN_UCHARS(class_uchardata - code)); in compile_branch()
5626 memcpy(code, classbits, 32); in compile_branch()
5627 code = class_uchardata + (32 / sizeof(pcre_uchar)); in compile_branch()
5629 else code = class_uchardata; in compile_branch()
5633 PUT(previous, 1, (int)(code - previous)); in compile_branch()
5650 *code++ = (negate_class == should_flip_negation) ? OP_CLASS : OP_NCLASS; in compile_branch()
5655 memcpy(code, classbits, 32); in compile_branch()
5657 code += 32 / sizeof(pcre_uchar); in compile_branch()
5789 code += 2 + 2 * LINK_SIZE; in compile_branch()
5829 if (utf && NOT_FIRSTCHAR(code[-1])) in compile_branch()
5831 pcre_uchar *lastchar = code - 1; in compile_branch()
5833 c = (int)(code - lastchar); /* Length of UTF-8 character */ in compile_branch()
5843 c = code[-1]; in compile_branch()
5876 oldcode = code; in compile_branch()
5877 code = previous; /* Usually overwrite previous item */ in compile_branch()
5893 if (repeat_max == -1) *code++ = OP_STAR + repeat_type; in compile_branch()
5894 else if (repeat_max == 1) *code++ = OP_QUERY + repeat_type; in compile_branch()
5897 *code++ = OP_UPTO + repeat_type; in compile_branch()
5898 PUT2INC(code, 0, repeat_max); in compile_branch()
5910 *code++ = OP_PLUS + repeat_type; in compile_branch()
5913 code = oldcode; /* leave previous item in place */ in compile_branch()
5915 *code++ = OP_UPTO + repeat_type; in compile_branch()
5916 PUT2INC(code, 0, repeat_max - 1); in compile_branch()
5925 *code++ = OP_EXACT + op_type; /* NB EXACT doesn't have repeat_type */ in compile_branch()
5926 PUT2INC(code, 0, repeat_min); in compile_branch()
5939 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5940 code += c & 7; in compile_branch()
5945 *code++ = c; in compile_branch()
5948 *code++ = prop_type; in compile_branch()
5949 *code++ = prop_value; in compile_branch()
5952 *code++ = OP_STAR + repeat_type; in compile_branch()
5964 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5965 code += c & 7; in compile_branch()
5969 *code++ = c; in compile_branch()
5972 *code++ = prop_type; in compile_branch()
5973 *code++ = prop_value; in compile_branch()
5979 *code++ = OP_QUERY + repeat_type; in compile_branch()
5983 *code++ = OP_UPTO + repeat_type; in compile_branch()
5984 PUT2INC(code, 0, repeat_max); in compile_branch()
5994 memcpy(code, utf_chars, IN_UCHARS(c & 7)); in compile_branch()
5995 code += c & 7; in compile_branch()
5999 *code++ = c; in compile_branch()
6007 *code++ = prop_type; in compile_branch()
6008 *code++ = prop_value; in compile_branch()
6025 code = previous; in compile_branch()
6030 *code++ = OP_CRSTAR + repeat_type; in compile_branch()
6032 *code++ = OP_CRPLUS + repeat_type; in compile_branch()
6034 *code++ = OP_CRQUERY + repeat_type; in compile_branch()
6037 *code++ = OP_CRRANGE + repeat_type; in compile_branch()
6038 PUT2INC(code, 0, repeat_min); in compile_branch()
6040 PUT2INC(code, 0, repeat_max); in compile_branch()
6056 int len = (int)(code - previous); in compile_branch()
6111 *code = OP_END; in compile_branch()
6114 code++; in compile_branch()
6135 *code = OP_END; in compile_branch()
6138 code += 2 + LINK_SIZE; in compile_branch()
6200 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6218 code += len; in compile_branch()
6264 *code++ = OP_BRAZERO + repeat_type; in compile_branch()
6272 *code++ = OP_BRA; in compile_branch()
6273 offset = (bralink == NULL)? 0 : (int)(code - bralink); in compile_branch()
6274 bralink = code; in compile_branch()
6275 PUTINC(code, 0, offset); in compile_branch()
6278 memcpy(code, previous, IN_UCHARS(len)); in compile_branch()
6299 code += len; in compile_branch()
6308 int offset = (int)(code - bralink + 1); in compile_branch()
6309 pcre_uchar *bra = code - offset; in compile_branch()
6312 *code++ = OP_KET; in compile_branch()
6313 PUTINC(code, 0, offset); in compile_branch()
6345 pcre_uchar *ketcode = code - 1 - LINK_SIZE; in compile_branch()
6398 int nlen = (int)(code - bracode); in compile_branch()
6399 *code = OP_END; in compile_branch()
6402 code += 1 + LINK_SIZE; in compile_branch()
6405 *code++ = OP_KETRPOS; in compile_branch()
6406 PUTINC(code, 0, nlen); in compile_branch()
6515 len = (int)(code - tempcode); in compile_branch()
6533 *code = OP_END; in compile_branch()
6536 code += 1 + LINK_SIZE; in compile_branch()
6539 *code++ = OP_KET; in compile_branch()
6540 PUTINC(code, 0, len); in compile_branch()
6582 *code = OP_END; in compile_branch()
6585 code += 1 + LINK_SIZE; in compile_branch()
6588 *code++ = OP_KET; in compile_branch()
6589 PUTINC(code, 0, len); in compile_branch()
6686 *code++ = OP_CLOSE; in compile_branch()
6687 PUT2INC(code, 0, oc->number); in compile_branch()
6690 setverb = *code++ = in compile_branch()
6706 setverb = *code++ = verbs[i].op; in compile_branch()
6716 setverb = *code++ = verbs[i].op_arg; in compile_branch()
6720 *code++ = 0; in compile_branch()
6724 *code++ = arglen; in compile_branch()
6725 memcpy(code, arg, IN_UCHARS(arglen)); in compile_branch()
6726 code += arglen; in compile_branch()
6728 *code++ = 0; in compile_branch()
6846 code[1+LINK_SIZE] = OP_CREF; in compile_branch()
6860 code[1+LINK_SIZE] = OP_RREF; /* Change the type of test */ in compile_branch()
6959 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
6995 PUT2(code, 2+LINK_SIZE, offset); in compile_branch()
6996 PUT2(code, 2+LINK_SIZE+IMM2_SIZE, count); in compile_branch()
6998 code[1+LINK_SIZE]++; in compile_branch()
7002 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
7039 code[1+LINK_SIZE] = OP_RREF; /* Change test type */ in compile_branch()
7040 PUT2(code, 2+LINK_SIZE, recno); in compile_branch()
7048 code[1+LINK_SIZE] = OP_DEF; in compile_branch()
7082 *code++ = OP_FAIL; in compile_branch()
7126 previous_callout = code; /* Save for later completion */ in compile_branch()
7128 *code++ = OP_CALLOUT; in compile_branch()
7144 *code++ = n; in compile_branch()
7145 PUT(code, 0, (int)(ptr - cd->start_pattern + 1)); /* Pattern offset */ in compile_branch()
7146 PUT(code, LINK_SIZE, 0); /* Default length */ in compile_branch()
7147 code += 2 * LINK_SIZE; in compile_branch()
7447 previous = code; in compile_branch()
7449 *code++ = ((options & PCRE_CASELESS) != 0)? OP_DNREFI : OP_DNREF; in compile_branch()
7450 PUT2INC(code, 0, index); in compile_branch()
7451 PUT2INC(code, 0, count); in compile_branch()
7574 previous = code; in compile_branch()
7587 *code = OP_END; in compile_branch()
7612 PUTINC(cd->hwm, 0, (int)(code + 1 - cd->start_code)); in compile_branch()
7625 could_be_empty(called, code, bcptr, utf, cd)) in compile_branch()
7636 *code = OP_RECURSE; in compile_branch()
7637 PUT(code, 1, (int)(called - cd->start_code)); in compile_branch()
7638 code += 1 + LINK_SIZE; in compile_branch()
7726 PUT2(code, 1+LINK_SIZE, cd->bracount); in compile_branch()
7755 previous = code; in compile_branch()
7759 *code = bravalue; in compile_branch()
7760 tempcode = code; in compile_branch()
7793 *code = OP_ONCE_NC; in compile_branch()
7809 pcre_uchar *tc = code; in compile_branch()
7821 if (code[LINK_SIZE+1] == OP_DEF) in compile_branch()
7867 code++; /* This already contains bravalue */ in compile_branch()
7868 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7869 *code++ = OP_KET; in compile_branch()
7870 PUTINC(code, 0, 1 + LINK_SIZE); in compile_branch()
7876 code = tempcode; in compile_branch()
8064 previous = code; in compile_branch()
8066 *code++ = ((options & PCRE_CASELESS) != 0)? OP_REFI : OP_REF; in compile_branch()
8067 PUT2INC(code, 0, recno); in compile_branch()
8094 previous = code; in compile_branch()
8096 *code++ = ((escape == ESC_p) != negated)? OP_PROP : OP_NOTPROP; in compile_branch()
8097 *code++ = ptype; in compile_branch()
8098 *code++ = pdata; in compile_branch()
8135 previous = (escape > ESC_b && escape < ESC_Z)? code : NULL; in compile_branch()
8137 *code++ = (!utf && escape == ESC_C)? OP_ALLANY : escape; in compile_branch()
8179 previous = code; in compile_branch()
8192 *code++ = OP_PROP; in compile_branch()
8193 *code++ = PT_CLIST; in compile_branch()
8194 *code++ = c; in compile_branch()
8204 *code++ = ((options & PCRE_CASELESS) != 0)? OP_CHARI : OP_CHAR; in compile_branch()
8205 for (c = 0; c < mclength; c++) *code++ = mcbuffer[c]; in compile_branch()
8233 reqchar = code[-1]; in compile_branch()
8251 reqchar = code[-1]; in compile_branch()
8313 pcre_uchar *code = *codeptr; in compile_regex() local
8314 pcre_uchar *last_branch = code; in compile_regex()
8315 pcre_uchar *start_bracket = code; in compile_regex()
8340 bc.current_branch = code; in compile_regex()
8367 if (*code == OP_CBRA) in compile_regex()
8369 capnumber = GET2(code, 1 + LINK_SIZE); in compile_regex()
8378 PUT(code, 1, 0); in compile_regex()
8379 code += 1 + LINK_SIZE + skipbytes; in compile_regex()
8395 *code++ = OP_REVERSE; in compile_regex()
8396 reverse_count = code; in compile_regex()
8397 PUTINC(code, 0, 0); in compile_regex()
8404 if (!compile_branch(&options, &code, &ptr, errorcodeptr, &branchfirstchar, in compile_regex()
8486 *code = OP_END; in compile_regex()
8521 int branch_length = (int)(code - last_branch); in compile_regex()
8534 *code = OP_KET; in compile_regex()
8535 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8536 code += 1 + LINK_SIZE; in compile_regex()
8547 *code = OP_END; in compile_regex()
8551 IN_UCHARS(code - start_bracket)); in compile_regex()
8553 code += 1 + LINK_SIZE; in compile_regex()
8554 PUT(start_bracket, 1, (int)(code - start_bracket)); in compile_regex()
8555 *code = OP_KET; in compile_regex()
8556 PUT(code, 1, (int)(code - start_bracket)); in compile_regex()
8557 code += 1 + LINK_SIZE; in compile_regex()
8569 *codeptr = code; in compile_regex()
8598 code = *codeptr + 1 + LINK_SIZE + skipbytes; in compile_regex()
8603 *code = OP_ALT; in compile_regex()
8604 PUT(code, 1, (int)(code - last_branch)); in compile_regex()
8605 bc.current_branch = last_branch = code; in compile_regex()
8606 code += 1 + LINK_SIZE; in compile_regex()
8659 is_anchored(register const pcre_uchar *code, unsigned int bracket_map, in is_anchored() argument
8664 code + PRIV(OP_lengths)[*code], FALSE); in is_anchored()
8716 code += GET(code, 1); in is_anchored()
8718 while (*code == OP_ALT); /* Loop for each alternative */ in is_anchored()
8750 is_startline(const pcre_uchar *code, unsigned int bracket_map, in is_startline() argument
8755 code + PRIV(OP_lengths)[*code], FALSE); in is_startline()
8841 code += GET(code, 1); in is_startline()
8843 while (*code == OP_ALT); /* Loop for each alternative */ in is_startline()
8871 find_firstassertedchar(const pcre_uchar *code, pcre_int32 *flags, in find_firstassertedchar() argument
8881 int xl = (*code == OP_CBRA || *code == OP_SCBRA || in find_firstassertedchar()
8882 *code == OP_CBRAPOS || *code == OP_SCBRAPOS)? IMM2_SIZE:0; in find_firstassertedchar()
8883 const pcre_uchar *scode = first_significant_code(code + 1+LINK_SIZE + xl, in find_firstassertedchar()
8934 code += GET(code, 1); in find_firstassertedchar()
8936 while (*code == OP_ALT); in find_firstassertedchar()
9071 pcre_uchar *code; in pcre_compile2() local
9381 code = cworkspace; in pcre_compile2()
9382 *code = OP_BRA; in pcre_compile2()
9384 (void)compile_regex(cd->external_options, &code, &ptr, &errorcode, FALSE, in pcre_compile2()
9482 code = (pcre_uchar *)codestart; in pcre_compile2()
9483 *code = OP_BRA; in pcre_compile2()
9484 (void)compile_regex(re->options, &code, &ptr, &errorcode, FALSE, FALSE, 0, 0, in pcre_compile2()
9504 *code++ = OP_END; in pcre_compile2()
9507 if (code - codestart > length) errorcode = ERR23; in pcre_compile2()
9514 VALGRIND_MAKE_MEM_NOACCESS(code, (length - (code - codestart)) * sizeof(pcre_uchar)); in pcre_compile2()
9762 if (code - codestart > length) in pcre_compile2()
9777 if (could_be_empty_branch(codestart, code, utf, cd, NULL)) in pcre_compile2()