• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/pcre/

Lines Matching refs:ecode

496    ecode       pointer to current position in compiled code
513 match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
543 frame->Xecode = ecode;
556 #define ecode frame->Xecode
662 recursion. The second argument (ecode) being NULL triggers this behaviour. It
666 if (ecode == NULL)
752 op = *ecode;
757 md->nomatch_mark = ecode + 2;
759 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode] + ecode[1], offset_top, md,
762 md->mark == NULL) md->mark = ecode + 2;
772 STRCMP_UC_UC_TEST(ecode + 2, md->start_match_ptr) == 0)
783 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
789 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
795 md->nomatch_mark = ecode + 2;
797 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode] + ecode[1], offset_top, md,
800 md->mark == NULL) md->mark = ecode + 2;
805 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
823 ecode += PRIV(OP_lengths)[*ecode] + ecode[1];
826 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode] + ecode[1], offset_top, md,
835 md->start_match_ptr = ecode + 2;
843 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
846 md->start_match_ptr = ecode;
850 md->nomatch_mark = ecode + 2;
852 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode] + ecode[1], offset_top,
855 md->mark == NULL) md->mark = ecode + 2;
857 md->start_match_ptr = ecode;
874 prev = ecode;
879 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, eptrb, RM64);
887 next = ecode + GET(ecode,1);
889 (*ecode == OP_ALT || *next == OP_ALT))
894 ecode += GET(ecode,1);
897 while (*ecode == OP_ALT);
901 if (*ecode != OP_ONCE_NC && *ecode != OP_ALT) RRETURN(MATCH_NOMATCH);
906 do ecode += GET(ecode, 1); while (*ecode == OP_ALT);
916 if (*ecode == OP_KET || eptr == saved_eptr)
918 ecode += 1+LINK_SIZE;
926 if (*ecode == OP_KETRMIN)
928 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, eptrb, RM65);
930 ecode = prev;
937 ecode += 1 + LINK_SIZE;
958 number = GET2(ecode, 1+LINK_SIZE);
983 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
1000 next = ecode + GET(ecode,1);
1002 (*ecode == OP_ALT || *next == OP_ALT))
1010 ecode += GET(ecode, 1);
1012 if (*ecode != OP_ALT) break;
1070 else if (!md->hasthen && ecode[GET(ecode, 1)] != OP_ALT)
1072 ecode += PRIV(OP_lengths)[*ecode];
1080 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md, eptrb,
1088 next = ecode + GET(ecode,1);
1090 (*ecode == OP_ALT || *next == OP_ALT))
1098 const pcre_uchar *scode = ecode;
1108 ecode += GET(ecode, 1);
1110 if (*ecode != OP_ALT) break;
1129 number = GET2(ecode, 1+LINK_SIZE);
1142 code_offset = (int)(ecode - md->start_code);
1165 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
1170 ecode = md->start_code + code_offset;
1176 do ecode += GET(ecode, 1); while (*ecode == OP_ALT);
1188 next = ecode + GET(ecode,1);
1190 (*ecode == OP_ALT || *next == OP_ALT))
1196 ecode += GET(ecode, 1);
1197 if (*ecode != OP_ALT) break;
1209 ecode += 1 + LINK_SIZE;
1226 code_offset = (int)(ecode - md->start_code);
1232 RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode], offset_top, md,
1237 ecode = md->start_code + code_offset;
1242 do ecode += GET(ecode, 1); while (*ecode == OP_ALT);
1254 next = ecode + GET(ecode,1);
1256 (*ecode == OP_ALT || *next == OP_ALT))
1261 ecode += GET(ecode, 1);
1262 if (*ecode != OP_ALT) break;
1268 ecode += 1 + LINK_SIZE;
1283 /* The variable codelink will be added to ecode when the condition is
1285 or KET, then incrementing ecode achieves this effect. We now have ecode
1288 codelink = GET(ecode, 1); /* Offset to the second branch */
1289 ecode += 1 + LINK_SIZE; /* From this opcode */
1294 if (*ecode == OP_CALLOUT)
1300 cb.callout_number = ecode[1];
1312 cb.pattern_position = GET(ecode, 2);
1313 cb.next_item_length = GET(ecode, 2 + LINK_SIZE);
1324 /* Advance ecode past the callout, so it now points to the condition. We
1325 must adjust codelink so that the value of ecode+codelink is unchanged. */
1327 ecode += PRIV(OP_lengths)[OP_CALLOUT];
1334 switch(condcode = *ecode)
1339 unsigned int recno = GET2(ecode, 1); /* Recursion group number*/
1347 int count = GET2(ecode, 1 + IMM2_SIZE);
1348 pcre_uchar *slot = md->name_table + GET2(ecode, 1) * md->name_entry_size;
1360 offset = GET2(ecode, 1) << 1; /* Doubled ref number */
1366 int count = GET2(ecode, 1 + IMM2_SIZE);
1367 pcre_uchar *slot = md->name_table + GET2(ecode, 1) * md->name_entry_size;
1388 RMATCH(eptr, ecode, offset_top, md, NULL, RM3);
1395 /* Advance ecode past the assertion to the start of the first branch,
1400 if (*ecode == OP_BRAZERO) ecode++;
1401 ecode += GET(ecode, 1);
1402 while (*ecode == OP_ALT) ecode += GET(ecode, 1);
1403 ecode += 1 + LINK_SIZE - PRIV(OP_lengths)[condcode];
1419 ecode += condition? PRIV(OP_lengths)[condcode] : codelink;
1431 if (condition || ecode[-(1+LINK_SIZE)] == OP_ALT)
1439 RMATCH(eptr, ecode, offset_top, md, eptrb, RM49);
1455 number = GET2(ecode, 1); /* Must be less than 65536 */
1482 ecode += 1 + IMM2_SIZE;
1541 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, NULL, RM4);
1561 next = ecode + GET(ecode,1);
1563 (*ecode == OP_ALT || *next == OP_ALT))
1574 ecode += GET(ecode, 1);
1576 while (*ecode == OP_ALT); /* Continue for next alternative */
1581 if (*ecode == OP_KET) RRETURN(MATCH_NOMATCH);
1590 do ecode += GET(ecode,1); while (*ecode == OP_ALT);
1591 ecode += 1 + LINK_SIZE;
1612 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, NULL, RM5);
1628 next = ecode + GET(ecode,1);
1630 (*ecode == OP_ALT || *next == OP_ALT))
1646 do ecode += GET(ecode,1); while (*ecode == OP_ALT);
1657 ecode += GET(ecode,1);
1659 while (*ecode == OP_ALT);
1665 ecode += 1 + LINK_SIZE; /* Continue with current branch */
1677 i = GET(ecode, 1);
1691 eptr -= GET(ecode, 1);
1698 ecode += 1 + LINK_SIZE;
1710 cb.callout_number = ecode[1];
1722 cb.pattern_position = GET(ecode, 2);
1723 cb.next_item_length = GET(ecode, 2 + LINK_SIZE);
1733 ecode += 2 + 2*LINK_SIZE;
1758 callpat = md->start_code + GET(ecode, 1);
1780 ecode += 1 + LINK_SIZE;
1867 do ecode += GET(ecode,1); while (*ecode == OP_ALT);
1877 next = ecode + 1;
1881 ecode = next + 1 + LINK_SIZE;
1885 next = ecode + 1;
1889 ecode++;
1893 next = ecode+1;
1895 ecode = next + 1 + LINK_SIZE;
1902 op = *(++ecode);
1913 prev = ecode - GET(ecode, 1);
2004 if (*ecode == OP_KETRPOS)
2021 if (*ecode == OP_KET || eptr == saved_eptr)
2025 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, eptrb, RM12);
2030 ecode += 1 + LINK_SIZE; /* Carry on at this level */
2040 if (*ecode == OP_KETRMIN)
2042 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, eptrb, RM7);
2056 ecode = prev;
2066 RMATCH(eptr, ecode + 1 + LINK_SIZE, offset_top, md, eptrb, RM9);
2071 ecode += 1 + LINK_SIZE;
2085 ecode++;
2095 ecode++;
2102 ecode++;
2109 ecode++;
2137 ecode++;
2154 ecode++;
2179 ecode++;
2296 if ((*ecode++ == OP_WORD_BOUNDARY)?
2331 ecode++;
2344 ecode++;
2361 ecode++;
2378 ecode++;
2395 ecode++;
2412 ecode++;
2429 ecode++;
2446 ecode++;
2481 ecode++;
2496 ecode++;
2511 ecode++;
2526 ecode++;
2541 ecode++;
2560 switch(ecode[1])
2574 if ((ecode[2] != PRIV(ucp_gentype)[prop->chartype]) == (op == OP_PROP))
2579 if ((ecode[2] != prop->chartype) == (op == OP_PROP))
2584 if ((ecode[2] != prop->script) == (op == OP_PROP))
2624 cp = PRIV(ucd_caseless_sets) + ecode[2];
2647 ecode += 3;
2676 ecode++;
2708 int count = GET2(ecode, 1+IMM2_SIZE);
2709 pcre_uchar *slot = md->name_table + GET2(ecode, 1) * md->name_entry_size;
2710 ecode += 1 + 2*IMM2_SIZE;
2734 offset = GET2(ecode, 1) << 1; /* Doubled ref number */
2735 ecode += 1 + IMM2_SIZE;
2744 switch (*ecode)
2752 c = *ecode++ - OP_CRSTAR;
2761 minimize = (*ecode == OP_CRMINRANGE);
2762 min = GET2(ecode, 1);
2763 max = GET2(ecode, 1 + IMM2_SIZE);
2765 ecode += 1 + 2 * IMM2_SIZE;
2816 RMATCH(eptr, ecode, offset_top, md, eptrb, RM14);
2856 RMATCH(eptr, ecode, offset_top, md, eptrb, RM15);
2881 data = ecode + 1; /* Save for matching */
2882 ecode += 1 + (32 / sizeof(pcre_uchar)); /* Advance past the item */
2884 switch (*ecode)
2895 c = *ecode++ - OP_CRSTAR;
2906 minimize = (*ecode == OP_CRMINRANGE);
2907 possessive = (*ecode == OP_CRPOSRANGE);
2908 min = GET2(ecode, 1);
2909 max = GET2(ecode, 1 + IMM2_SIZE);
2911 ecode += 1 + 2 * IMM2_SIZE;
2978 RMATCH(eptr, ecode, offset_top, md, eptrb, RM16);
3001 RMATCH(eptr, ecode, offset_top, md, eptrb, RM17);
3054 RMATCH(eptr, ecode, offset_top, md, eptrb, RM18);
3087 RMATCH(eptr, ecode, offset_top, md, eptrb, RM19);
3108 data = ecode + 1 + LINK_SIZE; /* Save for matching */
3109 ecode += GET(ecode, 1); /* Advance past the item */
3111 switch (*ecode)
3122 c = *ecode++ - OP_CRSTAR;
3133 minimize = (*ecode == OP_CRMINRANGE);
3134 possessive = (*ecode == OP_CRPOSRANGE);
3135 min = GET2(ecode, 1);
3136 max = GET2(ecode, 1 + IMM2_SIZE);
3138 ecode += 1 + 2 * IMM2_SIZE;
3171 RMATCH(eptr, ecode, offset_top, md, eptrb, RM20);
3211 RMATCH(eptr, ecode, offset_top, md, eptrb, RM21);
3232 ecode++;
3233 GETCHARLEN(fc, ecode, length);
3239 while (length-- > 0) if (*ecode++ != UCHAR21INC(eptr)) RRETURN(MATCH_NOMATCH);
3250 if (ecode[1] != *eptr++) RRETURN(MATCH_NOMATCH);
3251 ecode += 2;
3269 ecode++;
3270 GETCHARLEN(fc, ecode, length);
3281 ecode++;
3293 ecode += length;
3312 if (TABLE_GET(ecode[1], md->lcc, ecode[1])
3315 ecode += 2;
3323 min = max = GET2(ecode, 1);
3324 ecode += 1 + IMM2_SIZE;
3337 max = GET2(ecode, 1);
3338 minimize = *ecode == OP_MINUPTO || *ecode == OP_MINUPTOI;
3339 ecode += 1 + IMM2_SIZE;
3347 ecode++;
3355 ecode++;
3363 ecode++;
3378 c = *ecode++ - ((op < OP_STARI)? OP_STAR : OP_STARI);
3406 charptr = ecode;
3407 GETCHARLEN(fc, ecode, length);
3408 ecode += length;
3445 RMATCH(eptr, ecode, offset_top, md, eptrb, RM22);
3487 RMATCH(eptr, ecode, offset_top, md, eptrb, RM23);
3507 fc = *ecode++;
3558 RMATCH(eptr, ecode, offset_top, md, eptrb, RM24);
3591 RMATCH(eptr, ecode, offset_top, md, eptrb, RM25);
3619 RMATCH(eptr, ecode, offset_top, md, eptrb, RM26);
3648 RMATCH(eptr, ecode, offset_top, md, eptrb, RM27);
3672 ecode++;
3673 GETCHARINC(ch, ecode);
3697 register pcre_uint32 ch = ecode[1];
3701 ecode += 2;
3714 min = max = GET2(ecode, 1);
3715 ecode += 1 + IMM2_SIZE;
3723 max = GET2(ecode, 1);
3724 minimize = *ecode == OP_NOTMINUPTO || *ecode == OP_NOTMINUPTOI;
3725 ecode += 1 + IMM2_SIZE;
3733 ecode++;
3741 ecode++;
3749 ecode++;
3756 max = GET2(ecode, 1);
3757 ecode += 1 + IMM2_SIZE;
3772 c = *ecode++ - ((op >= OP_NOTSTARI)? OP_NOTSTARI: OP_NOTSTAR);
3781 GETCHARINCTEST(fc, ecode);
3849 RMATCH(eptr, ecode, offset_top, md, eptrb, RM28);
3867 RMATCH(eptr, ecode, offset_top, md, eptrb, RM29);
3908 RMATCH(eptr, ecode, offset_top, md, eptrb, RM30);
3932 RMATCH(eptr, ecode, offset_top, md, eptrb, RM31);
3985 RMATCH(eptr, ecode, offset_top, md, eptrb, RM32);
4003 RMATCH(eptr, ecode, offset_top, md, eptrb, RM33);
4043 RMATCH(eptr, ecode, offset_top, md, eptrb, RM34);
4067 RMATCH(eptr, ecode, offset_top, md, eptrb, RM35);
4082 min = max = GET2(ecode, 1);
4084 ecode += 1 + IMM2_SIZE;
4090 max = GET2(ecode, 1);
4091 minimize = *ecode == OP_TYPEMINUPTO;
4092 ecode += 1 + IMM2_SIZE;
4099 ecode++;
4106 ecode++;
4113 ecode++;
4119 max = GET2(ecode, 1);
4120 ecode += 1 + IMM2_SIZE;
4129 c = *ecode++ - OP_TYPESTAR;
4140 ctype = *ecode++; /* Code for the character type */
4146 prop_type = *ecode++;
4147 prop_value = *ecode++;
4895 RMATCH(eptr, ecode, offset_top, md, eptrb, RM36);
4912 RMATCH(eptr, ecode, offset_top, md, eptrb, RM37);
4932 RMATCH(eptr, ecode, offset_top, md, eptrb, RM38);
4949 RMATCH(eptr, ecode, offset_top, md, eptrb, RM39);
4966 RMATCH(eptr, ecode, offset_top, md, eptrb, RM40);
4984 RMATCH(eptr, ecode, offset_top, md, eptrb, RM59);
5007 RMATCH(eptr, ecode, offset_top, md, eptrb, RM61);
5035 RMATCH(eptr, ecode, offset_top, md, eptrb, RM62);
5057 RMATCH(eptr, ecode, offset_top, md, eptrb, RM67);
5080 RMATCH(eptr, ecode, offset_top, md, eptrb, RM60);
5109 RMATCH(eptr, ecode, offset_top, md, eptrb, RM41);
5143 RMATCH(eptr, ecode, offset_top, md, eptrb, RM42);
5268 RMATCH(eptr, ecode, offset_top, md, eptrb, RM43);
5614 RMATCH(eptr, ecode, offset_top, md, eptrb, RM44);
5666 RMATCH(eptr, ecode, offset_top, md, eptrb, RM45);
5934 RMATCH(eptr, ecode, offset_top, md, eptrb, RM46);
6178 RMATCH(eptr, ecode, offset_top, md, eptrb, RM47);
6193 DPRINTF(("Unknown opcode %d\n", *ecode));
6249 #undef ecode