Lines Matching refs:str
389 hist_get(const char *str, bool approx, bool allow_cur)
394 if (getn(str, &n)) {
400 bi_errorf(Tf_sD_s, str, Tnot_in_history);
407 bi_errorf(Tf_sD_s, str, Tnot_in_history);
411 bi_errorf(Tf_sD_s, str, "invalid range");
415 bool anchored = *str == '?' ? (++str, false) : true;
418 if ((n = findhist(histptr - history - 1, str, false,
420 bi_errorf(Tf_sD_s, str, Tnot_in_history);
483 findhist(int start, const char *str, bool fwd, bool anchored)
488 size_t len = strlen(str);
495 if ((anchored && strncmp(*hp, str, len) == 0) ||
496 (!anchored && strstr(*hp, str)))