Method
DevhelpCompletioncomplete
since: 3.28
Declaration [src]
gchar*
dh_completion_complete (
DhCompletion* completion,
const gchar* prefix
)
Description [src]
This function does the equivalent of:
1. Searches the data structure of completion
to find all strings that have
prefix
as prefix.
2. From the list found at step 1, find the longest prefix that still matches
all the strings in the list.
This function assumes that prefix
and the strings contained in completion
are in UTF-8. If all the strings are valid UTF-8, then the return value will
also be valid UTF-8 (it won’t return a partial multi-byte character).
Available since: 3.28