Lines Matching refs:suffix
186 cpl->result.suffix = NULL; in new_WordCompletion()
296 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
307 if(!suffix) in cpl_add_completion()
333 len = strlen(suffix); in cpl_add_completion()
344 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
350 match->suffix = string + word_end - word_start; in cpl_add_completion()
415 return strcmp(m1->suffix, m2->suffix); in cpl_cmp_suffixes()
453 first = result->matches[0].suffix; in cpl_common_suffix()
454 last = result->matches[result->nmatch - 1].suffix; in cpl_common_suffix()
466 length = first - result->matches[0].suffix; in cpl_common_suffix()
470 result->suffix = _sg_alloc_string(cpl->sg, length); in cpl_common_suffix()
471 if(!result->suffix) { in cpl_common_suffix()
480 strncpy(result->suffix, result->matches[0].suffix, length); in cpl_common_suffix()
481 result->suffix[length] = '\0'; in cpl_common_suffix()
501 cpl->result.suffix = NULL; in cpl_clear_completions()