Lines Matching defs:pRExC_state

135 #define RExC_starttry	(pRExC_state->starttry)
139 #define RExC_flags (pRExC_state->flags)
140 #define RExC_precomp (pRExC_state->precomp)
141 #define RExC_rx (pRExC_state->rx)
142 #define RExC_start (pRExC_state->start)
143 #define RExC_end (pRExC_state->end)
144 #define RExC_parse (pRExC_state->parse)
145 #define RExC_whilem_seen (pRExC_state->whilem_seen)
146 #define RExC_offsets (pRExC_state->rx->offsets) /* I am not like the others */
147 #define RExC_emit (pRExC_state->emit)
148 #define RExC_emit_start (pRExC_state->emit_start)
149 #define RExC_naughty (pRExC_state->naughty)
150 #define RExC_sawback (pRExC_state->sawback)
151 #define RExC_seen (pRExC_state->seen)
152 #define RExC_size (pRExC_state->size)
153 #define RExC_npar (pRExC_state->npar)
154 #define RExC_extralen (pRExC_state->extralen)
155 #define RExC_seen_zerolen (pRExC_state->seen_zerolen)
156 #define RExC_seen_evals (pRExC_state->seen_evals)
157 #define RExC_utf8 (pRExC_state->utf8)
158 #define RExC_orig_utf8 (pRExC_state->orig_utf8)
473 S_scan_commit(pTHX_ RExC_state_t *pRExC_state, scan_data_t *data)
516 S_cl_anything(pTHX_ RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
543 S_cl_init(pTHX_ RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
547 cl_anything(pRExC_state, cl);
551 S_cl_init_zero(pTHX_ RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
555 cl_anything(pRExC_state, cl);
600 S_cl_or(pTHX_ RExC_state_t *pRExC_state, struct regnode_charclass_class *cl, struct regnode_charclass_class *or_with)
621 cl_anything(pRExC_state, cl);
640 cl_anything(pRExC_state, cl);
675 S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 flags)
825 scan_commit(pRExC_state, data); /* Cannot merge strings after this. */
827 cl_init_zero(pRExC_state, &accum);
845 cl_init(pRExC_state, &this_class);
852 minnext = study_chunk(pRExC_state, &scan, &deltanext,
868 cl_or(pRExC_state, &accum, &this_class);
883 cl_or(pRExC_state, data->start_class, &accum);
981 scan_commit(pRExC_state, data);
1059 scan_commit(pRExC_state, data); /* Cannot extend fixed substrings */
1076 if (mincount == 0) scan_commit(pRExC_state,data); /* Cannot extend fixed substrings */
1086 cl_init(pRExC_state, &this_class);
1102 minnext = study_chunk(pRExC_state, &scan, &deltanext, last, data,
1110 cl_or(pRExC_state, data->start_class, &this_class);
1125 cl_or(pRExC_state, data->start_class, &this_class);
1238 study_chunk(pRExC_state, &nxt1, &deltanext, nxt,
1333 scan_commit(pRExC_state,data);
1359 scan_commit(pRExC_state,data); /* Cannot expect anything... */
1364 cl_anything(pRExC_state, data->start_class);
1373 scan_commit(pRExC_state,data);
1388 cl_anything(pRExC_state, data->start_class);
1396 cl_anything(pRExC_state, data->start_class);
1406 cl_or(pRExC_state, data->start_class,
1593 cl_init(pRExC_state, &intrnl);
1601 minnext = study_chunk(pRExC_state, &nscan, &deltanext, last, &data_fake, f);
1644 scan_commit(pRExC_state,data);
1649 cl_anything(pRExC_state, data->start_class);
1677 S_add_data(pTHX_ RExC_state_t *pRExC_state, I32 n, char *s)
1748 RExC_state_t *pRExC_state = &RExC_state;
1785 if (reg(pRExC_state, 0, &flags) == NULL) {
1864 if (reg(pRExC_state, 0, &flags) == NULL)
1976 cl_init(pRExC_state, &ch_class);
1983 minlen = study_chunk(pRExC_state, &first, &fake, scan + RExC_size, /* Up to end */
1990 scan_commit(pRExC_state, &data);
2059 I32 n = add_data(pRExC_state, 1, "f");
2106 cl_init(pRExC_state, &ch_class);
2109 minlen = study_chunk(pRExC_state, &scan, &fake, scan + RExC_size, &data, SCF_DO_STCLASS_AND|SCF_WHILEM_VISITED_POS);
2115 I32 n = add_data(pRExC_state, 1, "f");
2158 S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp)
2218 nextchar(pRExC_state);
2271 n = add_data(pRExC_state, 3, "nop");
2287 nextchar(pRExC_state);
2289 ret = reg_node(pRExC_state, LOGICAL);
2292 regtail(pRExC_state, ret, reganode(pRExC_state, EVAL, n));
2296 ret = reganode(pRExC_state, EVAL, n);
2309 ret = reg_node(pRExC_state, LOGICAL);
2312 regtail(pRExC_state, ret, reg(pRExC_state, 1, &flag));
2322 ret = reganode(pRExC_state, GROUPP, parno);
2324 if ((c = *nextchar(pRExC_state)) != ')')
2327 regtail(pRExC_state, ret, reganode(pRExC_state, IFTHEN, 0));
2328 br = regbranch(pRExC_state, &flags, 1);
2330 br = reganode(pRExC_state, LONGJMP, 0);
2332 regtail(pRExC_state, br, reganode(pRExC_state, LONGJMP, 0));
2333 c = *nextchar(pRExC_state);
2337 lastbr = reganode(pRExC_state, IFTHEN, 0); /* Fake one for optimizer. */
2338 regbranch(pRExC_state, &flags, 1);
2339 regtail(pRExC_state, ret, lastbr);
2342 c = *nextchar(pRExC_state);
2348 ender = reg_node(pRExC_state, TAIL);
2349 regtail(pRExC_state, br, ender);
2351 regtail(pRExC_state, lastbr, ender);
2352 regtail(pRExC_state, NEXTOPER(NEXTOPER(lastbr)), ender);
2355 regtail(pRExC_state, ret, ender);
2424 nextchar(pRExC_state);
2432 ret = reganode(pRExC_state, OPEN, parno);
2443 br = regbranch(pRExC_state, &flags, 1);
2450 reginsert(pRExC_state, BRANCHJ, br);
2453 reginsert(pRExC_state, BRANCH, br);
2465 regtail(pRExC_state, ret, br); /* OPEN -> first. */
2473 ender = reganode(pRExC_state, LONGJMP,0);
2474 regtail(pRExC_state, NEXTOPER(NEXTOPER(lastbr)), ender); /* Append to the previous. */
2478 nextchar(pRExC_state);
2479 br = regbranch(pRExC_state, &flags, 0);
2483 regtail(pRExC_state, lastbr, br); /* BRANCH -> BRANCH. */
2494 ender = reg_node(pRExC_state, TAIL);
2497 ender = reganode(pRExC_state, CLOSE, parno);
2508 ender = reg_node(pRExC_state, SUCCEED);
2511 ender = reg_node(pRExC_state, END);
2514 regtail(pRExC_state, lastbr, ender);
2519 regoptail(pRExC_state, br, ender);
2534 reginsert(pRExC_state, node,ret);
2538 regtail(pRExC_state, ret, reg_node(pRExC_state, TAIL));
2545 if (RExC_parse >= RExC_end || *nextchar(pRExC_state) != ')') {
2569 S_regbranch(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, I32 first)
2580 ret = reganode(pRExC_state, BRANCHJ,0);
2582 ret = reg_node(pRExC_state, BRANCH);
2593 nextchar(pRExC_state);
2596 latest = regpiece(pRExC_state, &flags);
2609 regtail(pRExC_state, chain, latest);
2615 chain = reg_node(pRExC_state, NOTHING);
2636 S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp)
2648 ret = regatom(pRExC_state, &flags);
2685 nextchar(pRExC_state);
2690 reginsert(pRExC_state, CURLY, ret);
2695 regnode *w = reg_node(pRExC_state, WHILEM);
2698 regtail(pRExC_state, ret, w);
2700 reginsert(pRExC_state, LONGJMP,ret);
2701 reginsert(pRExC_state, NOTHING,ret);
2704 reginsert(pRExC_state, CURLYX,ret);
2712 regtail(pRExC_state, ret, reg_node(pRExC_state, NOTHING));
2756 nextchar(pRExC_state);
2761 reginsert(pRExC_state, STAR, ret);
2770 reginsert(pRExC_state, PLUS, ret);
2791 nextchar(pRExC_state);
2792 reginsert(pRExC_state, MINMOD, ret);
2793 regtail(pRExC_state, ret, ret + NODE_STEP_REGNODE);
2813 S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp)
2825 nextchar(pRExC_state);
2827 ret = reg_node(pRExC_state, MBOL);
2829 ret = reg_node(pRExC_state, SBOL);
2831 ret = reg_node(pRExC_state, BOL);
2835 nextchar(pRExC_state);
2839 ret = reg_node(pRExC_state, MEOL);
2841 ret = reg_node(pRExC_state, SEOL);
2843 ret = reg_node(pRExC_state, EOL);
2847 nextchar(pRExC_state);
2849 ret = reg_node(pRExC_state, SANY);
2851 ret = reg_node(pRExC_state, REG_ANY);
2859 ret = regclass(pRExC_state);
2864 nextchar(pRExC_state);
2870 nextchar(pRExC_state);
2871 ret = reg(pRExC_state, 1, &flags);
2910 ret = reg_node(pRExC_state, SBOL);
2912 nextchar(pRExC_state);
2916 ret = reg_node(pRExC_state, GPOS);
2919 nextchar(pRExC_state);
2923 ret = reg_node(pRExC_state, SEOL);
2926 nextchar(pRExC_state);
2929 ret = reg_node(pRExC_state, EOS);
2932 nextchar(pRExC_state);
2936 ret = reg_node(pRExC_state, CANY);
2939 nextchar(pRExC_state);
2943 ret = reg_node(pRExC_state, CLUMP);
2945 nextchar(pRExC_state);
2949 ret = reg_node(pRExC_state, (U8)(LOC ? ALNUML : ALNUM));
2951 nextchar(pRExC_state);
2955 ret = reg_node(pRExC_state, (U8)(LOC ? NALNUML : NALNUM));
2957 nextchar(pRExC_state);
2963 ret = reg_node(pRExC_state, (U8)(LOC ? BOUNDL : BOUND));
2965 nextchar(pRExC_state);
2971 ret = reg_node(pRExC_state, (U8)(LOC ? NBOUNDL : NBOUND));
2973 nextchar(pRExC_state);
2977 ret = reg_node(pRExC_state, (U8)(LOC ? SPACEL : SPACE));
2979 nextchar(pRExC_state);
2983 ret = reg_node(pRExC_state, (U8)(LOC ? NSPACEL : NSPACE));
2985 nextchar(pRExC_state);
2989 ret = reg_node(pRExC_state, DIGIT);
2991 nextchar(pRExC_state);
2995 ret = reg_node(pRExC_state, NDIGIT);
2997 nextchar(pRExC_state);
3024 ret = regclass(pRExC_state);
3031 nextchar(pRExC_state);
3060 ret = reganode(pRExC_state,
3069 nextchar(pRExC_state);
3108 ret = reg_node(pRExC_state,
3256 reguni(pRExC_state, ender, s, &unilen);
3270 reguni(pRExC_state, ender, s, &unilen);
3293 reguni(pRExC_state, ender, s, &unilen);
3307 reguni(pRExC_state, ender, s, &unilen);
3321 nextchar(pRExC_state);
3399 S_regpposixcc(pTHX_ RExC_state_t *pRExC_state, I32 value)
3523 S_checkposixcc(pTHX_ RExC_state_t *pRExC_state)
3550 S_regclass(pTHX_ RExC_state_t *pRExC_state)
3570 ret = reganode(pRExC_state, ANYOF, 0);
3597 checkposixcc(pRExC_state);
3621 namedclass = regpposixcc(pRExC_state, value);
4276 n = add_data(pRExC_state, 1, "s");
4285 S_nextchar(pTHX_ RExC_state_t *pRExC_state)
4319 S_reg_node(pTHX_ RExC_state_t *pRExC_state, U8 op)
4355 S_reganode(pTHX_ RExC_state_t *pRExC_state, U8 op, U32 arg)
4392 S_reguni(pTHX_ RExC_state_t *pRExC_state, UV uv, char* s, STRLEN* lenp)
4403 S_reginsert(pTHX_ RExC_state_t *pRExC_state, U8 op, regnode *opnd)
4461 S_regtail(pTHX_ RExC_state_t *pRExC_state, regnode *p, regnode *val)
4490 S_regoptail(pTHX_ RExC_state_t *pRExC_state, regnode *p, regnode *val)
4496 regtail(pRExC_state, NEXTOPER(p), val);
4499 regtail(pRExC_state, NEXTOPER(NEXTOPER(p)), val);
4728 regexec.c, and it would be hard to supply pRExC_state. */