Struct MimeGlob

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

struct MimeGlob ;

Constructors

NameDescription
this

Fields

NameTypeDescription
caseSensitive boolTells whether the pattern should be considered case sensitive or not.
pattern stringGlob pattern as string.
weight uintPriority of pattern.

Methods

NameDescription
isGenericGlob Member version of static isGenericGlob. Uses pattern as argument.
isGenericGlob Check if glob pattern is something else besides literal and suffix.
isLiteral Member version of static isLiteral. Uses pattern as argument.
isLiteral Check if glob pattern is literal, i.e. does not have special glob match characters.
isSuffix Member version of static isSuffix. Uses pattern as argument.
isSuffix Check if glob pattern is suffix, i.e. starts with '*' and does not have special glob match characters in the rest of pattern.