odfDocumentTypeFromExtension

fnOdfDocumentType odfDocumentTypeFromExtension(string ext) @safe pure nothrow

Attempts to detect the document type from a file extension.

The extension is matched case-insensitively without the leading dot.

Parameters

extThe file extension (with or without leading dot).

Returns

The matching OdfDocumentType, or OdfDocumentType.NONE if the

extension is not recognized.