42#if !ENABLE_DOCPARSER_TRACING
46#define AUTO_TRACE(...) (void)0
47#define AUTO_TRACE_ADD(...) (void)0
48#define AUTO_TRACE_EXIT(...) (void)0
51#define INTERNAL_ASSERT(x) do {} while(0)
70 "uml",
"bpm",
"wire",
"dot",
"ditaa",
71 "salt",
"math",
"latex",
"gantt",
"mindmap",
72 "wbs",
"yaml",
"creole",
"json",
"flow",
73 "board",
"git",
"hcl",
"regex",
"ebnf",
74 "files",
"chen",
"chronology"
84 const char *p = s.
data();
90 if (c==
'{') c=
'<';
else if (c==
'}') c=
'>';
120 std::visit([&](
auto &&x)->
decltype(
auto) {
return x.setParent(newParent); }, *n);
163 size_t len=locSymName.
length();
166 if (locSymName.
at(len-1)!=
':') locSymName.
append(
":");
167 if (locSymName.
at(0)!=
':') locSymName.
prepend(
":");
185 Doxygen::searchIndex.addWord(word,false);
202 Doxygen::searchIndex.addWord(word,false);
218 if (
id.left(anchorPrefix.
length()) == anchorPrefix)
308 parser()->tokenizer.getLineNr(),
309 "block marked with %s for \\snippet should appear twice in file %s, found it %d times",
323 "No previous '\\include' or '\\dontinclude' command for '\\%s' present",
334 size_t so = o, bo = 0;
335 bool nonEmpty =
FALSE;
348 else if (!isspace(
static_cast<uint8_t
>(c)))
378 else if (!isspace(
static_cast<uint8_t
>(c)))
411 else if (!isspace(
static_cast<uint8_t
>(c)))
442 else if (!isspace(
static_cast<uint8_t
>(c)))
486 if (
parser()->context.memberDef &&
parser()->context.memberDef->name().at(0)==
'@')
545 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
619 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
621 if (tok.
is_any_of(TokenRetval::TK_COMMAND_AT, TokenRetval::TK_COMMAND_BS))
628 if (!tok.
is(TokenRetval::TK_WHITESPACE))
634 if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
653 else if (tok.
is(TokenRetval::TK_WHITESPACE))
659 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected token %s inside section reference list",
691 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
752 bool isFile = compound ?
787 toFileDef(compound)->generateSourceFile()
796 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '%s' for \\ref command",
802 for (
auto &&elem : elements)
812 for (
auto &dn : children)
814 DocPara *para = std::get_if<DocPara>(&dn);
826 for (
auto &cn : children)
833 for (
auto &ccn : *opt_children)
847 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
853 case TokenRetval::TK_HTMLTAG:
866 if (
parser()->context.insideHtmlLink)
871 "Potential recursion while resolving \\ref command!");
896 if (numBibFiles>0 && cite && !cite->
text().
isEmpty())
909 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command found but no bib files specified via CITE_BIB_FILES!");
911 else if (cite==
nullptr)
913 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"unable to resolve reference to '%s' for \\cite command",
918 warn_doc_error(
parser->context.fileName,
parser->tokenizer.getLineNr(),
"\\cite command to '%s' does not have an associated number",
933 m_refText = m_refText.right(m_refText.length()-1);
938 if (compound && compound->isLinkable())
940 m_file = compound->getOutputFileBase();
941 m_ref = compound->getReference();
944 (
toFileDef(compound))->generateSourceFile()
954 warn_doc_error(parser->context.fileName,parser->tokenizer.getLineNr(),
"unable to resolve link to '%s' for \\link command",
966 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
972 case TokenRetval::TK_COMMAND_AT:
974 case TokenRetval::TK_COMMAND_BS:
990 case TokenRetval::TK_SYMBOL:
991 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unsupported symbol '%s' found as part of a \\link",
994 case TokenRetval::TK_HTMLTAG:
995 if (
parser()->context.token->name!=
"see" || !isXmlLink)
997 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected xml/html command %s found as part of a \\link",
1001 case TokenRetval::TK_LNKWORD:
1002 case TokenRetval::TK_WORD:
1011 else if ((p=w.
find(
'}'))!=-1)
1013 int l =
static_cast<int>(w.
length());
1017 result=w.
right(l-p-1);
1031 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1034 parser()->tokenizer.getLineNr(),
1035 "Unexpected end of comment while inside link command");
1055 p->relPath =
parser->context.relPath;
1065 if (fd==
nullptr && !
p->name.endsWith(
".dot"))
1076 "Possible candidates:\n%s",
qPrint(
p->name),
1084 "in any of the paths specified via DOTFILE_DIRS!",
qPrint(
p->name));
1093 p->relPath =
parser->context.relPath;
1103 if (fd==
nullptr && !
p->name.endsWith(
".msc"))
1114 "Possible candidates:\n%s",
qPrint(
p->name),
1122 "in any of the paths specified via MSCFILE_DIRS!",
qPrint(
p->name));
1133 p->relPath =
parser->context.relPath;
1143 if (fd==
nullptr && !
p->name.endsWith(
".dia"))
1154 "Possible candidates:\n%s",
qPrint(
p->name),
1162 "in any of the paths specified via DIAFILE_DIRS!",
qPrint(
p->name));
1172 p->relPath =
parser->context.relPath;
1182 if (fd==
nullptr && !
p->name.endsWith(
".puml"))
1185 if (fd==
nullptr && !
p->name.endsWith(
".pu"))
1197 "Possible candidates:\n%s",
qPrint(
p->name),
1205 "in any of the paths specified via PLANTUMLFILE_DIRS!",
qPrint(
p->name));
1223 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1250 QCString locName =
p->url.isEmpty() ?
p->name :
p->url;
1251 int len =
static_cast<int>(locName.
length());
1252 int fnd = locName.
find(
'?');
1253 if (fnd==-1) fnd=len;
1254 return fnd>=4 && locName.
mid(fnd-4,4)==
".svg";
1268 Token retval(TokenRetval::RetVal_OK);
1272 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1276 switch (tok.
value())
1278 case TokenRetval::TK_HTMLTAG:
1337 if (!
parser()->context.token->endTag)
1348 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <%s%s> found within <h%d> context",
1361 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1378 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1382 if (tok.
value()==TokenRetval::TK_HTMLTAG &&
1384 parser()->context.token->endTag
1396 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1408 Token retval(TokenRetval::TK_NONE);
1419 retval=par->
parse();
1421 while (retval.
is(TokenRetval::TK_NEWPARA));
1424 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1426 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <details> block");
1437 return retval.
is(TokenRetval::RetVal_EndHtmlDetails) ? Token::make_RetVal_OK() : retval;
1453 Token retval(TokenRetval::RetVal_OK);
1457 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1461 switch (tok.
value())
1463 case TokenRetval::TK_HTMLTAG:
1476 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <%s%s> found within <a href=...> context",
1488 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1491 " <a href=...> tag");
1503 Token retval(TokenRetval::RetVal_OK);
1513 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
1514 retval=par->parse();
1515 if (!par->isEmpty())
1524 if (retval.
is(TokenRetval::TK_LISTITEM))
1528 }
while (!retval.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF,
1529 TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection, TokenRetval::RetVal_Subsubsection,
1530 TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph, TokenRetval::RetVal_SubSubParagraph,
1531 TokenRetval::RetVal_EndInternal));
1535 while ((level==1 && retval.
is(TokenRetval::RetVal_Section)) ||
1536 (level==2 && retval.
is(TokenRetval::RetVal_Subsection)) ||
1537 (level==3 && retval.
is(TokenRetval::RetVal_Subsubsection)) ||
1538 (level==4 && retval.
is(TokenRetval::RetVal_Paragraph)) ||
1539 (level==5 && retval.
is(TokenRetval::RetVal_SubParagraph)) ||
1540 (level==6 && retval.
is(TokenRetval::RetVal_SubSubParagraph))
1549 if (retval.
is(TokenRetval::RetVal_Internal))
1551 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"\\internal command found inside internal section");
1563 Token retval(TokenRetval::RetVal_OK);
1566 if (!tok.
is(TokenRetval::TK_WHITESPACE))
1574 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1576 switch (tok.
value())
1578 case TokenRetval::TK_WHITESPACE:
1581 case TokenRetval::TK_WORD:
1582 case TokenRetval::TK_LNKWORD:
1585 case TokenRetval::TK_SYMBOL:
1612 case TokenRetval::TK_COMMAND_AT:
1614 case TokenRetval::TK_COMMAND_BS:
1636 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected command %s found as argument of \\addindex",
1661 for (
const auto &opt :
attribs)
1663 if (opt.name==
"id" && !opt.value.isEmpty())
1688 Token retval = Token::make_TK_NONE();
1691 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
1695 switch (tok.
value())
1697 case TokenRetval::TK_HTMLTAG:
1702 retval = Token::make_RetVal_OK();
1707 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <%s%s> found within <caption> context",
1719 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1734 Token retval = Token::make_RetVal_OK();
1745 retval=par->
parse();
1746 if (retval.
is(TokenRetval::TK_HTMLTAG))
1751 retval = Token::make_TK_NEWPARA();
1755 retval = Token::make_TK_NEWPARA();
1759 while (retval.
is_any_of(TokenRetval::TK_NEWPARA,TokenRetval::RetVal_EndParBlock));
1768 Token retval = Token::make_RetVal_OK();
1779 retval=par->
parse();
1780 if (retval.
is(TokenRetval::TK_HTMLTAG))
1785 retval = Token::make_TK_NEWPARA();
1789 retval = Token::make_TK_NEWPARA();
1793 while (retval.
is(TokenRetval::TK_NEWPARA));
1801 for (
const auto &attr :
attribs())
1803 if (attr.name.lower()==
"rowspan")
1805 return attr.value.toUInt();
1813 for (
const auto &attr :
attribs())
1815 if (attr.name.lower()==
"colspan")
1817 return std::max(1u,attr.value.toUInt());
1825 for (
const auto &attr :
attribs())
1829 if (attrName==
"align")
1831 if (attrValue==
"center")
1833 else if (attrValue==
"right")
1837 else if (attrName==
"class" && attrValue.
startsWith(
"markdowntable"))
1839 if (attrValue==
"markdowntableheadcenter")
1841 else if (attrValue==
"markdowntableheadright")
1843 else if (attrValue==
"markdowntableheadleft")
1845 else if (attrValue==
"markdowntableheadnone")
1847 else if (attrValue==
"markdowntablebodycenter")
1849 else if (attrValue==
"markdowntablebodyright")
1851 else if (attrValue==
"markdowntablebodyleft")
1853 else if (attrValue==
"markdowntablebodynone")
1863 for (
const auto &attr :
attribs())
1867 if (attrName==
"valign")
1869 if (attrValue==
"top")
1871 else if (attrValue==
"bottom")
1873 else if (attrValue==
"middle")
1888 const DocHtmlCell *cell = std::get_if<DocHtmlCell>(&n);
1901 Token retval = Token::make_RetVal_OK();
1913 if (tok.
is(TokenRetval::TK_HTMLTAG))
1926 "found <%s> instead!",
qPrint(
parser()->context.token->name));
1931 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1934 " for a html description title");
1939 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected <td> or <th> tag but found %s token instead!",
1953 retval=cell->
parse();
1954 isHeading = retval.
is(TokenRetval::RetVal_TableHCell);
1956 while (retval.
is_any_of(TokenRetval::RetVal_TableCell,TokenRetval::RetVal_TableHCell));
1966 Token retval = Token::make_RetVal_OK();
1977 if (tok.
is(TokenRetval::TK_HTMLTAG))
1989 "found <%s> instead!",
qPrint(
parser()->context.token->name));
1994 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
1997 " for a html description title");
2002 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected <td> or <th> tag but found %s token instead!",
2015 while (retval.
is_any_of(TokenRetval::RetVal_TableCell,TokenRetval::RetVal_TableHCell));
2036 if (!
children().empty() && std::holds_alternative<DocHtmlRow>(
children().front()))
2046 Token retval = Token::make_RetVal_OK();
2055 if (tok.
is(TokenRetval::TK_HTMLTAG))
2073 retval = Token::make_RetVal_TableRow();
2084 retval=std::get<DocHtmlCaption>(*m_caption).parse();
2086 if (retval.
is(TokenRetval::RetVal_OK))
2095 "found <%s%s> instead!",
parser()->context.token->endTag ?
"/" :
"",
qPrint(
parser()->context.token->name));
2098 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2101 " for a <tr> or <caption> tag");
2110 while (retval.
is(TokenRetval::RetVal_TableRow))
2118 return retval.
is(TokenRetval::RetVal_EndTable) ? Token::make_RetVal_OK() : retval;
2124 Token retval = Token::make_RetVal_OK();
2133 bool isHeader=
FALSE;
2134 if (tok.
is(TokenRetval::TK_HTMLTAG))
2139 retval = Token::make_RetVal_TableRow();
2143 retval = Token::make_RetVal_TableRow();
2149 while (retval.
is(TokenRetval::RetVal_TableRow))
2153 retval=tr->parseXml(isHeader);
2188 DocHtmlRow *row = std::get_if<DocHtmlRow>(&rowNode);
2191 for (
auto &cellNode : row->
children())
2193 DocHtmlCell *cell = std::get_if<DocHtmlCell>(&cellNode);
2196 uint32_t rs = cell->
rowSpan();
2197 uint32_t cs = cell->
colSpan();
2199 for (
size_t i=0;i<rowSpans.size();i++)
2201 if (rowSpans[i].rowsLeft>0 &&
2202 rowSpans[i].column==colIdx)
2204 colIdx=rowSpans[i].column+1;
2208 if (rs>0) rowSpans.emplace_back(rs,colIdx);
2216 for (
size_t i=0;i<rowSpans.size();i++)
2218 if (rowSpans[i].rowsLeft>0) rowSpans[i].rowsLeft--;
2224 if (colIdx-1>maxCols) maxCols=colIdx-1;
2234 Token retval = Token::make_TK_NONE();
2238 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
2242 switch (tok.
value())
2244 case TokenRetval::TK_COMMAND_AT:
2246 case TokenRetval::TK_COMMAND_BS:
2249 bool isJavaLink=
FALSE;
2255 if (!tok.
is(TokenRetval::TK_WHITESPACE))
2264 if (!tok.
is(TokenRetval::TK_WORD))
2266 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token %s as the argument of '%c%s' command",
2284 if (!tok.
is(TokenRetval::TK_WHITESPACE))
2293 if (!tok.
is(TokenRetval::TK_WORD))
2295 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token %s as the argument of \\%s command",
2303 QCString leftOver = lnk->parse(isJavaLink);
2304 if (!leftOver.isEmpty())
2314 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Illegal command '%c%s' found as part of a <dt> tag",
2319 case TokenRetval::TK_SYMBOL:
2320 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unsupported symbol '%s' found as part of a <dt> tag",
2323 case TokenRetval::TK_HTMLTAG:
2328 retval = Token::make_RetVal_DescData();
2338 retval = Token::make_RetVal_DescTitle();
2343 retval = Token::make_RetVal_EndDesc();
2348 if (!
parser()->context.token->endTag)
2355 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unexpected html tag <%s%s> found within <dt> context",
2368 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2384 Token retval = Token::make_TK_NONE();
2394 retval=par->
parse();
2396 while (retval.
is(TokenRetval::TK_NEWPARA));
2407 Token retval = Token::make_RetVal_OK();
2415 if (tok.
is(TokenRetval::TK_HTMLTAG))
2425 "found <%s> instead!",
qPrint(
parser()->context.token->name));
2430 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2433 " for a html description title");
2450 if (retval.is(TokenRetval::RetVal_DescData))
2453 while (retval.is(TokenRetval::RetVal_DescData))
2460 else if (!retval.is(TokenRetval::RetVal_DescTitle))
2465 }
while (retval.
is(TokenRetval::RetVal_DescTitle));
2467 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2469 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <dl> block");
2474 return retval.
is(TokenRetval::RetVal_EndDesc) ? Token::make_RetVal_OK() : retval;
2482 Token retval = Token::make_TK_NONE();
2493 retval=par->
parse();
2495 while (retval.
is(TokenRetval::TK_NEWPARA));
2505 Token retval = Token::make_TK_NONE();
2516 retval=par->
parse();
2517 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2521 if (retval.
is(TokenRetval::RetVal_ListItem))
2526 while (!retval.
is(TokenRetval::RetVal_CloseXml));
2539 Token retval = Token::make_RetVal_OK();
2548 if (tok.
is(TokenRetval::TK_HTMLTAG))
2557 ) &&
parser()->context.token->endTag
2563 retval = Token::make_RetVal_EndList();
2571 "found <%s%s> instead!",
parser()->context.token->endTag?
"/":
"",
qPrint(
parser()->context.token->name));
2576 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2581 " for a html list item");
2598 }
while (retval.
is(TokenRetval::RetVal_ListItem));
2600 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2602 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <%cl> block",
2608 return retval.
is(TokenRetval::RetVal_EndList) ? Token::make_RetVal_OK() : retval;
2614 Token retval = Token::make_RetVal_OK();
2623 if (tok.
is(TokenRetval::TK_HTMLTAG))
2634 "found <%s> instead!",
qPrint(
parser()->context.token->name));
2639 else if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2642 " for a html list item");
2656 retval=li->parseXml();
2657 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2659 }
while (retval.
is(TokenRetval::RetVal_ListItem));
2661 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2663 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <list type=\"%s\"> block",
2669 return (retval.
is_any_of(TokenRetval::RetVal_EndList,TokenRetval::RetVal_CloseXml) ||
parser()->context.token->name==
"list") ?
2670 Token::make_RetVal_OK() : retval;
2678 Token retval = Token::make_TK_NONE();
2689 retval=par->
parse();
2691 while (retval.
is(TokenRetval::TK_NEWPARA));
2694 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
2696 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment while inside <blockquote> block");
2700 return retval.
is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2708 Token retval = Token::make_TK_NONE();
2719 retval=par->
parse();
2721 while (retval.
is(TokenRetval::TK_NEWPARA));
2725 return retval.
is(TokenRetval::RetVal_EndBlockQuote) ? Token::make_RetVal_OK() : retval;
2752 Token rv = Token::make_TK_NONE();
2758 }
while (rv.
is(TokenRetval::RetVal_ListItem));
2759 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
2772 Token retval = Token::make_RetVal_OK();
2782 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
2783 retval=par->parse();
2784 if (!par->isEmpty())
2795 }
while (retval.
is(TokenRetval::TK_NEWPARA) &&
parser()->context.token->indent>
m_indent);
2814 Token retval = Token::make_RetVal_OK();
2821 switch (
parser()->context.token->id)
2843 while (retval.
is(TokenRetval::TK_LISTITEM) &&
2847 (
parser()->context.token->id==-1 ||
parser()->context.token->id>=num)
2863 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
2895 return m_title && std::get<DocTitle>(*m_title).hasTitle();
2907 std::get_if<DocTitle>(
m_title.get())->parse();
2911 if (!
children().empty() && std::holds_alternative<DocPara>(
children().back()))
2929 Token retval = par->parse();
2949 return Token::make_RetVal_OK();
2957 Token retval = Token::make_RetVal_OK();
2961 if (!
children().empty() && std::holds_alternative<DocPara>(
children().back()))
2963 std::get<DocPara>(
children().back()).markLast(
false);
2975 retval = par->parse();
2976 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
2977 if (retval.
is(TokenRetval::RetVal_CloseXml))
2979 retval = Token::make_RetVal_OK();
2991 if (
children().empty() || (p=std::get_if<DocPara>(&
children().back()))==
nullptr)
3013 case See:
return "see";
3014 case Return:
return "return";
3016 case Authors:
return "author";
3017 case Version:
return "version";
3018 case Since:
return "since";
3019 case Date:
return "date";
3020 case Note:
return "note";
3021 case Warning:
return "warning";
3022 case Pre:
return "pre";
3023 case Post:
return "post";
3025 case Invar:
return "invariant";
3026 case Remark:
return "remark";
3029 case User:
return "user";
3030 case Rcs:
return "rcs";
3040 Token retval = Token::make_RetVal_OK();
3046 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3050 retval = Token::make_RetVal_EndParBlock();
3055 while (tok.
is(TokenRetval::TK_WORD))
3060 if (typeSeparator!=-1)
3066 if (
parent() && std::holds_alternative<DocParamSect>(*
parent()))
3068 std::get<DocParamSect>(*
parent()).m_hasTypeSpecifier=
true;
3087 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3089 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3090 "argument of command %s",
qPrint(saveCmdName));
3091 retval = Token::make_RetVal_EndParBlock();
3094 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3096 if (!tok.
is(TokenRetval::TK_NEWPARA))
3098 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected token %s in comment block while parsing the "
3101 retval = Token::make_RetVal_EndParBlock();
3107 retval = par->
parse();
3119 Token retval = Token::make_RetVal_OK();
3140 retval = par->parse();
3162 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
break;
3164 }
while (retval.
is(TokenRetval::RetVal_CloseXml) &&
3169 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3175 retval = Token::make_RetVal_OK();
3187 Token retval = Token::make_RetVal_OK();
3195 if (!
children().empty() && std::holds_alternative<DocParamList>(
children().back()))
3210 retval = pl->parseXml(cmdName);
3214 retval = pl->parse(cmdName);
3216 if (retval.
is(TokenRetval::RetVal_EndParBlock))
3218 retval = Token::make_RetVal_OK();
3237 bool needsSeparator =
FALSE;
3239 (ss=
children().get_last<DocSimpleSect>()) &&
3244 needsSeparator =
TRUE;
3251 Token rv = Token::make_RetVal_OK();
3260 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
3265 bool xmlContext=
FALSE,
3271 (ps=
children().get_last<DocParamSect>()) &&
3283 return (!rv.
is(TokenRetval::TK_NEWPARA)) ? rv : Token::make_RetVal_OK();
3291 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3294 cmdChar,
qPrint(cmdName));
3299 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3301 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3302 "argument of command '%c%s'",cmdChar,
qPrint(cmdName));
3305 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3323 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3326 cmdChar,
qPrint(cmdName));
3331 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3333 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"no emoji name given or unexpected end of comment block while parsing the "
3334 "argument of command '%c%s'",cmdChar,
qPrint(cmdName));
3338 else if (!tok.
is(TokenRetval::TK_WORD))
3353 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3356 cmdChar,
qPrint(cmdName));
3361 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3363 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3364 "argument of command '%c%s'",cmdChar,
qPrint(cmdName));
3367 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3377 switch (opt->
kind())
3397 std::string lstFormat =
theTranslator->trWriteList(
static_cast<int>(lst->size())).str();
3398 static const reg::Ex marker(R
"(@(\d+))");
3403 for ( ; it!=
end ; ++it)
3405 const auto &match = *it;
3406 size_t newIndex = match.position();
3407 size_t matchLen = match.length();
3408 optionValue += lstFormat.substr(index,newIndex-index);
3409 unsigned long entryIndex = std::stoul(match[1].str());
3410 if (entryIndex<(
unsigned long)lst->size())
3412 optionValue += lst->at(entryIndex);
3414 index=newIndex+matchLen;
3416 optionValue+=lstFormat.substr(index);
3421 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Obsolete setting for '%c%s': '%s'",
3426 "Disabled setting (i.e. not supported in this doxygen executable) for '%c%s': '%s'",
3440 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unknown option for '%c%s': '%s'",
3451 ASSERT(retval.
is(TokenRetval::TK_WHITESPACE));
3454 if (retval.
is(TokenRetval::RetVal_OK))
3474 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3477 cmdChar,
qPrint(cmdName));
3482 if (!tok.
is(TokenRetval::TK_WORD))
3485 cmdChar,
qPrint(cmdName));
3496 bool specDateOnlyWS = !specDateRaw.
isEmpty() && specDate.
isEmpty();
3497 if (!specDate.
isEmpty() && !tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3500 cmdChar,
qPrint(cmdName));
3510 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"invalid <date_time> argument for command '%c%s': %s",
3523 if ((usedFormat&bitMask) && !(specFormat&bitMask))
3525 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"'%c%s' <format> parameter '%s' has %s related markers which are not specified in the <date_time> parameter '%s'. Filling in the current value for %s instead.",
3544 if (!tok.
is(TokenRetval::TK_WORD))
3547 cmdChar,
qPrint(cmdName));
3557 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3560 cmdChar,
qPrint(cmdName));
3566 if (!tok.
is(TokenRetval::TK_WORD))
3582 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3591 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3593 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3594 "argument of command %s",
qPrint(saveCmdName));
3597 else if (!tok.
is(TokenRetval::TK_WORD))
3621 (!n1_docIncOp && !n1_docWs) ||
3622 (n1_docWs && n2 && !n2_docIncOp);
3627 n1_docIncOp->markLast(
false);
3629 else if (n1_docWs && n2_docIncOp)
3642 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3651 if (!tok.
is(TokenRetval::TK_WORD))
3678 AUTO_TRACE(
"cmdName={} isJavaLink={}",cmdName,isJavaLink);
3681 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3689 if (!tok.
is(TokenRetval::TK_WORD))
3695 if (saveCmdName ==
"javalink")
3704 if (saveCmdName ==
"javalink")
3710 QCString leftOver = lnk->parse(isJavaLink);
3722 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3725 cmdChar,
qPrint(saveCmdName));
3730 if (!tok.
is(TokenRetval::TK_WORD))
3749 bool isBlock =
false;
3750 bool trimLeft =
false;
3751 bool localScope =
false;
3753 if (tok.
is(TokenRetval::TK_WORD) &&
parser()->context.token->name==
"{")
3759 auto contains = [&optList](
const char *kw)
3761 return std::find(optList.begin(),optList.end(),kw)!=optList.end();
3763 localScope = contains(
"local");
3764 if (contains(
"nostrip"))
3766 stripCodeComments =
false;
3768 else if (contains(
"strip"))
3770 stripCodeComments =
true;
3777 if (contains(
"lineno"))
3784 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3791 else if (tok.
is(TokenRetval::TK_WORD) &&
parser()->context.token->name==
"[")
3799 else if (!tok.
is(TokenRetval::TK_WHITESPACE))
3808 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3810 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3811 "argument of command %s",
qPrint(saveCmdName));
3814 else if (!tok.
is(TokenRetval::TK_WORD))
3828 if (!tok.
is(TokenRetval::TK_WORD))
3830 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"expected block identifier, but found token %s instead while parsing the %s command",
3845 blockId,isBlock,trimLeft);
3855 if (!tok.
is(TokenRetval::TK_WHITESPACE))
3858 cmdChar,
qPrint(saveCmdName));
3862 if (tok.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3864 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"unexpected end of comment block while parsing the "
3865 "argument of command '%c%s'", cmdChar,
qPrint(saveCmdName));
3868 else if (!tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD))
3885 return retval.is(TokenRetval::RetVal_OK) ? Token::make_TK_NEWPARA() : retval;
3907 if (
parser()->context.xmlComment)
3913 while (i<l && (
parser()->context.token->verb.at(i)==
' ' ||
parser()->context.token->verb.at(i)==
'\n'))
3915 if (
parser()->context.token->verb.at(i)==
'\n') li=i+1;
3925 if (retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
3936 if (
parser()->context.memberDef)
3974 Token retval = Token::make_RetVal_OK();
3980 std::string str{cmdChar};
3984 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Found unexpanded alias '%c%s'. Check if number of arguments passed is correct.",cmdChar,
qPrint(cmdName));
4133 retval = Token::make_RetVal_Section();
4139 retval = Token::make_RetVal_Subsection();
4145 retval = Token::make_RetVal_Subsubsection();
4151 retval = Token::make_RetVal_Paragraph();
4157 retval = Token::make_RetVal_SubParagraph();
4163 retval = Token::make_RetVal_SubSubParagraph();
4183 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4195 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4207 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4219 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4231 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4243 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4257 int idx = fullMatch.
find(
'{');
4258 int idxEnd = fullMatch.
find(
"}",idx+1);
4264 for (
const auto &opt : optList)
4266 if (opt.empty())
continue;
4269 if (locOpt ==
"code")
4275 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Unknown option '%s' for '\\iliteral'",
qPrint(opt));
4283 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4291 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"javadoc literal section ended without end marker");
4310 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4331 dv->setText(
parser()->context.token->verb);
4332 dv->setWidth(width);
4333 dv->setHeight(height);
4334 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4337 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"ignoring \\dot command because HAVE_DOT is not set");
4340 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4361 dv->setText(
parser()->context.token->verb);
4362 dv->setWidth(width);
4363 dv->setHeight(height);
4364 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4365 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4379 int idx = fullMatch.
find(
'{');
4380 int idxEnd = fullMatch.
find(
"}",idx+1);
4387 for (
const auto &opt : optList)
4389 if (opt.empty())
continue;
4397 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Multiple definition of engine for '\\startuml'");
4410 warn(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Multiple use of filename for '\\startuml'");
4419 if (engine.
isEmpty()) engine =
"uml";
4425 assert(retval.is(TokenRetval::RetVal_OK));
4446 if (engine ==
"ditaa")
4448 dv->setUseBitmap(
true);
4450 else if (engine ==
"uml")
4452 int i = trimmedVerb.
find(
'\n');
4453 QCString firstLine = i==-1 ? trimmedVerb : trimmedVerb.
left(i);
4456 dv->setText(trimmedVerb);
4457 dv->setWidth(width);
4458 dv->setHeight(height);
4459 dv->setLocation(
parser()->context.fileName,
parser()->tokenizer.getLineNr());
4462 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"ignoring \\startuml command because PLANTUML_JAR_PATH is not set");
4465 if (retval.is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF))
4473 retval = Token::make_RetVal_EndParBlock();
4532 retval = Token::make_RetVal_Internal();
4535 retval = Token::make_RetVal_EndInternal();
4604 "ignoring \\dotfile command because HAVE_DOT is not set");
4695 INTERNAL_ASSERT(retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::RetVal_OK,TokenRetval::RetVal_SimpleSec
4696 TokenRetval::TK_LISTITEM,TokenRetval::TK_ENDLIST,TokenRetval::TK_NEWPARA
4697 TokenRetval::RetVal_Section,TokenRetval::RetVal_EndList
4698 TokenRetval::RetVal_Internal,TokenRetval::RetVal_SwitchLang
4699 TokenRetval::RetVal_EndInternal)
4706 const char *attrName,
4710 for (
const auto &opt : tagHtmlAttribs)
4712 if (opt.name==attrName)
4714 *result = opt.value;
4723 AUTO_TRACE(
"tagName={} #tagHtmlAttrs={}",tagName,tagHtmlAttribs.size());
4724 Token retval = Token::make_RetVal_OK();
4730 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"HTML tag ('<%s/>') may not use the 'empty tag' XHTML syntax.",
4736 if (!
parser()->context.token->emptyTag)
4744 if (!
parser()->context.token->emptyTag)
4752 if (
parser()->context.token->emptyTag)
break;
4759 retval = Token::make_RetVal_ListItem();
4781 if (
parser()->context.token->emptyTag)
break;
4782 if (
parser()->context.xmlComment)
4824 if (
parser()->context.token->emptyTag)
break;
4830 retval = Token::make_TK_NEWPARA();
4833 if (!
parser()->context.token->emptyTag)
4842 retval = Token::make_RetVal_DescTitle();
4852 retval = Token::make_RetVal_DescData();
4860 if (!
parser()->context.token->emptyTag)
4867 retval = Token::make_RetVal_TableRow();
4870 retval = Token::make_RetVal_TableCell();
4873 retval = Token::make_RetVal_TableHCell();
4920 if (!
parser()->context.token->emptyTag)
4927 if (!
parser()->context.token->emptyTag)
4937 if (!
parser()->context.token->emptyTag)
4940 while (n && !std::holds_alternative<DocHtmlDetails>(*n)) n=
::parent(n);
4950 retval = Token::make_TK_NEWPARA();
4964 retval = Token::make_TK_NEWPARA();
4970 retval = Token::make_RetVal_TableCell();
5040 retval = Token::make_RetVal_TableRow();
5044 retval = Token::make_RetVal_ListItem();
5059 retval = Token::make_RetVal_TableCell();
5073 if (
parser()->context.token->emptyTag)
5090 if (!leftOver.isEmpty())
5108 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Missing 'cref' or 'langword' attribute from <see> tag.");
5136 std::get<DocSimpleSect>(*vss).appendLinkWord(cref);
5137 retval = Token::make_RetVal_OK();
5193 Token retval = Token::make_RetVal_OK();
5203 retval = Token::make_RetVal_EndList();
5213 retval = Token::make_RetVal_EndList();
5229 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"found </details> tag without matching <details>");
5233 retval = Token::make_RetVal_EndHtmlDetails();
5239 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"found </blockquote> tag without matching <blockquote>");
5243 retval = Token::make_RetVal_EndBlockQuote();
5300 retval = Token::make_TK_NEWPARA();
5303 retval = Token::make_RetVal_EndDesc();
5312 retval = Token::make_RetVal_EndTable();
5365 retval = Token::make_TK_NEWPARA();
5379 retval = Token::make_RetVal_CloseXml();
5415 if (!std::get_if<DocAutoListItem>(n))
5423 const auto docAutoList = std::get_if<DocAutoList>(n);
5426 indent = docAutoList->indent();
5435 const auto docPara = std::get_if<DocPara>(n);
5441 return std::get<DocStyleChange>(*stack.top());
5451 indentStr.
fill(
' ',indent);
5466 Token retval = Token::make_TK_NONE();
5467 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
5471 if (tok.
is_any_of(TokenRetval::TK_WORD,TokenRetval::TK_LNKWORD,TokenRetval::TK_SYMBOL,TokenRetval::TK_URL,
5472 TokenRetval::TK_COMMAND_AT,TokenRetval::TK_COMMAND_BS,TokenRetval::TK_HTMLTAG)
5479 case TokenRetval::TK_WORD:
5482 case TokenRetval::TK_LNKWORD:
5485 case TokenRetval::TK_URL:
5488 case TokenRetval::TK_WHITESPACE:
5506 case TokenRetval::TK_LISTITEM:
5510 while (n && !std::holds_alternative<DocAutoList>(*n)) n=
::parent(n);
5511 const DocAutoList *al = std::get_if<DocAutoList>(n);
5518 retval = Token::make_TK_LISTITEM();
5528 al = std::get_if<DocAutoList>(n);
5542 }
while (retval.
is(TokenRetval::TK_LISTITEM) &&
5547 if (retval.
is(TokenRetval::RetVal_SimpleSec))
5553 if (
parser()->context.token->name.startsWith(
"rcs:"))
5557 tok = Token::make_TK_RCSTAG();
5561 tok = Token::make_TK_COMMAND_BS();
5566 else if (retval.
is(TokenRetval::TK_ENDLIST))
5582 case TokenRetval::TK_ENDLIST:
5583 AUTO_TRACE_ADD(
"Found end of list inside of paragraph at line {}",
parser()->tokenizer.getLineNr());
5584 if (std::get_if<DocAutoListItem>(
parent()))
5587 if (al && al->
indent()>=
parser()->context.token->indent)
5590 retval = Token::make_TK_ENDLIST();
5596 "has invalid indent level");
5605 case TokenRetval::TK_COMMAND_AT:
5607 case TokenRetval::TK_COMMAND_BS:
5612 while (n && !std::holds_alternative<DocSimpleSect>(*n) &&
5613 !std::holds_alternative<DocParamSect>(*n))
5624 retval = Token::make_RetVal_SimpleSec();
5630 while (n && !std::holds_alternative<DocSimpleListItem>(*n)) n=
::parent(n);
5635 retval = Token::make_RetVal_ListItem();
5645 if (retval.
is(TokenRetval::RetVal_SimpleSec))
5651 if (
parser()->context.token->name.startsWith(
"rcs:"))
5655 tok = Token::make_TK_RCSTAG();
5659 tok = Token::make_TK_COMMAND_BS();
5664 else if (retval.
value()>TokenRetval::TK_NONE && retval.
value()<TokenRetval::RetVal_OK)
5670 else if (retval.
value()!=TokenRetval::RetVal_OK)
5677 case TokenRetval::TK_HTMLTAG:
5679 if (!
parser()->context.token->endTag)
5691 if (!retval.
is(TokenRetval::RetVal_OK))
5697 case TokenRetval::TK_SYMBOL:
5712 case TokenRetval::TK_NEWPARA:
5713 retval = Token::make_TK_NEWPARA();
5715 case TokenRetval::TK_RCSTAG:
5718 while (n && !std::holds_alternative<DocSimpleSect>(*n) &&
5719 !std::holds_alternative<DocParamSect>(*n))
5729 retval = Token::make_RetVal_SimpleSec();
5740 "Found unexpected token (id=%s)",tok.
to_string());
5745 retval=Token::make_TK_NONE();
5748 DocPara *par = std::get_if<DocPara>(
parser()->context.nodeStack.top());
5749 if (!
parser()->context.token->endTag && par &&
5750 retval.
is(TokenRetval::TK_NEWPARA) &&
parser()->context.token->name.lower() ==
"p")
5754 INTERNAL_ASSERT(retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::TK_NEWPARA,TokenRetval::TK_LISTITEM,
5755 TokenRetval::TK_ENDLIST,TokenRetval::RetVal_OK)
5767 Token retval = Token::make_RetVal_OK();
5770 if (!
m_id.isEmpty())
5792 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
5793 retval=par->parse();
5794 if (!par->isEmpty())
5803 if (retval.
is(TokenRetval::TK_LISTITEM))
5807 if (retval.
is(TokenRetval::RetVal_Internal))
5811 if (retval.is(TokenRetval::RetVal_EndInternal))
5813 retval = Token::make_RetVal_OK();
5816 }
while (!retval.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF, TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection,
5817 TokenRetval::RetVal_Subsubsection, TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph,
5818 TokenRetval::RetVal_SubSubParagraph, TokenRetval::RetVal_EndInternal)
5825 if (retval.
is(TokenRetval::RetVal_Subsection) &&
m_level<=1)
5828 while (retval.
is(TokenRetval::RetVal_Subsection))
5837 else if (retval.
is(TokenRetval::RetVal_Subsubsection) &&
m_level<=2)
5843 parser()->tokenizer.getLineNr(),
5844 "Unexpected subsubsection command found inside %s!",
5848 while (retval.
is(TokenRetval::RetVal_Subsubsection))
5855 if (!(
m_level < 2 && retval.
is(TokenRetval::RetVal_Subsection)))
break;
5857 else if (retval.
is(TokenRetval::RetVal_Paragraph) &&
m_level<=3)
5863 "Unexpected paragraph command found inside %s!",
5867 while (retval.
is(TokenRetval::RetVal_Paragraph))
5874 if (!(
m_level<3 && (retval.
is_any_of(TokenRetval::RetVal_Subsection,TokenRetval::RetVal_Subsubsection))))
break;
5876 else if (retval.
is(TokenRetval::RetVal_SubParagraph) &&
m_level<=4)
5882 "Unexpected subparagraph command found inside %s!",
5886 while (retval.
is(TokenRetval::RetVal_SubParagraph))
5893 if (!(
m_level<4 && (retval.
is_any_of(TokenRetval::RetVal_Subsection,TokenRetval::RetVal_Subsubsection,TokenRetval::RetVal_Paragraph))))
break;
5895 else if (retval.
is(TokenRetval::RetVal_SubSubParagraph) &&
m_level<=5)
5901 "Unexpected subsubparagraph command found inside %s!",
5905 while (retval.
is(TokenRetval::RetVal_SubSubParagraph))
5912 if (!(
m_level<5 && (retval.
is_any_of( TokenRetval::RetVal_Subsection, TokenRetval::RetVal_Subsubsection,
5913 TokenRetval::RetVal_Paragraph, TokenRetval::RetVal_SubParagraph))))
break;
5922 TokenRetval::RetVal_Section, TokenRetval::RetVal_Subsection,
5923 TokenRetval::RetVal_Subsubsection, TokenRetval::RetVal_Paragraph,
5924 TokenRetval::RetVal_SubParagraph, TokenRetval::RetVal_SubSubParagraph,
5925 TokenRetval::RetVal_Internal, TokenRetval::RetVal_EndInternal)
5941 while (!tok.
is_any_of(TokenRetval::TK_NONE, TokenRetval::TK_EOF))
5945 case TokenRetval::TK_WORD:
5948 case TokenRetval::TK_WHITESPACE:
5951 case TokenRetval::TK_SYMBOL:
5965 case TokenRetval::TK_COMMAND_AT:
5967 case TokenRetval::TK_COMMAND_BS:
6053 Token retval = Token::make_TK_NONE();
6063 if (isFirst) { par->markFirst(); isFirst=
FALSE; }
6064 retval=par->parse();
6065 if (par->isEmpty() && par->attribs().empty())
6074 auto checkParagraph = [
this,&retval](
Token t,
int level,
const char *sectionType,
const char *parentSectionType) {
6080 parser()->tokenizer.getLineNr(),
6081 "found %s command (id: '%s') outside of %s context!",
6082 sectionType,
qPrint(
parser()->context.token->sectionId),parentSectionType);
6086 if (!
parser()->context.token->sectionId.isEmpty())
6099 sectionType,
qPrint(
parser()->context.token->sectionId),sectionType);
6100 retval = Token::make_TK_NONE();
6105 warn_doc_error(
parser()->context.fileName,
parser()->tokenizer.getLineNr(),
"Missing id for %s; ignoring %s",sectionType,sectionType);
6106 retval = Token::make_TK_NONE();
6111 checkParagraph(Token::make_RetVal_SubSubParagraph(), 6,
"subsubparagraph",
"subparagraph" );
6112 checkParagraph(Token::make_RetVal_SubParagraph(), 5,
"subparagraph",
"paragraph" );
6113 checkParagraph(Token::make_RetVal_Paragraph(), 4,
"paragraph",
"subsubsection" );
6114 checkParagraph(Token::make_RetVal_Subsubsection(), 3,
"subsubsection",
"subsection" );
6115 checkParagraph(Token::make_RetVal_Subsection(), 2,
"subsection",
"section" );
6117 if (retval.
is(TokenRetval::TK_LISTITEM))
6121 if (retval.
is(TokenRetval::RetVal_Internal))
6126 }
while (!retval.
is_any_of(TokenRetval::TK_NONE,TokenRetval::TK_EOF,TokenRetval::RetVal_Section));
6131 while (retval.
is(TokenRetval::RetVal_Section))
6133 if (!
parser()->context.token->sectionId.isEmpty())
6146 retval = Token::make_TK_NONE();
6152 retval = Token::make_TK_NONE();
bool isAliasCmd(std::string_view aliasCmd)
static AnchorGenerator & instance()
Returns the singleton instance.
QCString anchorPrefix() const
const CiteInfo * find(const QCString &label) const
Return the citation info for a given label.
static CitationManager & instance()
QCString fileName() const
Class representing a Boolean type option.
QCString * valueStringRef()
Class representing an enum type option.
static ConfigImpl * instance()
ConfigOption * get(const QCString &name) const
Class representing an integer type option.
QCString * valueStringRef()
Class representing a list type option.
Abstract base class for any configuration option.
@ O_Disabled
Disabled compile time option.
@ O_Enum
A fixed set of items.
@ O_Obsolete
An obsolete option.
@ O_Info
A section header.
Class representing a string type option.
The common base class of all entity definitions found in the sources.
virtual bool isLinkable() const =0
virtual DefType definitionType() const =0
virtual QCString briefDescription(bool abbreviate=FALSE) const =0
virtual QCString getReference() const =0
virtual QCString getSourceFileBase() const =0
virtual QCString documentation() const =0
virtual QCString getOutputFileBase() const =0
virtual Definition * getOuterScope() const =0
virtual const QCString & name() const =0
DocAnchor(DocParser *parser, DocNodeVariant *parent, const QCString &id, bool newAnchor)
Node representing an auto List.
bool isCheckedList() const
DocAutoList(DocParser *parser, DocNodeVariant *parent, int indent, bool isEnumList, int depth, bool isCheckedList)
Node representing an item of a auto list.
DocAutoListItem(DocParser *parser, DocNodeVariant *parent, int indent, int num)
Node representing a citation of some bibliographic reference.
DocCite(DocParser *parser, DocNodeVariant *parent, const QCString &target, const QCString &context)
DocCompoundNode(DocParser *parser, DocNodeVariant *parent)
DocDiaFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
std::unique_ptr< Private > p
DocDiagramFileBase(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
DocDotFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Node representing an emoji.
DocEmoji(DocParser *parser, DocNodeVariant *parent, const QCString &symName)
Node representing a horizontal ruler.
Node representing an HTML blockquote.
DocHtmlCaption(DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs)
const HtmlAttribList & attribs() const
Node representing a HTML table cell.
Valignment valignment() const
void setColumnIndex(uint32_t idx)
void setRowIndex(uint32_t idx)
void markLast(bool v=TRUE)
void markFirst(bool v=TRUE)
Alignment alignment() const
const HtmlAttribList & attribs() const
Node representing a HTML description data.
Node representing a Html description list.
Node representing a Html description item.
const HtmlAttribList & attribs() const
void parseSummary(DocNodeVariant *, HtmlAttribList &attribs)
const DocNodeVariant * summary() const
std::unique_ptr< DocNodeVariant > m_summary
Node representing a Html list.
Node representing a HTML list item.
Node representing a HTML table row.
Token parseXml(bool header)
void setVisibleCells(uint32_t n)
void setRowIndex(uint32_t idx)
Node representing a HTML table.
std::unique_ptr< DocNodeVariant > m_caption
void computeTableGrid()
determines the location of all cells in a grid, resolving row and column spans.
const DocNodeVariant * caption() const
const DocNodeVariant * firstRow() const
const HtmlAttribList & attribs() const
DocImage(DocParser *parser, DocNodeVariant *parent, const HtmlAttribList &attribs, const QCString &name, Type t, const QCString &url=QCString(), bool inlineImage=TRUE)
std::unique_ptr< Private > p
Node representing a include/dontinclude operator block.
const char * typeAsString() const
QCString m_includeFileName
void markLast(bool v=TRUE)
Node representing an included text block from file.
Node representing an entry in the index.
Node representing an internal section of documentation.
DocInternalRef(DocParser *parser, DocNodeVariant *parent, const QCString &target)
Node representing a line break.
Node representing a link to some item.
DocLink(DocParser *parser, DocNodeVariant *parent, const QCString &target)
QCString parse(bool, bool isXmlLink=FALSE)
DocLinkedWord(DocParser *parser, DocNodeVariant *parent, const QCString &word, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &tooltip)
DocMscFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
DocNode(DocParser *parser, DocNodeVariant *parent)
void setInsidePreformatted(bool p)
DocNodeVariant * thisVariant()
DocNodeVariant * parent()
Node representing an block of paragraphs.
Node representing a paragraph in the documentation tree.
Token handleSimpleSection(DocSimpleSect::Type t, bool xmlContext=FALSE)
void handleLink(const QCString &cmdName, bool isJavaLink)
void handleCite(char cmdChar, const QCString &cmdName)
DocPara(DocParser *parser, DocNodeVariant *parent)
void handleInclude(const QCString &cmdName, DocInclude::Type t)
Token handleCommand(char cmdChar, const QCString &cmdName)
void handleDoxyConfig(char cmdChar, const QCString &cmdName)
void handleSection(char cmdChar, const QCString &cmdName)
void handleFile(const QCString &cmdName)
void handleIFile(char cmdChar, const QCString &cmdName)
Token handleParamSection(const QCString &cmdName, DocParamSect::Type t, bool xmlContext, int direction)
void markLast(bool v=TRUE)
Token handleHtmlStartTag(const QCString &tagName, const HtmlAttribList &tagHtmlAttribs)
void handleEmoji(char cmdChar, const QCString &cmdName)
void handleIncludeOperator(const QCString &cmdName, DocIncOperator::Type t)
void markFirst(bool v=TRUE)
void handleRef(char cmdChar, const QCString &cmdName)
void handleILine(char cmdChar, const QCString &cmdName)
void setAttribs(const HtmlAttribList &attribs)
Token handleHtmlHeader(const HtmlAttribList &tagHtmlAttribs, int level)
void handleShowDate(char cmdChar, const QCString &cmdName)
Token handleHtmlEndTag(const QCString &tagName)
bool injectToken(Token tok, const QCString &tokText)
void markFirst(bool b=TRUE)
Token parseXml(const QCString ¶mName)
void markLast(bool b=TRUE)
Token parse(const QCString &cmdName)
DocParamSect::Type m_type
Node representing a parameter section.
friend class DocParamList
Token parse(const QCString &cmdName, bool xmlContext, Direction d)
bool defaultHandleToken(DocNodeVariant *parent, Token tok, DocNodeList &children, bool handleWord=TRUE)
void handleLinkedWord(DocNodeVariant *parent, DocNodeList &children, bool ignoreAutoLinkFlag=FALSE)
void handleInternalRef(DocNodeVariant *parent, DocNodeList &children)
void handleParameterType(DocNodeVariant *parent, DocNodeList &children, const QCString ¶mTypes)
void readTextFileByName(const QCString &file, QCString &text)
Token handleAHref(DocNodeVariant *parent, DocNodeList &children, const HtmlAttribList &tagHtmlAttribs)
Token internalValidatingParseDoc(DocNodeVariant *parent, DocNodeList &children, const QCString &doc)
void handleInitialStyleCommands(DocNodeVariant *parent, DocNodeList &children)
void handleStyleLeave(DocNodeVariant *parent, DocNodeList &children, DocStyleChange::Style s, const QCString &tagName)
void handlePendingStyleCommands(DocNodeVariant *parent, DocNodeList &children)
void handleImage(DocNodeVariant *parent, DocNodeList &children)
void handleStyleEnter(DocNodeVariant *parent, DocNodeList &children, DocStyleChange::Style s, const QCString &tagName, const HtmlAttribList *attribs)
void handlePrefix(DocNodeVariant *parent, DocNodeList &children)
Token handleStyleArgument(DocNodeVariant *parent, DocNodeList &children, const QCString &cmdName)
void handleAnchor(DocNodeVariant *parent, DocNodeList &children)
void handleImg(DocNodeVariant *parent, DocNodeList &children, const HtmlAttribList &tagHtmlAttribs)
void defaultHandleTitleAndSize(const CommandType cmd, DocNodeVariant *parent, DocNodeList &children, QCString &width, QCString &height)
void handleUnclosedStyleCommands()
void errorHandleDefaultToken(DocNodeVariant *parent, Token tok, DocNodeList &children, const QCString &txt)
DocPlantUmlFile(DocParser *parser, DocNodeVariant *parent, const QCString &name, const QCString &context, const QCString &srcFile, int srcLine)
Node representing a reference to some item.
SectionType m_sectionType
DocRef(DocParser *parser, DocNodeVariant *parent, const QCString &target, const QCString &context)
Node representing a reference to a section.
DocSecRefItem(DocParser *parser, DocNodeVariant *parent, const QCString &target)
Node representing a list of section references.
Node representing a normal section.
std::unique_ptr< DocNodeVariant > m_title
DocSection(DocParser *parser, DocNodeVariant *parent, int level, const QCString &id)
const DocNodeVariant * title() const
Node representing a simple list.
Node representing a simple list item.
std::unique_ptr< DocNodeVariant > m_paragraph
DocSimpleListItem(DocParser *parser, DocNodeVariant *parent)
Node representing a simple section.
QCString typeString() const
Token parse(bool userTitle, bool needsSeparator)
DocSimpleSect(DocParser *parser, DocNodeVariant *parent, Type t)
const DocNodeVariant * title() const
void appendLinkWord(const QCString &word)
std::unique_ptr< DocNodeVariant > m_title
Node representing a separator between two simple sections of the same type.
Node representing a style change.
const char * styleString() const
Node representing a special symbol.
static HtmlEntityMapper::SymType decodeSymbol(const QCString &symName)
Node representing a simple section title.
void parseFromString(DocNodeVariant *, const QCString &title)
void setStateILiteralOpt()
void setStatePlantUMLOpt()
void setInsidePre(bool b)
void unputString(const QCString &tag)
void setStateDoxyConfig()
void setStateQuotedString()
void pushBackHtmlTag(const QCString &tag)
Node representing a URL (or email address)
Node representing a verbatim, unparsed text fragment.
DocVerbatim(DocParser *parser, DocNodeVariant *parent, const QCString &context, const QCString &text, Type t, bool isExample, const QCString &exampleFile, bool isBlock=FALSE, const QCString &lang=QCString())
std::unique_ptr< Private > p
QCString exampleFile() const
void setEngine(const QCString &e)
Node representing a VHDL flow chart.
DocVhdlFlow(DocParser *parser, DocNodeVariant *parent)
Node representing some amount of white space.
Node representing a word.
DocWord(DocParser *parser, DocNodeVariant *parent, const QCString &word)
Node representing an item of a cross-referenced list.
DocXRefItem(DocParser *parser, DocNodeVariant *parent, int id, const QCString &key)
static FileNameLinkedMap * plantUmlFileNameLinkedMap
static FileNameLinkedMap * dotFileNameLinkedMap
static NamespaceDefMutable * globalScope
static FileNameLinkedMap * mscFileNameLinkedMap
static FileNameLinkedMap * diaFileNameLinkedMap
static QCString htmlFileExtension
static PageLinkedMap * pageLinkedMap
static SearchIndexIntf searchIndex
static EmojiEntityMapper & instance()
Returns the one and only instance of the Emoji entity mapper.
int symbol2index(const std::string &symName) const
Returns a code for the requested Emoji entity name.
A model of a file symbol.
virtual QCString absFilePath() const =0
void clear()
clears the contents
size_t size() const
returns the number of elements
iterator end()
returns an iterator to the end
T & back()
access the last element
void pop_back()
removes the last element
bool empty() const
checks whether the container is empty
void emplace_back(Args &&...args)
T & front()
access the first element
Class representing a list of HTML attributes.
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
SymType name2sym(const QCString &symName) const
Give code of the requested HTML entity name.
const T * find(const std::string &key) const
Find an object given the key.
A model of a class/file/namespace member symbol.
virtual const ClassDef * getClassDef() const =0
virtual const MemberDef * reimplements() const =0
virtual QCString objCMethodName(bool localLink, bool showStatic) const =0
A model of a page symbol.
virtual bool hasParentPage() const =0
This is an alternative implementation of QCString.
int find(char c, int index=0, bool cs=TRUE) const
void fill(char c, int len=-1)
Fills a string with a predefined character.
QCString & prepend(const char *s)
size_t length() const
Returns the length of the string, not counting the 0-terminator.
bool startsWith(const char *s) const
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
bool endsWith(const char *s) const
char & at(size_t i)
Returns a reference to the character at index i.
bool isEmpty() const
Returns TRUE iff the string is empty.
QCString stripWhiteSpace() const
returns a copy of this string with leading and trailing whitespace removed
const std::string & str() const
QCString & append(char c)
QCString right(size_t len) const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
std::string_view view() const
QCString left(size_t len) const
This struct represents an item in the list of references.
List of cross-referenced items.
QCString sectionTitle() const
QCString fileName() const
RefItem * find(int itemId)
static RefListManager & instance()
class that provide information about a section.
QCString fileName() const
static SectionManager & instance()
returns a reference to the singleton
static constexpr int Anchor
static constexpr int Table
constexpr int level() const
static constexpr int Page
bool is(TokenRetval rv) const
TOKEN_SPECIFICATIONS RETVAL_SPECIFICATIONS const char * to_string() const
TokenRetval value() const
bool is_any_of(ARGS... args) const
char command_to_char() const
static void createFlowChart(const MemberDef *)
Class representing a regular expression.
Iterator class to iterator through matches.
#define Config_getList(name)
#define Config_getBool(name)
#define Config_getString(name)
std::unordered_set< std::string > StringUnorderedSet
std::vector< std::string > StringVector
QCString formatDateTime(const QCString &format, const std::tm &dt, int &formatUsed)
Return a string representation for a given std::tm value that is formatted according to the pattern g...
QCString dateTimeFromString(const QCString &spec, std::tm &dt, int &format)
Returns the filled in std::tm for a given string representing a date and/or time.
constexpr const char * SF_bit2str(int bitNumber)
Helper function that returns the name related one of the SF bits.
constexpr int SF_NumBits
number of bits in SF vector
DirIterator end(const DirIterator &) noexcept
#define AUTO_TRACE_ADD(...)
static const char * g_sectionLevelToName[]
static QCString stripKnownExtensions(const QCString &text)
static void unescapeCRef(QCString &s)
static const StringUnorderedSet g_plantumlEngine
#define INTERNAL_ASSERT(x)
static void flattenParagraphs(DocNodeVariant *root, DocNodeList &children)
#define AUTO_TRACE_EXIT(...)
static bool findAttribute(const HtmlAttribList &tagHtmlAttribs, const char *attrName, QCString *result)
std::vector< ActiveRowSpan > RowSpanList
List of ActiveRowSpan classes.
static void setParent(DocNodeVariant *n, DocNodeVariant *newParent)
static bool checkIfHtmlEndTagEndsAutoList(DocParser *parser, const DocNodeVariant *n)
std::variant< DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocCite, DocStyleChange, DocSymbol, DocEmoji, DocWhiteSpace, DocSeparator, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocAutoList, DocAutoListItem, DocTitle, DocXRefItem, DocImage, DocDotFile, DocMscFile, DocDiaFile, DocVhdlFlow, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocParBlock, DocSimpleList, DocHtmlList, DocSimpleSect, DocSimpleSectSep, DocParamSect, DocPara, DocParamList, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocHtmlBlockQuote, DocText, DocRoot, DocHtmlDetails, DocHtmlSummary, DocPlantUmlFile > DocNodeVariant
constexpr bool holds_one_of_alternatives(const DocNodeVariant &v)
returns true iff v holds one of types passed as template parameters
DocNodeList * call_method_children(DocNodeVariant *v)
constexpr DocNodeVariant * parent(DocNodeVariant *n)
returns the parent node of a given node n or nullptr if the node has no parent.
std::unique_ptr< DocNodeVariant > createDocNode(Args &&...args)
Private header shared between docparser.cpp and docnode.cpp.
bool insideUL(const DocNodeVariant *n)
bool insideTable(const DocNodeVariant *n)
IterableStack< const DocNodeVariant * > DocStyleChangeStack
bool insidePRE(const DocNodeVariant *n)
bool insideLI(const DocNodeVariant *n)
bool insideDL(const DocNodeVariant *n)
bool insideBlockQuote(const DocNodeVariant *n)
bool insideDetails(const DocNodeVariant *n)
bool insideOL(const DocNodeVariant *n)
FileDef * toFileDef(Definition *d)
GroupDef * toGroupDef(Definition *d)
Translator * theTranslator
QCString markdownFileNameToId(const QCString &fileName)
processes string s and converts markdown into doxygen/html commands.
MemberDef * toMemberDef(Definition *d)
#define warn(file, line, fmt,...)
#define warn_doc_error(file, line, fmt,...)
const Mapper< HtmlTagType > * htmlTagMapper
const Mapper< CommandType > * cmdMapper
QCString trunc(const QCString &s, size_t numChars=15)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
const char * qPrint(const char *s)
ActiveRowSpan(uint32_t rows, uint32_t col)
virtual QCString text() const =0
virtual QCString label() const =0
void move_append(DocNodeList &l)
moves the element of list l at the end of this list.
void append(Args &&... args)
Append a new DocNodeVariant to the list by constructing it with type T and parameters Args.
T * get_last()
Returns a pointer to the last element in the list if that element exists and holds a T,...
StringMultiSet retvalsFound
bool includeFileShowLineNo
DocStyleChangeStack styleStack
StringMultiSet paramsFound
DefinitionStack copyStack
const MemberDef * memberDef
QCString linkToText(SrcLangExt lang, const QCString &link, bool isFileName)
SrcLangExt getLanguageFromFileName(const QCString &fileName, SrcLangExt defLang)
bool resolveLink(const QCString &scName, const QCString &lr, bool, const Definition **resContext, QCString &resAnchor, const QCString &prefix)
QCString showFileDefMatches(const FileNameLinkedMap *fnMap, const QCString &n)
QCString stripScope(const QCString &name)
QCString convertNameToFile(const QCString &name, bool allowDots, bool allowUnderscore)
if(strLen >35 &&floatingIndex >30 &&autoBreak)
StringVector split(const std::string &s, const std::string &delimiter)
split input string s by string delimiter delimiter.
QCString stripLeadingAndTrailingEmptyLines(const QCString &s, int &docLine)
Special version of QCString::stripWhiteSpace() that only strips completely blank lines.
QCString stripIndentation(const QCString &s)
FileDef * findFileDef(const FileNameLinkedMap *fnMap, const QCString &n, bool &ambig)
A bunch of utility functions.