MD::AsteriskEmphasisParser Class
class MD::AsteriskEmphasisParserAsterisk emphasis parser. More...
| Header: | #include <md4qt/asterisk_emphasis_parser.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
| Inherits: | MD::EmphasisParser |
| Inherited By: |
Public Functions
| AsteriskEmphasisParser() | |
| virtual | ~AsteriskEmphasisParser() override |
Reimplemented Public Functions
| virtual ItemWithOpts::Styles | closeStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const override |
| virtual bool | isEmphasis(int length) const override |
| virtual bool | isLengthCorrespond() const override |
| virtual ItemWithOpts::Styles | openStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const override |
| virtual const QChar & | symbol() const override |
Detailed Description
Asterisk emphasis parser.
Member Function Documentation
[constexpr noexcept default] AsteriskEmphasisParser::AsteriskEmphasisParser()
Default-constructs an instance of AsteriskEmphasisParser.
[override virtual constexpr noexcept default] AsteriskEmphasisParser::~AsteriskEmphasisParser()
Destroys the instance of AsteriskEmphasisParser. This destructor is virtual.
[override virtual] ItemWithOpts::Styles AsteriskEmphasisParser::closeStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const
Reimplements: EmphasisParser::closeStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const.
Returns closing text option (style) for the given delimiter with the given length.
startPos Start position of the first delimiter.
lineNumber Line number.
length Length of the delimiter.
[override virtual] bool AsteriskEmphasisParser::isEmphasis(int length) const
Reimplements: EmphasisParser::isEmphasis(int length) const.
Returns whether the sequence of the given length is an emphasis.
length Length of the sequence.
[override virtual] bool AsteriskEmphasisParser::isLengthCorrespond() const
Reimplements: EmphasisParser::isLengthCorrespond() const.
Returns whether length of opening and closing delimiter should be equal to each other, or may differ.
[override virtual] ItemWithOpts::Styles AsteriskEmphasisParser::openStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const
Reimplements: EmphasisParser::openStyles(qsizetype startPos, qsizetype lineNumber, qsizetype length) const.
Returns opening text option (style) for the given delimiter with the given length.
startPos Start position of the first delimiter.
lineNumber Line number.
length Length of the delimiter.
[override virtual] const QChar &AsteriskEmphasisParser::symbol() const
Reimplements: EmphasisParser::symbol() const.
Returns delimiter character for this kind of emphasis.