complete_utf8
Description:
[ Version ( since = "2.4" ) ]
public unowned List<void*> complete_utf8 (string prefix, out string? new_prefix = null)
public unowned List<void*> complete_utf8 (string prefix, out string? new_prefix = null)
Attempts to complete the string prefix
using the Completion target
items.
Note:
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.
Parameters:
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 |
Returns:
the list of items whose strings begin with |