defaultGenericIconName

Default generic icon for MIME type.

@trusted nothrow pure
string
defaultGenericIconName
(
scope string mimeType
)

Return Value

Type: string

media-x-generic where media is parsed from mimeType or null if mimeType is not valid MIME type name.

Examples

assert(defaultGenericIconName("image/type") == "image-x-generic");
assert(defaultGenericIconName("not mime type") == string.init);

Meta