Attempts to complete the string prefix
using the Completion target items.
Rarely used API
In contrast to complete, this function returns the largest common prefix that is a valid UTF-8 string, omitting a possible common partial character.
You should use this function instead of complete if your items are UTF-8 strings.
this |
the Completion |
prefix |
the prefix string, typically used by the user, which is compared with each of the items |
new_prefix |
if non-null, returns the longest prefix which is common to all items that matched |
the list of items whose strings begin with |