Method
IdeSnippetStoragequery
since: 3.32
Declaration
void
ide_snippet_storage_query (
IdeSnippetStorage* self,
const gchar* lang,
const gchar* prefix,
IdeSnippetStorageForeach foreach,
gpointer user_data
)
Description
This will call foreach for every info that matches the query. This is
useful when building autocompletion lists based on word prefixes.
Available since: 3.32
Parameters
lang-
Type:
const gchar*Language to query.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. prefix-
Type:
const gchar*Prefix for query.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. foreach-
Type:
IdeSnippetStorageForeachThe closure to call for each match.
user_data-
Type:
gpointerClosure data for
foreach.The argument can be NULL.The data is owned by the caller of the function.