Return mimetype if the supplied string matches a known file ending for the mimetype

Return TypeFunction nameArguments
hzMimetypeStr2Mimetype(hzString&,)

Declared in file: hzMimetype.h
Defined in file : hzTypes.cpp

Function Logic:

0:START 1:unknown 2:items 3:m 4:Return m.v

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 ;
}