Lines Matching defs:reg_idx
889 int reg_idx;
892 for (reg_idx = 1; reg_idx < nmatch; ++reg_idx)
893 pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1;
910 for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
911 if (pmatch[reg_idx].rm_so != -1)
916 pmatch[reg_idx].rm_so =
917 (pmatch[reg_idx].rm_so == mctx.input.valid_len
919 : mctx.input.offsets[pmatch[reg_idx].rm_so]);
920 pmatch[reg_idx].rm_eo =
921 (pmatch[reg_idx].rm_eo == mctx.input.valid_len
923 : mctx.input.offsets[pmatch[reg_idx].rm_eo]);
928 pmatch[reg_idx].rm_so += match_first;
929 pmatch[reg_idx].rm_eo += match_first;
931 for (reg_idx = 0; reg_idx < extra_nmatch; ++reg_idx)
933 pmatch[nmatch + reg_idx].rm_so = -1;
934 pmatch[nmatch + reg_idx].rm_eo = -1;
938 for (reg_idx = 0; reg_idx + 1 < nmatch; reg_idx++)
939 if (dfa->subexp_map[reg_idx] != reg_idx)
941 pmatch[reg_idx + 1].rm_so
942 = pmatch[dfa->subexp_map[reg_idx] + 1].rm_so;
943 pmatch[reg_idx + 1].rm_eo
944 = pmatch[dfa->subexp_map[reg_idx] + 1].rm_eo;
1466 int reg_idx;
1469 for (reg_idx = 0; reg_idx < nmatch; ++reg_idx)
1470 if (pmatch[reg_idx].rm_so > -1 && pmatch[reg_idx].rm_eo == -1)
1472 if (reg_idx == nmatch)