Lines Matching refs:suffix
184 cpl->result.suffix = NULL; in new_WordCompletion()
294 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
305 if(!suffix) in cpl_add_completion()
331 len = strlen(suffix); in cpl_add_completion()
342 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
348 match->suffix = string + word_end - word_start; in cpl_add_completion()
413 return strcmp(m1->suffix, m2->suffix); in cpl_cmp_suffixes()
451 first = result->matches[0].suffix; in cpl_common_suffix()
452 last = result->matches[result->nmatch - 1].suffix; in cpl_common_suffix()
464 length = first - result->matches[0].suffix; in cpl_common_suffix()
468 result->suffix = _sg_alloc_string(cpl->sg, length); in cpl_common_suffix()
469 if(!result->suffix) { in cpl_common_suffix()
478 strncpy(result->suffix, result->matches[0].suffix, length); in cpl_common_suffix()
479 result->suffix[length] = '\0'; in cpl_common_suffix()
499 cpl->result.suffix = NULL; in cpl_clear_completions()