![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <docparser.h>
Public Member Functions | |
| void | parse (const QString &source, DocPrivate *docPrivate, const QSet< QString > &metaCommandSet, const QSet< QString > &possibleTopics) |
| Parse the source string to build a Text data structure in docPrivate. | |
Static Public Member Functions | |
| static void | initialize (const Config &config, FileResolver &file_resolver) |
| static int | endCmdFor (int cmd) |
| static QString | cmdName (int cmd) |
| static QString | endCmdName (int cmd) |
| static QString | untabifyEtc (const QString &str) |
| static int | indentLevel (const QString &str) |
| static QString | dedent (int level, const QString &str) |
Static Public Attributes | |
| static int | s_tabSize |
| static QStringList | s_ignoreWords |
| static bool | s_quoting = false |
Definition at line 28 of file docparser.h.
|
static |
Definition at line 2799 of file docparser.cpp.
References name.
Definition at line 2859 of file docparser.cpp.
|
static |
Definition at line 2751 of file docparser.cpp.
References CMD_BADCODE, CMD_CODE, CMD_COMPARESWITH, CMD_DETAILS, CMD_DIV, CMD_ENDCODE, CMD_ENDCOMPARESWITH, CMD_ENDDETAILS, CMD_ENDDIV, CMD_ENDFOOTNOTE, CMD_ENDLEGALESE, CMD_ENDLINK, CMD_ENDLIST, CMD_ENDOMIT, CMD_ENDQML, CMD_ENDQUOTATION, CMD_ENDRAW, CMD_ENDSECTION1, CMD_ENDSECTION2, CMD_ENDSECTION3, CMD_ENDSECTION4, CMD_ENDSIDEBAR, CMD_ENDTABLE, CMD_ENDTOC, CMD_FOOTNOTE, CMD_LEGALESE, CMD_LINK, CMD_LIST, CMD_OMIT, CMD_QML, CMD_QUOTATION, CMD_RAW, CMD_SECTION1, CMD_SECTION2, CMD_SECTION3, CMD_SECTION4, CMD_SIDEBAR, CMD_TABLE, and CMD_TOC.
|
static |
Definition at line 2804 of file docparser.cpp.
|
static |
Definition at line 2842 of file docparser.cpp.
|
static |
Definition at line 265 of file docparser.cpp.
References DocUtilities::cmdHash, name, no, s_quoting, and s_tabSize.
Referenced by Doc::initialize().
| void DocParser::parse | ( | const QString & | source, |
| DocPrivate * | docPrivate, | ||
| const QSet< QString > & | metaCommandSet, | ||
| const QSet< QString > & | possibleTopics ) |
Parse the source string to build a Text data structure in docPrivate.
The Text data structure is a linked list of Atoms.
metaCommandSet is the set of metacommands that may be found in source. These metacommands are not markup text commands. They are topic commands and related metacommands.
Definition at line 300 of file docparser.cpp.
References Atom::AutoLink, Atom::BR, Atom::C, Atom::chopString(), CMD_ANNOTATEDLIST, CMD_BADCODE, CMD_BOLD, CMD_BRIEF, CMD_CAPTION, CMD_CODE, CMD_CODELINE, CMD_COMPARESWITH, CMD_DETAILS, CMD_DIV, CMD_DOTS, CMD_ELSE, CMD_ENDCODE, CMD_ENDCOMPARESWITH, CMD_ENDDETAILS, CMD_ENDDIV, CMD_ENDFOOTNOTE, CMD_ENDIF, CMD_ENDLEGALESE, CMD_ENDLINK, CMD_ENDLIST, CMD_ENDOMIT, CMD_ENDQML, CMD_ENDQUOTATION, CMD_ENDRAW, CMD_ENDSECTION1, CMD_ENDSECTION2, CMD_ENDSECTION3, CMD_ENDSECTION4, CMD_ENDSIDEBAR, CMD_ENDTABLE, CMD_ENDTOC, CMD_FOOTNOTE, CMD_GENERATELIST, CMD_HEADER, CMD_HR, CMD_I, CMD_IF, CMD_IMAGE, CMD_IMPORTANT, CMD_INCLUDE, CMD_INDEX, CMD_INLINEIMAGE, CMD_INPUT, CMD_KEYWORD, CMD_LEGALESE, CMD_LI, CMD_LINK, CMD_LIST, CMD_META, CMD_NOTE, CMD_O, CMD_OMITVALUE, CMD_OVERLOAD, CMD_PRINTLINE, CMD_PRINTTO, CMD_PRINTUNTIL, CMD_QML, CMD_QUOTATION, CMD_QUOTEFILE, CMD_QUOTEFROMFILE, CMD_RAW, CMD_ROW, CMD_SA, CMD_SECTION1, CMD_SECTION2, CMD_SECTION3, CMD_SECTION4, CMD_SIDEBAR, CMD_SINCELIST, CMD_SKIPLINE, CMD_SKIPTO, CMD_SKIPUNTIL, CMD_SNIPPET, CMD_TABLE, CMD_TABLEOFCONTENTS, CMD_TARGET, CMD_TITLE, CMD_TOC, CMD_TOCENTRY, CMD_UNICODE, CMD_VALUE, CMD_WARNING, DocUtilities::cmdHash, Atom::CodeQuoteArgument, Atom::CodeQuoteCommand, Atom::ComparesLeft, Atom::ComparesRight, DocPrivate::constructExtra(), Atom::DetailsRight, Atom::DivLeft, Atom::DivRight, DocPrivate::extra, Atom::FootnoteLeft, Atom::FootnoteRight, Atom::FormatElse, Atom::FormatEndif, Atom::FormatIf, Atom::FormattingLeft, Atom::FormattingRight, Atom::HR, Text::lastAtom(), Atom::LegaleseLeft, Atom::LegaleseRight, Atom::Link, Atom::ListItemLeft, Atom::ListTagLeft, Atom::ListTagRight, DocPrivate::m_hasLegalese, DocPrivate::m_metaCommandMap, DocPrivateExtra::m_metaMap, DocPrivate::m_text, DocPrivate::m_topics, DocUtilities::macroHash, Atom::Nop, Doc::NoSection, NOT_A_CMD, Atom::ParaLeft, processComparesWithCommand(), Atom::QuotationLeft, Atom::QuotationRight, Atom::RawString, s_quoting, Doc::Section1, Doc::Section2, Doc::Section3, Doc::Section4, Atom::SidebarLeft, Atom::SidebarRight, Atom::SinceTagLeft, Atom::SinceTagRight, Atom::SnippetCommand, Atom::SnippetIdentifier, Atom::SnippetLocation, Atom::String, Text::stripFirstAtom(), Text::subText(), Atom::TableHeaderLeft, Atom::TableItemRight, Atom::TableOfContentsLeft, Atom::TableOfContentsRight, Atom::TableRight, Atom::TableRowLeft, Atom::type(), and Atom::UnknownCommand.
Definition at line 2809 of file docparser.cpp.
|
static |
Definition at line 43 of file docparser.h.
|
static |
Definition at line 44 of file docparser.h.
Referenced by initialize(), and parse().
|
static |
Definition at line 42 of file docparser.h.
Referenced by initialize().