Convert a string representing a HTML tag type, into the HTML tag type.

Return TypeFunction nameArguments
hzHtagtypeTxt2Tagtype(hzString&,)

Declared in file: hzDocument.h
Defined in file : hzDocHtml.cpp

Function Logic:

0:START 1:unknown 2:items 3:S items tf 4:Return tf.type

Function body:

hzHtagtype Txt2Tagtype (hzString& htag)
{
   //  Category: Config
   //  
   //  Convert a string representing a HTML tag type, into the HTML tag type.
   //  
   //  Arguments: 1) htag A string presumed to be one of the allowed HTML5 tags
   //  
   //  Returns: Enumerated hzHtagtype
   _hzfunc(__func__) ;
   hzHtagform  tf ;        //  HTML tag info
   hzString    S ;         //  HTML tag search string
   //  If tagmap not loaded, load it
   if (!s_htagPop)
       InitHtml() ;
   S = htag ;
   S.ToLower() ;
   tf = s_htagNam[S] ;
   return tf.type ;
}