Searched refs:word_end (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.h61 * word_end int The index of the character in line[] that
84 const char *line, int word_start, int word_end,
H A Dcplfile.c95 int word_start, int word_end, int escaped);
98 const char *line, int word_start, int word_end,
117 int word_end; /* The index in line[] following the end of the prefix */ member in struct:__anon4067
214 * word_end int The index of the character in line[] that
237 const char *line, int word_start, int word_end,
246 if(!cpl || !cf || !line || word_end < word_start) {
260 nleft = word_end - word_start;
307 word_end, escaped);
440 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP,
452 return cf_complete_entry(cf, cpl, line, word_start, word_end, escape
236 _cf_complete_file(WordCompletion *cpl, CompleteFile *cf, const char *line, int word_start, int word_end, int escaped, CplCheckFn *check_fn, void *check_data) argument
523 cf_complete_username(CompleteFile *cf, WordCompletion *cpl, const char *prefix, const char *line, int word_start, int word_end, int escaped) argument
607 cf_complete_entry(CompleteFile *cf, WordCompletion *cpl, const char *line, int word_start, int word_end, int escaped, CplCheckFn *check_fn, void *check_data) argument
[all...]
H A Dcplmatch.c271 * word_end int The index within line[] of the character which
296 int word_start, int word_end, const char *suffix,
334 string = _sg_alloc_string(cpl->sg, word_end-word_start + len);
343 strncpy(string, line + word_start, word_end - word_start);
344 strlcpy(string + word_end - word_start, suffix, len + 1);
350 match->suffix = string + word_end - word_start;
517 * word_end int The index of the character in line[] which
535 int word_end, void *data,
546 if(!cpl || !line || !match_fn || word_end < 0 || word_end > line_le
295 cpl_add_completion(WordCompletion *cpl, const char *line, int word_start, int word_end, const char *suffix, const char *type_suffix, const char *cont_suffix) argument
534 cpl_complete_word(WordCompletion *cpl, const char *line, int word_end, void *data, CplMatchFn *match_fn) argument
[all...]
H A Dpcache.c1233 if(!line || word_end < 0 || !data) {
1260 start_path = _pu_start_of_path(line, word_end);
1275 prefix_len = word_end - word_start;
1283 return cpl_file_completions(cpl, pc->cfc, line, word_end);
1375 if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
1413 cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzio_compress.c91 uint64_t *word, *word_end; local
102 word_end = (uint64_t *)((char *)src + s_len);
103 for (word = src; word < word_end; word++)
107 if (word == word_end)
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap_engine.c262 * WordCompletion *cpl; const char *line; int word_end are
276 (void) cpl_add_completion(cpl, line, word_end,
277 word_end, my_comv[i].cmd, "", " ");
282 if (isspace(line[word_end - 1]))
293 word_end - prefix_l,
294 word_end, my_comv[i].cmd + prefix_l,
325 word_end - prefix_l,
326 word_end, paren - 1 + prefix_l, "", " ");
334 word_end - 2,
335 word_end, "", "", " ");
[all...]
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlisten.c103 if (word_end != strlen(l))
104 l[word_end] = '\0';
114 ws = word_end - len;
119 word_end, commands->cmd[i] + len, "", " ");
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg.c524 initial_match(const char *line1, const char *line2, int word_end) argument
526 if (word_end <= 0)
528 return (strncmp(line1, line2, word_end) == 0);
533 int word_end)
538 if (initial_match(line1, list[i], word_end)) {
539 err = cpl_add_completion(cpl, line1, 0, word_end,
540 list[i] + word_end, "", "");
562 if (MINI_STR(line, "create ", word_end, 2) == 0)
564 word_end));
565 if (MINI_STR(line, "destroy ", word_end,
532 add_stuff(WordCompletion *cpl, const char *line1, const char **list, int word_end) argument
[all...]
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h312 * word_end int The index of the character in line[] which
320 const char *line, int word_end)
1545 * the same as word_end.
1546 * word_end int The index within line[] of the character which
1571 int word_start, int word_end, const char *suffix,
1606 * word_end int The index of the character in line[] which
1621 int word_end, void *data,
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c176 if (arg1end_i < word_end)
187 ret = cpl_file_completions(cpl, cfc, line, word_end);
234 add_cmd_matches(WordCompletion *cpl, const char *line, int word_end, argument
243 len = word_end - word_start;
244 bol = line + word_end - len;
252 word_end, cip->name + len, "", " ");
277 if ((arg0 + arg0len) - line >= word_end ||
279 return (complete_command(cpl, (void *)arg0, line, word_end));
295 word_end));
H A Dsvccfg_libscf.c17528 if (arg1end < line + word_end)
17531 len = line + word_end - arg1;
17563 word_end, buf + len, "", " ");
17599 word_end, buf + len, "", " ");
17626 return (scope ? add_cmd_matches(cpl, line, word_end, scope) : 0);
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg.c612 initial_match(const char *line1, const char *line2, int word_end) argument
614 if (word_end <= 0)
616 return (strncmp(line1, line2, word_end) == 0);
621 int word_end)
626 if (initial_match(line1, list[i], word_end)) {
627 err = cpl_add_completion(cpl, line1, 0, word_end,
628 list[i] + word_end, "", "");
646 if (strncmp(line, "add ", MAX(MIN(word_end, 4), 1)) == 0)
647 return (add_stuff(cpl, line, add_cmds, word_end));
648 if (strncmp(line, "clear ", MAX(MIN(word_end,
620 add_stuff(WordCompletion *cpl, const char *line1, const char **list, int word_end) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c2982 * cpl, line, word_start, word_end, cont_suffix - As documented
3124 cmd_match_fcn(WordCompletion *cpl, void *data, const char *line, int word_end) argument
3151 * Tokenize the line up through word_end. The last token in
3154 tokst = tokenize_user_cmd(line, word_end, 1);
3163 cstate.ecpl_word_end = word_end;

Completed in 177 milliseconds