Lines Matching defs:attempt
2064 int attempt;
2082 * attempt == 0: without '^' or '$' (at any position)
2083 * attempt == 1: with '^' at start (only at position 0)
2084 * attempt == 2: with '$' at end (only match at end)
2085 * attempt == 3: with '^' at start and '$' at end (only full match)
2102 for (attempt = 0; attempt <= 3; ++attempt)
2106 *patend = (attempt < 2) ? NUL : '$'; /* add/remove '$' */
2108 if (*p == '^' && !(attempt & 1)) /* add/remove '^' */
2173 int attempt;
2193 * attempt == 0: try match with '\<', match at start of word
2194 * attempt == 1: try match without '\<', match anywhere
2196 for (attempt = 0; attempt <= 1; ++attempt)
2198 if (attempt > 0 && patc == pat)
2200 prog = vim_regcomp(patc + attempt * 11, RE_MAGIC);