Return mimetype if the supplied string matches a known file ending for the mimetype
| Return Type | Function name | Arguments |
|---|---|---|
| hzMimetype | Str2Mimetype | (hzString&,) |
Declared in file: hzMimetype.h
Defined in file : hzTypes.cpp
Function Logic:
Function body:
hzMimetype Str2Mimetype (hzString& S)
{
// Category: Config
//
// Return mimetype if the supplied string matches a known file ending for the mimetype
//
// Arguments: 1) S String presumed to name a known MIME type
//
// Returns: Enum value being the MIME type matching supplied description
if (!s_mimesEnum.Count())
HadronZooInitMimes() ;
_mimeType m ; // MIME type info
m = s_mimesDesc[S] ;
return m.v ;
}