Top | ![]() |
![]() |
![]() |
![]() |
gboolean as_utils_locale_is_compatible (const gchar *locale1
,const gchar *locale2
);
Calculates if one locale is compatible with another. When doing the calculation the locale and language code is taken into account if possible.
Since: 0.9.5
gboolean
as_utils_is_tld (const gchar *tld
);
Searches the known list of TLDs we allow for AppStream IDs. This excludes internationalized names.
Since: 0.9.8
gboolean
as_utils_is_desktop_environment (const gchar *desktop
);
Searches the known list of desktop environments AppStream knows about.
Since: 0.10.0
void as_utils_sort_components_into_categories (GPtrArray *cpts
,GPtrArray *categories
,gboolean check_duplicates
);
Sorts all components in cpts
into the AsCategory categories listed in categories
.
gint as_utils_compare_versions (const gchar *a
,const gchar *b
);
Compare alpha and numeric segments of two versions. The version compare algorithm is also used by RPM.
const gchar *
as_get_appstream_version (void
);
Get the version of the AppStream library that is currently used as a string.