Function MimeCache.findMimeTypesByLiteral

Find all MIME type alternatives for fileName using literal patterns like Makefile.

auto std.algorithm.iteration.MapResult!(mime.cache.MimeCache.findMimeTypesByLiteral(scopeconst(char)[]).__lambda2,std.range.SortedRange!(std.algorithm.iteration.MapResult!(mime.cache.MimeCache.literalsImpl().__dgliteral2,std.algorithm.iteration.MapResult!(mime.cache.MimeCache.literalsImpl().__lambda1,std.range.iota!(uint,uint).iota(uint,uint).Result).MapResult).MapResult,"a.literal < b.literal",0).SortedRange) findMimeTypesByLiteral (
  scope const(char)[] fileName
) pure @trusted const;

Parameters

NameDescription
fileName name to match against literal patterns.

Returns

Range of MimeTypeAlternativeByName with pattern set to literal matching fileName.

Note

Depending on whether found literal is case sensitive or not literal can be equal to base fileName or not.