Lines Matching refs:prog
2643 bt_regfree(regprog_T *prog) in bt_regfree() argument
2645 vim_free(prog); in bt_regfree()
4731 bt_regprog_T *prog, in regtry() argument
4740 rex.need_clear_zsubexpr = (prog->reghasz == REX_SET); in regtry()
4743 if (regmatch(prog->program + 1, tm, timed_out) == 0) in regtry()
4775 if (prog->reghasz == REX_SET) in regtry()
4821 bt_regprog_T *prog; in bt_regexec_both() local
4847 prog = (bt_regprog_T *)rex.reg_mmatch->regprog; in bt_regexec_both()
4854 prog = (bt_regprog_T *)rex.reg_match->regprog; in bt_regexec_both()
4860 if (prog == NULL || line == NULL) in bt_regexec_both()
4875 if (prog->regflags & RF_ICASE) in bt_regexec_both()
4877 else if (prog->regflags & RF_NOICASE) in bt_regexec_both()
4881 if (prog->regflags & RF_ICOMBINE) in bt_regexec_both()
4885 if (prog->regmust != NULL) in bt_regexec_both()
4890 c = (*mb_ptr2char)(prog->regmust); in bt_regexec_both()
4892 c = *prog->regmust; in bt_regexec_both()
4900 if (cstrncmp(s, prog->regmust, &prog->regmlen) == 0) in bt_regexec_both()
4907 if (cstrncmp(s, prog->regmust, &prog->regmlen) == 0) in bt_regexec_both()
4914 if (cstrncmp(s, prog->regmust, &prog->regmlen) == 0) in bt_regexec_both()
4927 if (prog->reganch) in bt_regexec_both()
4935 if (prog->regstart == NUL in bt_regexec_both()
4936 || prog->regstart == c in bt_regexec_both()
4938 && (((enc_utf8 && utf_fold(prog->regstart) == utf_fold(c))) in bt_regexec_both()
4939 || (c < 255 && prog->regstart < 255 && in bt_regexec_both()
4940 MB_TOLOWER(prog->regstart) == MB_TOLOWER(c))))) in bt_regexec_both()
4941 retval = regtry(prog, col, tm, timed_out); in bt_regexec_both()
4953 if (prog->regstart != NUL) in bt_regexec_both()
4958 s = vim_strbyte(rex.line + col, prog->regstart); in bt_regexec_both()
4960 s = cstrchr(rex.line + col, prog->regstart); in bt_regexec_both()
4976 retval = regtry(prog, col, tm, timed_out); in bt_regexec_both()