Convert a string representing a HTML tag type, into the HTML tag type.
| Return Type | Function name | Arguments |
|---|---|---|
| hzHtagtype | Txt2Tagtype | (hzString&,) |
Declared in file: hzDocument.h
Defined in file : hzDocHtml.cpp
Function Logic:
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 ;
}