Function MimeType.getIcon
Get icon name. The difference from icon property is that this function provides default icon name if no explicitly set. The default form is MIME type name with '/' replaces with '-'.
string getIcon() pure nothrow @safe const;
Note
This function will allocate every time it's called if no icon explicitly set.
Example
auto mimeType = new MimeType("text/mytype");
assert(mimeType .icon .length == 0);
assert(mimeType .getIcon() == "text-mytype");
mimeType .icon = "mytype";
assert(mimeType .getIcon() == "mytype");
assert(mimeType .icon == "mytype");