Lines Matching refs:wordlen
91 size_t matchlen, wordlen; in complete_ambiguous() local
93 wordlen = strlen(word); in complete_ambiguous()
98 p = words->sl_str[0] + wordlen; in complete_ambiguous()
113 for (j = wordlen ; j < strlen(words->sl_str[i]); j++) in complete_ambiguous()
119 if (matchlen > wordlen) { in complete_ambiguous()
121 lastmatch + wordlen, matchlen - wordlen); in complete_ambiguous()
143 size_t wordlen; in complete_command() local
147 wordlen = strlen(word); in complete_command()
150 if (wordlen > strlen(c->c_name)) in complete_command()
152 if (strncmp(word, c->c_name, wordlen) == 0) in complete_command()
255 size_t wordlen; in complete_option() local
259 wordlen = strlen(word); in complete_option()
262 if (wordlen > strlen(o->name)) in complete_option()
264 if (strncmp(word, o->name, wordlen) == 0) in complete_option()