Method

AppStreamComponentsearch_matches

Declaration [src]

guint
as_component_search_matches (
  AsComponent* cpt,
  const gchar* term
)

Description [src]

Searches component data for a specific keyword.

Available since:0.9.7

Parameters

term const gchar*
 

The search term.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: guint
 

A match scrore, where 0 is no match and 100 is the best match.