Lines Matching refs:reg_idx
886 int reg_idx; local
889 for (reg_idx = 1; reg_idx < nmatch; ++reg_idx)
890 pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1;
907 for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
908 if (pmatch[reg_idx].rm_so != -1)
913 pmatch[reg_idx].rm_so =
914 (pmatch[reg_idx].rm_so == mctx.input.valid_len
916 : mctx.input.offsets[pmatch[reg_idx].rm_so]);
917 pmatch[reg_idx].rm_eo =
918 (pmatch[reg_idx].rm_eo == mctx.input.valid_len
920 : mctx.input.offsets[pmatch[reg_idx].rm_eo]);
925 pmatch[reg_idx].rm_so += match_first;
926 pmatch[reg_idx].rm_eo += match_first;
928 for (reg_idx = 0; reg_idx < extra_nmatch; ++reg_idx)
930 pmatch[nmatch + reg_idx].rm_so = -1;
931 pmatch[nmatch + reg_idx].rm_eo = -1;
935 for (reg_idx = 0; reg_idx + 1 < nmatch; reg_idx++)
936 if (dfa->subexp_map[reg_idx] != reg_idx)
938 pmatch[reg_idx + 1].rm_so
939 = pmatch[dfa->subexp_map[reg_idx] + 1].rm_so;
940 pmatch[reg_idx + 1].rm_eo
941 = pmatch[dfa->subexp_map[reg_idx] + 1].rm_eo;
1463 int reg_idx; in set_regs() local
1466 for (reg_idx = 0; reg_idx < nmatch; ++reg_idx) in set_regs()
1467 if (pmatch[reg_idx].rm_so > -1 && pmatch[reg_idx].rm_eo == -1) in set_regs()
1469 if (reg_idx == nmatch) in set_regs()