Struct MimeGlob
Glob pattern for detecting MIME type of file by its name.
Fields
Name | Type | Description |
caseSensitive
|
bool | Tells whether the pattern should be considered case sensitive or not.
|
pattern
|
string | Glob pattern as string.
|
weight
|
uint | Priority of pattern.
|
Methods
Name | Description |
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.
|