Skip to main content

The DocEmoji Class Reference

Node representing an emoji. More...

Declaration

class DocEmoji { ... }

Included Headers

#include <src/docnode.h>

Base class

classDocNode

Abstract node interface with type information. More...

Public Constructors Index

DocEmoji (DocParser *parser, DocNodeVariant *parent, const QCString &symName)

Public Member Functions Index

QCStringname () const
intindex () const

Private Member Attributes Index

QCStringm_symName
intm_index = 0

Description

Node representing an emoji.

Definition at line 340 of file docnode.h.

Public Constructors

DocEmoji()

DocEmoji::DocEmoji (DocParser * parser, DocNodeVariant * parent, const QCString & symName)

Declaration at line 343 of file docnode.h, definition at line 160 of file docnode.cpp.

161 DocNode(parser,parent), m_symName(symName), m_index(-1)
162{
163 QCString locSymName = symName;
164 size_t len=locSymName.length();
165 if (len>0)
166 {
167 if (locSymName.at(len-1)!=':') locSymName.append(":");
168 if (locSymName.at(0)!=':') locSymName.prepend(":");
169 }
170 m_symName = locSymName;
172 if (m_index==-1)
173 {
174 warn_doc_error(parser->context.fileName,parser->tokenizer.getLineNr(),"Found unsupported emoji symbol '{}'",m_symName);
175 }
176}

References QCString::append, QCString::at, DocNode::DocNode, EmojiEntityMapper::instance, QCString::length, m_index, m_symName, DocNode::parent, DocNode::parser, QCString::prepend, EmojiEntityMapper::symbol2index and warn_doc_error.

Private Member Attributes

m_index

int DocEmoji::m_index = 0

Definition at line 349 of file docnode.h.

349 int m_index = 0;

Referenced by DocEmoji and index.

m_symName

QCString DocEmoji::m_symName

Definition at line 348 of file docnode.h.

Referenced by DocEmoji and name.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus by Doxygen 1.14.0.