/* Returns: TRUE if @attribute matches @matcher. FALSE otherwise.  */
gboolean g_file_attribute_matcher_matches(GFileAttributeMatcher *matcher, const char *attribute)
/* Returns: TRUE if @attribute matches @matcher. FALSE otherwise.  */
gboolean g_file_attribute_matcher_matches(GFileAttributeMatcher *matcher, const char *attribute)
{
  g_return_val_if_fail (attribute != NULL && *attribute != '\0', FALSE);
  if (matcher == NULL)
    return FALSE;
  if (matcher->all)
    return TRUE;
  return matcher_matches_id (matcher, lookup_attribute (attribute));
}