Lines Matching refs:prefix_len
229 int prefix_len; in x_print_expansions() local
237 (prefix_len = x_longest_prefix(nwords, words)) > 0) { in x_print_expansions()
242 prefix_len = x_basename(words[0], NULL); in x_print_expansions()
245 if (x_basename(words[i] + prefix_len, NULL) > in x_print_expansions()
246 prefix_len) in x_print_expansions()
250 while (prefix_len > 0 && words[0][prefix_len - 1] != '/') in x_print_expansions()
251 prefix_len--; in x_print_expansions()
255 XPput(l, words[i] + prefix_len); in x_print_expansions()
678 size_t j, prefix_len; in x_longest_prefix() local
684 prefix_len = strlen(words[0]); in x_longest_prefix()
686 for (j = 0, p = words[i]; j < prefix_len; j++) in x_longest_prefix()
688 prefix_len = j; in x_longest_prefix()
692 if (UTFMODE && prefix_len && (words[0][prefix_len] & 0xC0) == 0x80) in x_longest_prefix()
693 while (prefix_len && (words[0][prefix_len] & 0xC0) != 0xC0) in x_longest_prefix()
694 --prefix_len; in x_longest_prefix()
695 return (prefix_len); in x_longest_prefix()