Lines Matching refs:qline

158     struct Strbuf qline = Strbuf_INIT;  in tenematch()  local
170 cleanup_push(&qline, Strbuf_cleanup); in tenematch()
188 word = cmd_start = qline.len + 1; in tenematch()
195 Strbuf_append1(&qline, *cp); in tenematch()
200 cmd_start = qline.len + 1; in tenematch()
207 Strbuf_append1(&qline, *++cp | QUOTE); in tenematch()
210 Strbuf_append1(&qline, *cp | QUOTE); in tenematch()
212 Strbuf_append1(&qline, *cp); in tenematch()
213 if (ismetahash(qline.s[qline.len - 1]) in tenematch()
215 word = qline.len, word_start = cp + 1; in tenematch()
219 Strbuf_terminate(&qline); in tenematch()
220 wp = qline.len; in tenematch()
228 looking = starting_a_command(qline.s + word - 1, qline.s) ? in tenematch()
238 xprintf("\ncmd_start:%S:\n", qline.s + cmd_start); in tenematch()
239 xprintf("qline:%S:\n", qline.s); in tenematch()
241 for (p = qline.s; *p; p++) in tenematch()
244 xprintf("word:%S:\n", qline.s + word); in tenematch()
246 for (p = qline.s + word; *p; p++) in tenematch()
260 p = qline.s + wordp; in tenematch()
261 looking = tw_complete(qline.s + cmd_start, &p, &pat, looking, &suf); in tenematch()
262 wordp = p - qline.s; in tenematch()
280 if ((slshp = Strrchr(qline.s + wordp, '/')) != NULL && in tenematch()
283 for (bptr = qline.s + wordp; bptr < slshp; bptr++) { in tenematch()
297 Strbuf_append(&wordbuf, qline.s + wordp); in tenematch()
301 qline.len = wordp; in tenematch()
302 Strbuf_append(&qline, wordbuf.s); in tenematch()
303 Strbuf_terminate(&qline); in tenematch()
315 Strbuf_append(&wordbuf, qline.s + wordp); in tenematch()
325 qline.len = wordp; in tenematch()
326 Strbuf_append(&qline, wordbuf.s); in tenematch()
327 Strbuf_terminate(&qline); in tenematch()
330 if (qline.s[wp] != '\0' && in tenematch()
331 insert_meta(word_start, str_end, qline.s + word, !qu) < 0) in tenematch()
349 Strbuf_append(&wordbuf, qline.s + wordp); in tenematch()
367 qline.len = wordp; in tenematch()
368 Strbuf_append(&qline, wordbuf.s); in tenematch()
369 Strbuf_terminate(&qline); in tenematch()
372 if (insert_meta(word_start, str_end, qline.s + word, !qu) < 0) in tenematch()
379 do_help(qline.s + cmd_start); in tenematch()
385 items[0] = Strsave(qline.s + wordp); in tenematch()
389 count = (looking == TW_COMMAND && Strchr(qline.s + wordp, '/') == 0) ? in tenematch()
418 bptr = dollar(qline.s + word); in tenematch()
432 if ((bptr = dnormalize(qline.s + wordp, symlinks == SYM_IGNORE || in tenematch()
449 found = cmd_expand(qline.s + wordp, &p); in tenematch()
469 Strbuf_append(&wordbuf, qline.s + wordp); in tenematch()
473 qline.len = wordp; in tenematch()
474 Strbuf_append(&qline, wordbuf.s); in tenematch()
475 Strbuf_terminate(&qline); in tenematch()
485 cleanup_until(&qline); in tenematch()
489 cleanup_until(&qline); in tenematch()