complete


Description:

public unowned List<void*> complete (string prefix, out string? new_prefix = null)

Attempts to complete the string prefix using the Completion target items.

Note:

Rarely used API

Parameters:

this

the Completion.

prefix

the prefix string, typically typed 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 prefix, or null if no items matched prefix. This string should be freed when no longer needed.

Returns:

the list of items whose strings begin with prefix. This should not be changed.