MimeGlob

Glob pattern for detecting MIME type of file by its name.

Constructors

this
this(string glob, uint priority, bool cs)

Members

Functions

isGenericGlob
bool isGenericGlob()

Member version of static isGenericGlob. Uses pattern as argument.

isLiteral
bool isLiteral()

Member version of static isLiteral. Uses pattern as argument.

isSuffix
bool isSuffix()

Member version of static isSuffix. Uses pattern as argument.

Static functions

isGenericGlob
bool isGenericGlob(string pattern)

Check if glob pattern is something else besides literal and suffix.

isLiteral
bool isLiteral(string pattern)

Check if glob pattern is literal, i.e. does not have special glob match characters.

isSuffix
bool isSuffix(string pattern)

Check if glob pattern is suffix, i.e. starts with '*' and does not have special glob match characters in the rest of pattern.

Variables

caseSensitive
bool caseSensitive;

Tells whether the pattern should be considered case sensitive or not.

pattern
string pattern;

Glob pattern as string.

weight
uint weight;

Priority of pattern.

Meta