Home
last modified time | relevance | path

Searched refs:word_start (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c93 int word_start, int word_end, int escaped);
96 const char *line, int word_start, int word_end,
235 const char *line, int word_start, int word_end, in _cf_complete_file() argument
244 if(!cpl || !cf || !line || word_end < word_start) { in _cf_complete_file()
258 nleft = word_end - word_start; in _cf_complete_file()
262 lptr = line + word_start; in _cf_complete_file()
332 word_start = (lptr + seglen) - line + FS_DIR_SEP_LEN; in _cf_complete_file()
450 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped, in _cf_complete_file()
523 int word_start, int word_end, int escaped) in cf_complete_username() argument
534 args.word_start = word_start; in cf_complete_username()
[all …]
H A Dcplmatch.c294 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
332 string = _sg_alloc_string(cpl->sg, word_end-word_start + len); in cpl_add_completion()
341 strncpy(string, line + word_start, word_end - word_start); in cpl_add_completion()
342 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
348 match->suffix = string + word_end - word_start; in cpl_add_completion()
H A Dpcache.c1221 int word_start; /* The index in line[] corresponding to start_path */ in CPL_MATCH_FN() local
1269 word_start = start_path - line; in CPL_MATCH_FN()
1273 prefix_len = word_end - word_start; in CPL_MATCH_FN()
1280 cfc_file_start(pc->cfc, word_start); in CPL_MATCH_FN()
1373 if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN()
1411 cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN()
H A Dcplfile.h82 const char *line, int word_start, int word_end,
/illumos-gate/usr/src/cmd/csh/
H A Dsh.file.c715 tchar *str_end, *word_start, last_char; in tenex() local
748 for (word_start = str_end; word_start > inputline; in tenex()
749 --word_start) { in tenex()
750 if (index_(delims, word_start[-1]) || in tenex()
751 isauxsp(word_start[-1])) in tenex()
754 space_left = inputline_size - (word_start - inputline) - 1; in tenex()
755 numitems = search2(word_start, command, space_left); in tenex()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c237 int word_start, err; in add_cmd_matches() local
242 word_start = strspn(line, whitespace); in add_cmd_matches()
243 len = word_end - word_start; in add_cmd_matches()
251 err = cpl_add_completion(cpl, line, word_start, in add_cmd_matches()
H A Dsvccfg_libscf.c17538 int word_start, err = 0, r; in CPL_MATCH_FN() local
17549 word_start = arg1 - line; in CPL_MATCH_FN()
17586 err = cpl_add_completion(cpl, line, word_start, in CPL_MATCH_FN()
17622 err = cpl_add_completion(cpl, line, word_start, in CPL_MATCH_FN()
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h1569 int word_start, int word_end, const char *suffix,