|
Doxygen
|
Singleton helper class to map html entities to other formats 更多...
#include <htmlentity.h>
HtmlEntityMapper 的协作图:Public 成员函数 | |
| DocSymbol::SymType | name2sym (const QCString &symName) const |
| Give code of the requested HTML entity name 更多... | |
| const char * | utf8 (DocSymbol::SymType symb, bool useInPrintf=FALSE) const |
| Access routine to the UTF8 code of the HTML entity 更多... | |
| const char * | html (DocSymbol::SymType symb, bool useInPrintf=FALSE) const |
| Access routine to the html code of the HTML entity 更多... | |
| const char * | xml (DocSymbol::SymType symb) const |
| Access routine to the XML code of the HTML entity 更多... | |
| const char * | docbook (DocSymbol::SymType symb) const |
| Access routine to the docbook code of the HTML entity 更多... | |
| const char * | latex (DocSymbol::SymType symb) const |
| Access routine to the LaTeX code of the HTML entity 更多... | |
| const char * | man (DocSymbol::SymType symb) const |
| Access routine to the man code of the HTML entity 更多... | |
| const char * | rtf (DocSymbol::SymType symb) const |
| Access routine to the RTF code of the HTML entity 更多... | |
| const DocSymbol::PerlSymb * | perl (DocSymbol::SymType symb) const |
| Access routine to the perl struct with the perl code of the HTML entity 更多... | |
| void | writeXMLSchema (TextStream &t) |
静态 Public 成员函数 | |
| static HtmlEntityMapper * | instance () |
| Returns the one and only instance of the HTML entity mapper 更多... | |
| static void | deleteInstance () |
| Deletes the one and only instance of the HTML entity mapper 更多... | |
Private 成员函数 | |
| void | validate () |
| Routine to check if the entries of the html_entities are numbered correctly 更多... | |
| HtmlEntityMapper () | |
| ~HtmlEntityMapper () | |
Private 属性 | |
| std::unordered_map< std::string, DocSymbol::SymType > | m_name2sym |
静态 Private 属性 | |
| static HtmlEntityMapper * | s_instance = 0 |
Singleton helper class to map html entities to other formats
在文件 htmlentity.h 第 26 行定义.
|
private |
在文件 htmlentity.cpp 第 326 行定义.
引用了 g_htmlEntities, g_numHtmlEntities, m_name2sym , 以及 validate().
被这些函数引用 instance().
|
private |
在文件 htmlentity.cpp 第 336 行定义.
|
static |
Deletes the one and only instance of the HTML entity mapper
在文件 htmlentity.cpp 第 351 行定义.
引用了 s_instance.
| 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. 在文件 htmlentity.cpp 第 415 行定义.
引用了 htmlEntityInfo::docbook , 以及 g_htmlEntities.
被这些函数引用 DocbookDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 386 行定义.
引用了 g_htmlEntities, htmlEntityInfo::html , 以及 DocSymbol::Sym_Percent.
被这些函数引用 HtmlDocVisitor::visit() , 以及 TextDocVisitor::visit().
|
static |
Returns the one and only instance of the HTML entity mapper
在文件 htmlentity.cpp 第 341 行定义.
引用了 HtmlEntityMapper() , 以及 s_instance.
被这些函数引用 convertCharEntitiesToUTF8(), convertToDocBook(), DocSymbol::decodeSymbol(), filterLatexString(), generateXML(), HtmlDocVisitor::visit(), DocbookDocVisitor::visit(), LatexDocVisitor::visit(), ManDocVisitor::visit(), RTFDocVisitor::visit(), XmlDocVisitor::visit(), TextDocVisitor::visit() , 以及 PerlModDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 426 行定义.
引用了 g_htmlEntities , 以及 htmlEntityInfo::latex.
被这些函数引用 filterLatexString() , 以及 LatexDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 437 行定义.
引用了 g_htmlEntities , 以及 htmlEntityInfo::man.
被这些函数引用 ManDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 471 行定义.
引用了 m_name2sym, QCString::str() , 以及 DocSymbol::Sym_Unknown.
被这些函数引用 convertCharEntitiesToUTF8(), convertToDocBook(), DocSymbol::decodeSymbol() , 以及 filterLatexString().
| 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. 在文件 htmlentity.cpp 第 460 行定义.
引用了 g_htmlEntities , 以及 htmlEntityInfo::perl.
被这些函数引用 PerlModDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 448 行定义.
引用了 g_htmlEntities , 以及 htmlEntityInfo::rtf.
被这些函数引用 RTFDocVisitor::visit().
| 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. 在文件 htmlentity.cpp 第 366 行定义.
引用了 g_htmlEntities, DocSymbol::Sym_Percent , 以及 htmlEntityInfo::UTF8.
|
private |
Routine to check if the entries of the html_entities are numbered correctly
in case of a mismatch a warning message is given.
在文件 htmlentity.cpp 第 493 行定义.
引用了 g_htmlEntities, g_numHtmlEntities , 以及 warn_uncond().
被这些函数引用 HtmlEntityMapper().
| void HtmlEntityMapper::writeXMLSchema | ( | TextStream & | t | ) |
在文件 htmlentity.cpp 第 477 行定义.
引用了 QCString::at(), g_htmlEntities, g_numberHtmlMappedCmds, g_numHtmlEntities, QCString::isEmpty(), QCString::length(), QCString::mid(), QCString::right() , 以及 htmlEntityInfo::xml.
被这些函数引用 generateXML().
| 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. 在文件 htmlentity.cpp 第 404 行定义.
引用了 g_htmlEntities , 以及 htmlEntityInfo::xml.
被这些函数引用 XmlDocVisitor::visit().
|
private |
在文件 htmlentity.h 第 46 行定义.
被这些函数引用 HtmlEntityMapper() , 以及 name2sym().
|
staticprivate |
在文件 htmlentity.h 第 45 行定义.
被这些函数引用 deleteInstance() , 以及 instance().