Doxygen
|
Singleton helper class to map emoji entities to other formats. More...
#include <src/emoji.h>
Public Member Functions | |
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. | |
Static Public Member Functions | |
static EmojiEntityMapper & | instance () |
Returns the one and only instance of the Emoji entity mapper. | |
Private Member Functions | |
EmojiEntityMapper () | |
~EmojiEntityMapper () | |
Private Attributes | |
std::map< std::string, int > | m_name2symGh |
Static Private Attributes | |
static EmojiEntityMapper * | s_instance = nullptr |
Singleton helper class to map emoji entities to other formats.
|
private |
Definition at line 1960 of file emoji.cpp.
References g_emojiCompatibilityEntities, g_emojiEntities, g_numEmojiCompatibilityEntities, g_numEmojiEntities, m_name2symGh, name(), and symbol2index().
Referenced by instance().
|
private |
|
static |
Returns the one and only instance of the Emoji entity mapper.
Definition at line 1978 of file emoji.cpp.
References EmojiEntityMapper().
Referenced by DocEmoji::DocEmoji(), DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), RTFDocVisitor::operator()(), TextDocVisitor::operator()(), XmlDocVisitor::operator()(), and readConfiguration().
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() |
Definition at line 2026 of file emoji.cpp.
References g_emojiEntities, g_numEmojiEntities, and name().
Referenced by EmojiEntityMapper(), name(), LatexDocVisitor::operator()(), ManDocVisitor::operator()(), PerlModDocVisitor::operator()(), PrintDocVisitor::operator()(), and XmlDocVisitor::operator()().
int EmojiEntityMapper::symbol2index | ( | const std::string & | symName | ) | const |
Returns a code for the requested Emoji entity name.
symName | Emoji entity name |
-1
is returned. Definition at line 1990 of file emoji.cpp.
References m_name2symGh.
Referenced by DocEmoji::DocEmoji(), and EmojiEntityMapper().
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() |
Definition at line 2016 of file emoji.cpp.
References g_emojiEntities, g_numEmojiEntities, and unicode().
Referenced by DocbookDocVisitor::operator()(), HtmlDocVisitor::operator()(), RTFDocVisitor::operator()(), TextDocVisitor::operator()(), and unicode().
void EmojiEntityMapper::writeEmojiFile | ( | TextStream & | t | ) |
Writes the list of supported emojis to the given file.
Definition at line 1999 of file emoji.cpp.
References g_emojiCompatibilityEntities, g_emojiEntities, g_numEmojiCompatibilityEntities, g_numEmojiEntities, emojiEntityInfo::name, and emojiEntityCompatibility::oldName.
Referenced by readConfiguration().
|
private |
Definition at line 40 of file emoji.h.
Referenced by EmojiEntityMapper(), and symbol2index().
|
staticprivate |