Convert hzDoctype enum to text for diagnostics Pointer to the doctype text form
| Return Type | Function name | Arguments |
|---|---|---|
| const char* | Doctype2Txt | (hzDoctype,) |
Declared in file: hzDocument.h
Defined in file : hzDocHtml.cpp
Function Logic:
Function body:
const char* Doctype2Txt (hzDoctype)
{
// Category: Diagnostics
//
// Convert hzDoctype enum to text for diagnostics
//
// Arguments: 1) dtype The enumerated document type (either HTML or XML)
//
// Returns: Pointer to the doctype text form
static const char* strings [] =
{
"DOCTYPE_UNDEFINED",
"DOCTYPE_HTML",
"DOCTYPE_XML",
""
} ;
if (dtype < 0|| dtype >&eq; DOCTYPE_XML)
return strings[0];
return strings[dtype] ;
}