The EmojiEntityMapper
Class Reference
Singleton helper class to map emoji entities to other formats. More...
Declaration
Included Headers
Private Constructors Index
EmojiEntityMapper () | |
Private Destructor Index
~EmojiEntityMapper () | |
Public Member Functions Index
const char * | name (int index) const |
Access routine to the name of the Emoji entity. More... | |
const char * | unicode (int index) const |
Access routine to the unicode sequence for the Emoji entity. More... | |
void | writeEmojiFile (TextStream &t) |
Writes the list of supported emojis to the given file. More... | |
int | symbol2index (const std::string &symName) const |
Returns a code for the requested Emoji entity name. More... | |
Private Member Attributes Index
std::map< std::string, int > | m_name2symGh |
Public Static Functions Index
static EmojiEntityMapper & | instance () |
Returns the one and only instance of the Emoji entity mapper. More... | |
Private Static Attributes Index
static EmojiEntityMapper * | s_instance = nullptr |
Description
Singleton helper class to map emoji entities to other formats.
Definition at line 26 of file emoji.h.
Private Constructors
EmojiEntityMapper()
|
Declaration at line 36 of file emoji.h, 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 Destructor
~EmojiEntityMapper()
Public Member Functions
name()
|
Access routine to the name of the Emoji entity.
- Parameters
-
index code of the requested Emoji entity returned by symbol2index()
- Returns
the name of the Emoji entity in GitHub format (i.e. :smile:)
Declaration at line 30 of file emoji.h, 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().
symbol2index()
|
Returns a code for the requested Emoji entity name.
- Parameters
-
symName Emoji entity name
- Returns
the code for the requested Emoji entity name, in case the requested Emoji item does not exist -1 is returned.
Declaration at line 33 of file emoji.h, definition at line 1990 of file emoji.cpp.
Reference m_name2symGh.
Referenced by DocEmoji::DocEmoji and EmojiEntityMapper.
unicode()
|
Access routine to the unicode sequence for the Emoji entity.
- Parameters
-
index code of the requested Emoji entity returned by symbol2index()
- Returns
the unicode sequence of the Emoji entity,
Declaration at line 31 of file emoji.h, 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.
writeEmojiFile()
|
Writes the list of supported emojis to the given file.
Declaration at line 32 of file emoji.h, definition at line 1999 of file emoji.cpp.
References g_emojiCompatibilityEntities, g_emojiEntities, g_numEmojiCompatibilityEntities and g_numEmojiEntities.
Referenced by readConfiguration.
Private Member Attributes
m_name2symGh
|
Definition at line 40 of file emoji.h.
Referenced by EmojiEntityMapper and symbol2index.
Public Static Functions
instance()
| static |
Returns the one and only instance of the Emoji entity mapper.
Declaration at line 29 of file emoji.h, definition at line 1978 of file emoji.cpp.
Reference 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.
Private Static Attributes
s_instance
| static |
Definition at line 39 of file emoji.h.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.