MimeMagic

Magic definition. Represents <magic> element in souce XML.

Constructors

this
this(uint weight)

Constructor.

Members

Functions

addMatch
void addMatch(MagicMatch match)

Add top-level match rule.

clone
MimeMagic clone()
Undocumented in source. Be warned that the author may not have intended to support it.
matches
auto matches()

Get match rules

matches
auto matches()
Undocumented in source. Be warned that the author may not have intended to support it.
weight
uint weight()

Priority for magic rule.

weight
uint weight(uint priority)

Set priority for this rule.

Meta