Singleton helper class to map html entities to other formats. More...
#include <htmlentity.h>
Public Member Functions | |
DocSymbol::SymType | name2sym (const QCString &symName) const |
Give code of the requested HTML entity name. More... | |
const char * | utf8 (DocSymbol::SymType symb, bool useInPrintf=FALSE) const |
Access routine to the UTF8 code of the HTML entity. More... | |
const char * | html (DocSymbol::SymType symb, bool useInPrintf=FALSE) const |
Access routine to the html code of the HTML entity. More... | |
const char * | xml (DocSymbol::SymType symb) const |
Access routine to the XML code of the HTML entity. More... | |
const char * | docbook (DocSymbol::SymType symb) const |
Access routine to the docbook code of the HTML entity. More... | |
const char * | latex (DocSymbol::SymType symb) const |
Access routine to the LaTeX code of the HTML entity. More... | |
const char * | man (DocSymbol::SymType symb) const |
Access routine to the man code of the HTML entity. More... | |
const char * | rtf (DocSymbol::SymType symb) const |
Access routine to the RTF code of the HTML entity. More... | |
const DocSymbol::PerlSymb * | perl (DocSymbol::SymType symb) const |
Access routine to the perl struct with the perl code of the HTML entity. More... | |
void | writeXMLSchema (FTextStream &t) |
Static Public Member Functions | |
static HtmlEntityMapper * | instance () |
static void | deleteInstance () |
Private Member Functions | |
void | validate () |
Routine to check if the entries of the html_entities are numbered correctly. More... | |
HtmlEntityMapper () | |
~HtmlEntityMapper () | |
Private Attributes | |
QDict< int > * | m_name2sym |
Static Private Attributes | |
static HtmlEntityMapper * | s_instance = 0 |
Singleton helper class to map html entities to other formats.
Definition at line 24 of file htmlentity.h.
|
private |
Definition at line 324 of file htmlentity.cpp.
|
private |
Definition at line 335 of file htmlentity.cpp.
|
static |
Deletes the one and only instance of the HTML entity mapper
Definition at line 351 of file htmlentity.cpp.
const char * HtmlEntityMapper::docbook | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the docbook code of the HTML entity.
symb | Code of the requested HTML entity |
NULL
is returned. Definition at line 415 of file htmlentity.cpp.
const char * HtmlEntityMapper::html | ( | DocSymbol::SymType | symb, |
bool | useInPrintf = FALSE |
||
) | const |
Access routine to the html code of the HTML entity.
symb | Code of the requested HTML entity |
useInPrintf | If TRUE the result will be escaped such that it can be used in a printf string pattern |
NULL
is returned. Definition at line 386 of file htmlentity.cpp.
|
static |
Returns the one and only instance of the HTML entity mapper
Definition at line 341 of file htmlentity.cpp.
const char * HtmlEntityMapper::latex | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the LaTeX code of the HTML entity.
symb | Code of the requested HTML entity |
NULL
is returned. Definition at line 426 of file htmlentity.cpp.
const char * HtmlEntityMapper::man | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the man code of the HTML entity.
symb | Code of the requested HTML entity |
NULL
is returned. Definition at line 437 of file htmlentity.cpp.
DocSymbol::SymType HtmlEntityMapper::name2sym | ( | const QCString & | symName | ) | const |
Give code of the requested HTML entity name.
symName | HTML entity name without & and ; |
DocSymbol::Sym_unknown
is returned. Definition at line 471 of file htmlentity.cpp.
const DocSymbol::PerlSymb * HtmlEntityMapper::perl | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the perl struct with the perl code of the HTML entity.
symb | Code of the requested HTML entity |
symb
field and in the DocSymbol::Perl_unknown
in the type
field. Definition at line 460 of file htmlentity.cpp.
const char * HtmlEntityMapper::rtf | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the RTF code of the HTML entity.
symb | Code of the requested HTML entity |
NULL
is returned. Definition at line 448 of file htmlentity.cpp.
const char * HtmlEntityMapper::utf8 | ( | DocSymbol::SymType | symb, |
bool | useInPrintf = FALSE |
||
) | const |
Access routine to the UTF8 code of the HTML entity.
symb | Code of the requested HTML entity |
useInPrintf | If TRUE the result will be escaped such that it can be used in a printf string pattern |
NULL
is returned. Definition at line 366 of file htmlentity.cpp.
|
private |
Routine to check if the entries of the html_entities are numbered correctly.
in case of a mismatch a warning message is given.
Definition at line 493 of file htmlentity.cpp.
void HtmlEntityMapper::writeXMLSchema | ( | FTextStream & | t | ) |
Definition at line 477 of file htmlentity.cpp.
const char * HtmlEntityMapper::xml | ( | DocSymbol::SymType | symb | ) | const |
Access routine to the XML code of the HTML entity.
symb | Code of the requested HTML entity |
NULL
is returned. Definition at line 404 of file htmlentity.cpp.
|
private |
Definition at line 44 of file htmlentity.h.
|
staticprivate |
Definition at line 43 of file htmlentity.h.