Skip to main content

The DocTokenizer Class Reference

Declaration

class DocTokenizer { ... }

Included Headers

#include <src/doctokenizer.h>

Public Constructors Index

DocTokenizer ()

Public Destructor Index

~DocTokenizer ()

Public Member Functions Index

TokenInfo *token ()
TokenInfo *resetToken ()
voidsetLineNr (int lineno)
intgetLineNr (void)
voidpushState ()
voidpopState ()
voidfindSections (const QCString &input, const Definition *d, const QCString &fileName)
voidinit (const char *input, const QCString &fileName, bool markdownSupport, bool insideHtmlLink)
voidcleanup ()
voidpushContext ()
boolpopContext ()
Tokenlex ()
voidunputString (const QCString &tag)
voidsetStatePara ()
voidsetStateTitle ()
voidsetStateTitleAttrValue ()
voidsetStateCode ()
voidsetStateICode ()
voidsetStateXmlCode ()
voidsetStateHtmlOnly ()
voidsetStateManOnly ()
voidsetStateLatexOnly ()
voidsetStateXmlOnly ()
voidsetStateDbOnly ()
voidsetStateRtfOnly ()
voidsetStateVerbatim ()
voidsetStateIVerbatim ()
voidsetStateILiteral ()
voidsetStateILiteralOpt ()
voidsetStateDot ()
voidsetStateMsc ()
voidsetStateParam ()
voidsetStateXRefItem ()
voidsetStateFile ()
voidsetStateIFile ()
voidsetStatePattern ()
voidsetStateLink ()
voidsetStateCite ()
voidsetStateDoxyConfig ()
voidsetStateRef ()
voidsetStateInternalRef ()
voidsetStateText ()
voidsetStateSkipTitle ()
voidsetStateAnchor ()
voidsetInsidePre (bool b)
voidpushBackHtmlTag (const QCString &tag)
voidsetStateSnippet ()
voidstartAutoList ()
voidendAutoList ()
voidsetStatePlantUML ()
voidsetStateSetScope ()
voidsetStatePlantUMLOpt ()
voidsetStateOptions ()
voidsetStateBlock ()
voidsetStateEmoji ()
voidsetStateILine ()
voidsetStateQuotedString ()
voidsetStateShowDate ()
voidsetStatePrefix ()

Private Member Attributes Index

std::unique_ptr< Private >p

Definition at line 182 of file doctokenizer.h.

Public Constructors

DocTokenizer()

DocTokenizer::DocTokenizer ()

Declaration at line 185 of file doctokenizer.h, definition at line 1752 of file doctokenizer.l.

1752DocTokenizer::DocTokenizer() : p(std::make_unique<Private>())
1753{
1754 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1755 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1756#ifdef FLEX_DEBUG
1757 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1758#endif
1759}

References Debug::isFlagSet, Debug::Lex_doctokenizer and p.

Public Destructor

~DocTokenizer()

DocTokenizer::~DocTokenizer ()

Declaration at line 186 of file doctokenizer.h, definition at line 1761 of file doctokenizer.l.

1762{
1763 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1764 doctokenizerYYlex_destroy(p->yyscanner);
1765}

Reference p.

Public Member Functions

cleanup()

void DocTokenizer::cleanup ()

Declaration at line 202 of file doctokenizer.h, definition at line 2148 of file doctokenizer.l.

2149{
2150 yyscan_t yyscanner = p->yyscanner;
2151 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2152 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2153}

Reference p.

endAutoList()

void DocTokenizer::endAutoList ()

Declaration at line 242 of file doctokenizer.h, definition at line 2183 of file doctokenizer.l.

2184{
2185 yyscan_t yyscanner = p->yyscanner;
2186 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2187 yyextra->autoListLevel--;
2188}

Reference p.

Referenced by DocAutoList::parse.

findSections()

void DocTokenizer::findSections (const QCString & input, const Definition * d, const QCString & fileName)

Declaration at line 198 of file doctokenizer.h, definition at line 1779 of file doctokenizer.l.

1780 const QCString &fileName)
1781{
1782 yyscan_t yyscanner = p->yyscanner;
1783 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1784
1785 if (input.isEmpty()) return;
1786 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1787 yyextra->inputString = input.data();
1788 //printf("parsing --->'%s'<---\n",input);
1789 yyextra->inputPos = 0;
1790 yyextra->definition = d;
1791 yyextra->fileName = fileName;
1792 BEGIN(St_Sections);
1793 yyextra->yyLineNr = 1;
1794 doctokenizerYYlex(yyscanner);
1795}

References QCString::data, QCString::isEmpty, Debug::Lex_doctokenizer, p and qPrint.

Referenced by docFindSections.

getLineNr()

int DocTokenizer::getLineNr (void)

Declaration at line 193 of file doctokenizer.h, definition at line 2197 of file doctokenizer.l.

2198{
2199 yyscan_t yyscanner = p->yyscanner;
2200 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2201 return yyextra->yyLineNr;
2202}

Reference p.

Referenced by DocPara::handleFile.

init()

void DocTokenizer::init (const char * input, const QCString & fileName, bool markdownSupport, bool insideHtmlLink)

Declaration at line 200 of file doctokenizer.h, definition at line 1797 of file doctokenizer.l.

1797void DocTokenizer::init(const char *input,const QCString &fileName,bool markdownSupport, bool insideHtmlLink)
1798{
1799 yyscan_t yyscanner = p->yyscanner;
1800 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1801 yyextra->autoListLevel = 0;
1802 yyextra->inputString = input;
1803 yyextra->inputPos = 0;
1804 yyextra->fileName = fileName;
1805 yyextra->insidePre = FALSE;
1806 yyextra->markdownSupport = markdownSupport;
1807 yyextra->insideHtmlLink = insideHtmlLink;
1808 BEGIN(St_Para);
1809}

References FALSE and p.

Referenced by validatingParseDoc and validatingParseText.

lex()

popContext()

bool DocTokenizer::popContext ()

Declaration at line 204 of file doctokenizer.h, definition at line 1731 of file doctokenizer.l.

1732{
1733 yyscan_t yyscanner = p->yyscanner;
1734 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1735 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1736 if (yyextra->lexerStack.empty()) return FALSE;
1737 const auto &ctx = yyextra->lexerStack.top();
1738 yyextra->autoListLevel = ctx->autoListLevel;
1739 yyextra->inputPos = ctx->inputPos;
1740 yyextra->inputString = ctx->inputString;
1741 yyextra->token = ctx->token;
1742
1743 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1744 yy_switch_to_buffer(ctx->state, yyscanner);
1745
1746 BEGIN(ctx->rule);
1747 yyextra->lexerStack.pop();
1748 return TRUE;
1749}

References FALSE, p and TRUE.

popState()

void DocTokenizer::popState ()

Declaration at line 195 of file doctokenizer.h, definition at line 2211 of file doctokenizer.l.

2212{
2213 yyscan_t yyscanner = p->yyscanner;
2214 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2215 assert(!yyextra->stateStack.empty());
2216 BEGIN(yyextra->stateStack.top());
2217 yyextra->stateStack.pop();
2218}

Reference p.

pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag (const QCString & tag)

Declaration at line 239 of file doctokenizer.h, definition at line 2162 of file doctokenizer.l.

2163{
2164 yyscan_t yyscanner = p->yyscanner;
2165 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2166 QCString tagName = tag;
2167 int l = static_cast<int>(tagName.length());
2168 unput('>');
2169 for (int i=l-1;i>=0;i--)
2170 {
2171 unput(tag[i]);
2172 }
2173 unput('<');
2174}

References QCString::length and p.

Referenced by DocHtmlDescList::parse, DocHtmlList::parse, DocHtmlRow::parse, DocHtmlList::parseXml and DocHtmlRow::parseXml.

pushContext()

void DocTokenizer::pushContext ()

Declaration at line 203 of file doctokenizer.h, definition at line 1716 of file doctokenizer.l.

1717{
1718 yyscan_t yyscanner = p->yyscanner;
1719 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1720 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1721 yyextra->lexerStack.push(
1722 std::make_unique<DocLexerContext>(
1723 yyextra->token,YY_START,
1724 yyextra->autoListLevel,
1725 yyextra->inputPos,
1726 yyextra->inputString,
1727 YY_CURRENT_BUFFER));
1728 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1729}

References p and YY_BUF_SIZE.

pushState()

void DocTokenizer::pushState ()

Declaration at line 194 of file doctokenizer.h, definition at line 2204 of file doctokenizer.l.

2205{
2206 yyscan_t yyscanner = p->yyscanner;
2207 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2208 yyextra->stateStack.push(YYSTATE);
2209}

Reference p.

resetToken()

TokenInfo * DocTokenizer::resetToken ()

Declaration at line 190 of file doctokenizer.h, definition at line 1818 of file doctokenizer.l.

1819{
1820 yyscan_t yyscanner = p->yyscanner;
1821 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1822 yyextra->token = TokenInfo();
1823 return &yyextra->token;
1824}

Reference p.

Referenced by validatingParseDoc, validatingParseText and validatingParseTitle.

setInsidePre()

void DocTokenizer::setInsidePre (bool b)

Declaration at line 238 of file doctokenizer.h, definition at line 2155 of file doctokenizer.l.

2156{
2157 yyscan_t yyscanner = p->yyscanner;
2158 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2159 yyextra->insidePre = b;
2160}

Reference p.

Referenced by DocPara::handleHtmlEndTag and DocPara::handleHtmlStartTag.

setLineNr()

void DocTokenizer::setLineNr (int lineno)

Declaration at line 192 of file doctokenizer.h, definition at line 2190 of file doctokenizer.l.

2191{
2192 yyscan_t yyscanner = p->yyscanner;
2193 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2194 yyextra->yyLineNr = lineno;
2195}

Reference p.

Referenced by createRef, validatingParseDoc and validatingParseText.

setStateAnchor()

void DocTokenizer::setStateAnchor ()

Declaration at line 237 of file doctokenizer.h, definition at line 2074 of file doctokenizer.l.

2075{
2076 yyscan_t yyscanner = p->yyscanner;
2077 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2078 BEGIN(St_Anchor);
2079}

Reference p.

setStateBlock()

void DocTokenizer::setStateBlock ()

Declaration at line 247 of file doctokenizer.h, definition at line 2111 of file doctokenizer.l.

2112{
2113 yyscan_t yyscanner = p->yyscanner;
2114 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2115 yyextra->token.name="";
2116 BEGIN(St_Block);
2117}

Reference p.

Referenced by DocPara::handleInclude.

setStateCite()

void DocTokenizer::setStateCite ()

Declaration at line 231 of file doctokenizer.h, definition at line 2032 of file doctokenizer.l.

2033{
2034 yyscan_t yyscanner = p->yyscanner;
2035 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2036 BEGIN(St_Cite);
2037}

Reference p.

Referenced by DocPara::handleCite.

setStateCode()

void DocTokenizer::setStateCode ()

Declaration at line 210 of file doctokenizer.h, definition at line 1848 of file doctokenizer.l.

1849{
1850 yyscan_t yyscanner = p->yyscanner;
1851 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1852 yyextra->token.verb="";
1853 yyextra->token.name="";
1854 BEGIN(St_CodeOpt);
1855}

Reference p.

Referenced by DocPara::handleCommand.

setStateDbOnly()

void DocTokenizer::setStateDbOnly ()

Declaration at line 217 of file doctokenizer.h, definition at line 1908 of file doctokenizer.l.

1909{
1910 yyscan_t yyscanner = p->yyscanner;
1911 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1912 yyextra->token.verb="";
1913 BEGIN(St_DbOnly);
1914}

Reference p.

Referenced by DocPara::handleCommand.

setStateDot()

void DocTokenizer::setStateDot ()

Declaration at line 223 of file doctokenizer.h, definition at line 1956 of file doctokenizer.l.

1957{
1958 yyscan_t yyscanner = p->yyscanner;
1959 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1960 yyextra->token.verb="";
1961 BEGIN(St_Dot);
1962}

Reference p.

Referenced by DocPara::handleCommand.

setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ()

Declaration at line 232 of file doctokenizer.h, definition at line 2039 of file doctokenizer.l.

2040{
2041 yyscan_t yyscanner = p->yyscanner;
2042 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2043 BEGIN(St_DoxyConfig);
2044}

Reference p.

Referenced by DocPara::handleDoxyConfig.

setStateEmoji()

void DocTokenizer::setStateEmoji ()

Declaration at line 248 of file doctokenizer.h, definition at line 2119 of file doctokenizer.l.

2120{
2121 yyscan_t yyscanner = p->yyscanner;
2122 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2123 yyextra->token.name="";
2124 BEGIN(St_Emoji);
2125}

Reference p.

Referenced by DocPara::handleEmoji.

setStateFile()

void DocTokenizer::setStateFile ()

Declaration at line 227 of file doctokenizer.h, definition at line 2003 of file doctokenizer.l.

2004{
2005 yyscan_t yyscanner = p->yyscanner;
2006 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2007 BEGIN(St_File);
2008}

Reference p.

Referenced by DocPara::handleFile, DocPara::handleIFile and DocPara::handleInclude.

setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ()

Declaration at line 213 of file doctokenizer.h, definition at line 1875 of file doctokenizer.l.

1876{
1877 yyscan_t yyscanner = p->yyscanner;
1878 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1879 yyextra->token.verb="";
1880 yyextra->token.name="";
1881 BEGIN(St_HtmlOnlyOption);
1882}

Reference p.

Referenced by DocPara::handleCommand.

setStateICode()

void DocTokenizer::setStateICode ()

Declaration at line 211 of file doctokenizer.h, definition at line 1857 of file doctokenizer.l.

1858{
1859 yyscan_t yyscanner = p->yyscanner;
1860 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1861 yyextra->token.verb="";
1862 yyextra->token.name="";
1863 BEGIN(St_iCodeOpt);
1864}

Reference p.

Referenced by DocPara::handleCommand.

setStateIFile()

void DocTokenizer::setStateIFile ()

Declaration at line 228 of file doctokenizer.h, definition at line 2010 of file doctokenizer.l.

2011{
2012 yyscan_t yyscanner = p->yyscanner;
2013 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2014 BEGIN(St_IFile);
2015}

Reference p.

setStateILine()

void DocTokenizer::setStateILine ()

Declaration at line 249 of file doctokenizer.h, definition at line 2127 of file doctokenizer.l.

2128{
2129 yyscan_t yyscanner = p->yyscanner;
2130 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2131 BEGIN(St_ILine);
2132}

Reference p.

Referenced by DocPara::handleILine.

setStateILiteral()

void DocTokenizer::setStateILiteral ()

Declaration at line 221 of file doctokenizer.h, definition at line 1924 of file doctokenizer.l.

1925{
1926 yyscan_t yyscanner = p->yyscanner;
1927 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1928 yyextra->token.verb="";
1929 BEGIN(St_ILiteral);
1930}

Reference p.

Referenced by DocPara::handleCommand.

setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ()

Declaration at line 222 of file doctokenizer.h, definition at line 1932 of file doctokenizer.l.

1933{
1934 yyscan_t yyscanner = p->yyscanner;
1935 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1936 yyextra->token.verb="";
1937 BEGIN(St_ILiteralOpt);
1938}

Reference p.

Referenced by DocPara::handleCommand.

setStateInternalRef()

void DocTokenizer::setStateInternalRef ()

Declaration at line 234 of file doctokenizer.h, definition at line 2053 of file doctokenizer.l.

2054{
2055 yyscan_t yyscanner = p->yyscanner;
2056 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2057 BEGIN(St_IntRef);
2058}

Reference p.

setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ()

Declaration at line 220 of file doctokenizer.h, definition at line 1948 of file doctokenizer.l.

1949{
1950 yyscan_t yyscanner = p->yyscanner;
1951 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1952 yyextra->token.verb="";
1953 BEGIN(St_iVerbatim);
1954}

Reference p.

Referenced by DocPara::handleCommand.

setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ()

Declaration at line 215 of file doctokenizer.h, definition at line 1916 of file doctokenizer.l.

1917{
1918 yyscan_t yyscanner = p->yyscanner;
1919 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1920 yyextra->token.verb="";
1921 BEGIN(St_LatexOnly);
1922}

Reference p.

Referenced by DocPara::handleCommand.

setStateLink()

void DocTokenizer::setStateLink ()

Declaration at line 230 of file doctokenizer.h, definition at line 2025 of file doctokenizer.l.

2026{
2027 yyscan_t yyscanner = p->yyscanner;
2028 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2029 BEGIN(St_Link);
2030}

Reference p.

Referenced by DocPara::handleLink and DocHtmlDescTitle::parse.

setStateManOnly()

void DocTokenizer::setStateManOnly ()

Declaration at line 214 of file doctokenizer.h, definition at line 1884 of file doctokenizer.l.

1885{
1886 yyscan_t yyscanner = p->yyscanner;
1887 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1888 yyextra->token.verb="";
1889 BEGIN(St_ManOnly);
1890}

Reference p.

Referenced by DocPara::handleCommand.

setStateMsc()

void DocTokenizer::setStateMsc ()

Declaration at line 224 of file doctokenizer.h, definition at line 1964 of file doctokenizer.l.

1965{
1966 yyscan_t yyscanner = p->yyscanner;
1967 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1968 yyextra->token.verb="";
1969 BEGIN(St_Msc);
1970}

Reference p.

Referenced by DocPara::handleCommand.

setStateOptions()

void DocTokenizer::setStateOptions ()

Declaration at line 246 of file doctokenizer.h, definition at line 2103 of file doctokenizer.l.

2104{
2105 yyscan_t yyscanner = p->yyscanner;
2106 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2107 yyextra->token.name="";
2108 BEGIN(St_Options);
2109}

Reference p.

Referenced by DocPara::handleCite and DocPara::handleInclude.

setStatePara()

setStateParam()

void DocTokenizer::setStateParam ()

Declaration at line 225 of file doctokenizer.h, definition at line 1989 of file doctokenizer.l.

1990{
1991 yyscan_t yyscanner = p->yyscanner;
1992 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1993 BEGIN(St_Param);
1994}

Reference p.

Referenced by DocParamList::parse.

setStatePattern()

void DocTokenizer::setStatePattern ()

Declaration at line 229 of file doctokenizer.h, definition at line 2017 of file doctokenizer.l.

2018{
2019 yyscan_t yyscanner = p->yyscanner;
2020 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2021 yyextra->token.name = "";
2022 BEGIN(St_Pattern);
2023}

Reference p.

Referenced by DocPara::handleIncludeOperator.

setStatePlantUML()

void DocTokenizer::setStatePlantUML ()

Declaration at line 243 of file doctokenizer.h, definition at line 1981 of file doctokenizer.l.

1982{
1983 yyscan_t yyscanner = p->yyscanner;
1984 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1985 yyextra->token.verb="";
1986 BEGIN(St_PlantUML);
1987}

Reference p.

Referenced by DocPara::handleCommand.

setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ()

Declaration at line 245 of file doctokenizer.h, definition at line 1972 of file doctokenizer.l.

1973{
1974 yyscan_t yyscanner = p->yyscanner;
1975 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1976 yyextra->token.verb="";
1977 yyextra->token.sectionId="";
1978 BEGIN(St_PlantUMLOpt);
1979}

Reference p.

Referenced by DocPara::handleCommand.

setStatePrefix()

void DocTokenizer::setStatePrefix ()

Declaration at line 252 of file doctokenizer.h, definition at line 2081 of file doctokenizer.l.

2082{
2083 yyscan_t yyscanner = p->yyscanner;
2084 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2085 BEGIN(St_Prefix);
2086}

Reference p.

setStateQuotedString()

void DocTokenizer::setStateQuotedString ()

Declaration at line 250 of file doctokenizer.h, definition at line 2134 of file doctokenizer.l.

2135{
2136 yyscan_t yyscanner = p->yyscanner;
2137 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2138 BEGIN(St_QuotedString);
2139}

Reference p.

Referenced by DocPara::handleShowDate.

setStateRef()

void DocTokenizer::setStateRef ()

Declaration at line 233 of file doctokenizer.h, definition at line 2046 of file doctokenizer.l.

2047{
2048 yyscan_t yyscanner = p->yyscanner;
2049 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2050 BEGIN(St_Ref);
2051}

Reference p.

Referenced by DocPara::handleRef and DocHtmlDescTitle::parse.

setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ()

Declaration at line 218 of file doctokenizer.h, definition at line 1892 of file doctokenizer.l.

1893{
1894 yyscan_t yyscanner = p->yyscanner;
1895 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1896 yyextra->token.verb="";
1897 BEGIN(St_RtfOnly);
1898}

Reference p.

Referenced by DocPara::handleCommand.

setStateSetScope()

void DocTokenizer::setStateSetScope ()

Declaration at line 244 of file doctokenizer.h, definition at line 2096 of file doctokenizer.l.

2097{
2098 yyscan_t yyscanner = p->yyscanner;
2099 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2100 BEGIN(St_SetScope);
2101}

Reference p.

Referenced by DocPara::handleCommand.

setStateShowDate()

void DocTokenizer::setStateShowDate ()

Declaration at line 251 of file doctokenizer.h, definition at line 2141 of file doctokenizer.l.

2142{
2143 yyscan_t yyscanner = p->yyscanner;
2144 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2145 BEGIN(St_ShowDate);
2146}

Reference p.

Referenced by DocPara::handleShowDate.

setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ()

Declaration at line 236 of file doctokenizer.h, definition at line 2067 of file doctokenizer.l.

2068{
2069 yyscan_t yyscanner = p->yyscanner;
2070 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2071 BEGIN(St_SkipTitle);
2072}

Reference p.

Referenced by DocPara::handleSection.

setStateSnippet()

void DocTokenizer::setStateSnippet ()

Declaration at line 240 of file doctokenizer.h, definition at line 2088 of file doctokenizer.l.

2089{
2090 yyscan_t yyscanner = p->yyscanner;
2091 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2092 yyextra->token.name="";
2093 BEGIN(St_Snippet);
2094}

Reference p.

Referenced by DocPara::handleInclude.

setStateText()

void DocTokenizer::setStateText ()

Declaration at line 235 of file doctokenizer.h, definition at line 2060 of file doctokenizer.l.

2061{
2062 yyscan_t yyscanner = p->yyscanner;
2063 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2064 BEGIN(St_Text);
2065}

Reference p.

Referenced by DocText::parse.

setStateTitle()

void DocTokenizer::setStateTitle ()

Declaration at line 208 of file doctokenizer.h, definition at line 1834 of file doctokenizer.l.

1835{
1836 yyscan_t yyscanner = p->yyscanner;
1837 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1838 BEGIN(St_Title);
1839}

Reference p.

Referenced by DocHtmlSummary::parse, DocIndexEntry::parse, DocSecRefItem::parse, DocTitle::parse and DocVhdlFlow::parse.

setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ()

Declaration at line 209 of file doctokenizer.h, definition at line 1841 of file doctokenizer.l.

1842{
1843 yyscan_t yyscanner = p->yyscanner;
1844 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1845 BEGIN(St_TitleV);
1846}

Reference p.

setStateVerbatim()

void DocTokenizer::setStateVerbatim ()

Declaration at line 219 of file doctokenizer.h, definition at line 1940 of file doctokenizer.l.

1941{
1942 yyscan_t yyscanner = p->yyscanner;
1943 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1944 yyextra->token.verb="";
1945 BEGIN(St_Verbatim);
1946}

Reference p.

Referenced by DocPara::handleCommand.

setStateXmlCode()

void DocTokenizer::setStateXmlCode ()

Declaration at line 212 of file doctokenizer.h, definition at line 1866 of file doctokenizer.l.

1867{
1868 yyscan_t yyscanner = p->yyscanner;
1869 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1870 yyextra->token.verb="";
1871 yyextra->token.name="";
1872 BEGIN(St_XmlCode);
1873}

Reference p.

Referenced by DocPara::handleHtmlStartTag.

setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ()

Declaration at line 216 of file doctokenizer.h, definition at line 1900 of file doctokenizer.l.

1901{
1902 yyscan_t yyscanner = p->yyscanner;
1903 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1904 yyextra->token.verb="";
1905 BEGIN(St_XmlOnly);
1906}

Reference p.

Referenced by DocPara::handleCommand.

setStateXRefItem()

void DocTokenizer::setStateXRefItem ()

Declaration at line 226 of file doctokenizer.h, definition at line 1996 of file doctokenizer.l.

1997{
1998 yyscan_t yyscanner = p->yyscanner;
1999 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2000 BEGIN(St_XRefItem);
2001}

Reference p.

Referenced by DocPara::handleXRefItem.

startAutoList()

void DocTokenizer::startAutoList ()

Declaration at line 241 of file doctokenizer.h, definition at line 2176 of file doctokenizer.l.

2177{
2178 yyscan_t yyscanner = p->yyscanner;
2179 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2180 yyextra->autoListLevel++;
2181}

Reference p.

Referenced by DocAutoList::parse.

token()

TokenInfo * DocTokenizer::token ()

Declaration at line 189 of file doctokenizer.h, definition at line 1811 of file doctokenizer.l.

1812{
1813 yyscan_t yyscanner = p->yyscanner;
1814 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1815 return &yyextra->token;
1816}

Reference p.

unputString()

void DocTokenizer::unputString (const QCString & tag)

Declaration at line 206 of file doctokenizer.h, definition at line 1772 of file doctokenizer.l.

1773{
1774 yyscan_t yyscanner = p->yyscanner;
1775 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1776 unput_string(tag.data(),tag.length());
1777}

References QCString::data, QCString::length, p and unput_string.

Referenced by checkIfHtmlEndTagEndsAutoList.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.