defaultIconName

Default icon for MIME type.

@safe nothrow pure
string
defaultIconName
(
scope string mimeType
)

Return Value

Type: string

mimeType with '/' replaces with '-' or null if mimeType is not valid MIME type name.

Examples

assert(defaultIconName("text/plain") == "text-plain");
assert(defaultIconName("not mime type") == string.init);

Meta