Lines Matching refs:word_end
524 initial_match(const char *line1, const char *line2, int word_end)
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, 1) == 0)
567 word_end));
568 if (MINI_STR(line, "export ", word_end, 3) == 0)
570 word_end));
571 if (MINI_STR(line, "list ", word_end, 1) == 0)
573 word_end));
574 if (MINI_STR(line, "select ", word_end, 1) == 0)
576 word_end));
577 return (add_stuff(cpl, line, global_scope_cmds, word_end));
582 return (add_stuff(cpl, line, non_ncp_scope_cmds, word_end));
584 if (MINI_STR(line, "create ", word_end, 2) == 0)
586 word_end));
587 if (MINI_STR(line, "destroy ", word_end, 1) == 0)
589 word_end));
590 if (MINI_STR(line, "export ", word_end, 3) == 0)
592 word_end));
593 if (MINI_STR(line, "list ", word_end, 1) == 0)
594 return (add_stuff(cpl, line, ncp_list_cmds, word_end));
595 if (MINI_STR(line, "select ", word_end, 1) == 0)
597 word_end));
598 return (add_stuff(cpl, line, ncp_scope_cmds, word_end));