Convert hzDoctype enum to text for diagnostics Pointer to the doctype text form

Return TypeFunction nameArguments
const char*Doctype2Txt(hzDoctype,)

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

Function Logic:

0:START 1:unknown 2:Return strings[0] 3:Return strings[dtype]

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