FileAttributeMatcher

Determines if a string matches a file attribute.

Constructors

this
this(string attributes)

Creates a new file attribute matcher, which matches attributes against a given string. #GFileAttributeMatchers are reference counted structures, and are created with a reference count of 1. If the number of references falls to 0, the #GFileAttributeMatcher is automatically destroyed.

Members

Functions

enumerateNamespace
bool enumerateNamespace(string ns)

Checks if the matcher will match all of the keys in a given namespace. This will always return true if a wildcard character is in use (e.g. if matcher was created with "standard::*" and ns is "standard", or if matcher was created using "*" and namespace is anything.)

enumerateNext
string enumerateNext()

Gets the next matched attribute from a #GFileAttributeMatcher.

matches
bool matches(string attribute)

Checks if an attribute will be matched by an attribute matcher. If the matcher was created with the "*" matching string, this function will always return true.

matchesOnly
bool matchesOnly(string attribute)

Checks if an attribute matcher only matches a given attribute. Always returns false if "*" was used when creating the matcher.

subtract
gio.file_attribute_matcher.FileAttributeMatcher subtract(gio.file_attribute_matcher.FileAttributeMatcher subtract)

Subtracts all attributes of subtract from matcher and returns a matcher that supports those attributes.

toString_
string toString_()

Prints what the matcher is matching against. The format will be equal to the format passed to gio.file_attribute_matcher.FileAttributeMatcher.new_. The output however, might not be identical, as the matcher may decide to use a different order or omit needless parts.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.