Doxygen
|
Singleton helper class to map emoji entities to other formats 更多...
#include <emoji.h>
Public 成员函数 | |
const char * | name (int index) const |
Access routine to the name of the Emoji entity 更多... | |
const char * | unicode (int index) const |
Access routine to the unicode sequence for the Emoji entity 更多... | |
void | writeEmojiFile (TextStream &t) |
Writes the list of supported emojis to the given file. 更多... | |
int | symbol2index (const std::string &symName) const |
Returns a code for the requested Emoji entity name 更多... | |
静态 Public 成员函数 | |
static EmojiEntityMapper * | instance () |
Returns the one and only instance of the Emoji entity mapper 更多... | |
static void | deleteInstance () |
Deletes the one and only instance of the Emoji entity mapper 更多... | |
Private 成员函数 | |
EmojiEntityMapper () | |
~EmojiEntityMapper () | |
Private 属性 | |
std::map< std::string, int > | m_name2symGh |
静态 Private 属性 | |
static EmojiEntityMapper * | s_instance = 0 |
|
private |
|
static |
Deletes the one and only instance of the Emoji entity mapper
引用了 s_instance.
|
static |
Returns the one and only instance of the Emoji entity mapper
引用了 EmojiEntityMapper() , 以及 s_instance.
被这些函数引用 DocEmoji::DocEmoji(), readConfiguration(), HtmlDocVisitor::visit(), DocbookDocVisitor::visit(), LatexDocVisitor::visit(), RTFDocVisitor::visit(), ManDocVisitor::visit(), XmlDocVisitor::visit(), TextDocVisitor::visit() , 以及 PerlModDocVisitor::visit().
const char * EmojiEntityMapper::name | ( | int | index | ) | const |
Access routine to the name of the Emoji entity
index | code of the requested Emoji entity returned by symbol2index() |
引用了 g_emojiEntities, g_numEmojiEntities , 以及 emojiEntityInfo::name.
被这些函数引用 EmojiEntityMapper(), LatexDocVisitor::visit(), ManDocVisitor::visit(), XmlDocVisitor::visit(), TextDocVisitor::visit() , 以及 PerlModDocVisitor::visit().
int EmojiEntityMapper::symbol2index | ( | const std::string & | symName | ) | const |
Returns a code for the requested Emoji entity name
symName | Emoji entity name |
-1
is returned. 引用了 m_name2symGh.
被这些函数引用 DocEmoji::DocEmoji().
const char * EmojiEntityMapper::unicode | ( | int | index | ) | const |
Access routine to the unicode sequence for the Emoji entity
index | code of the requested Emoji entity returned by symbol2index() |
引用了 g_emojiEntities, g_numEmojiEntities , 以及 emojiEntityInfo::unicode.
被这些函数引用 HtmlDocVisitor::visit(), DocbookDocVisitor::visit() , 以及 RTFDocVisitor::visit().
void EmojiEntityMapper::writeEmojiFile | ( | TextStream & | t | ) |
Writes the list of supported emojis to the given file.
引用了 g_emojiEntities, g_numEmojiEntities , 以及 emojiEntityInfo::name.
被这些函数引用 readConfiguration().
|
private |
被这些函数引用 EmojiEntityMapper() , 以及 symbol2index().
|
staticprivate |
被这些函数引用 deleteInstance() , 以及 instance().