Doxygen
Loading...
Searching...
No Matches
DocTokenizer Class Reference

#include <src/doctokenizer.h>

Classes

struct  Private
 

Public Member Functions

 DocTokenizer ()
 
 ~DocTokenizer ()
 
TokenInfotoken ()
 
TokenInforesetToken ()
 
void setLineNr (int lineno)
 
int getLineNr (void)
 
void pushState ()
 
void popState ()
 
void findSections (const QCString &input, const Definition *d, const QCString &fileName)
 
void init (const char *input, const QCString &fileName, bool markdownSupport, bool insideHtmlLink)
 
void cleanup ()
 
void pushContext ()
 
bool popContext ()
 
Token lex ()
 
void unputString (const QCString &tag)
 
void setStatePara ()
 
void setStateTitle ()
 
void setStateTitleAttrValue ()
 
void setStateCode ()
 
void setStateICode ()
 
void setStateXmlCode ()
 
void setStateHtmlOnly ()
 
void setStateManOnly ()
 
void setStateLatexOnly ()
 
void setStateXmlOnly ()
 
void setStateDbOnly ()
 
void setStateRtfOnly ()
 
void setStateVerbatim ()
 
void setStateIVerbatim ()
 
void setStateILiteral ()
 
void setStateILiteralOpt ()
 
void setStateDot ()
 
void setStateMsc ()
 
void setStateParam ()
 
void setStateXRefItem ()
 
void setStateFile ()
 
void setStateIFile ()
 
void setStatePattern ()
 
void setStateLink ()
 
void setStateCite ()
 
void setStateDoxyConfig ()
 
void setStateRef ()
 
void setStateInternalRef ()
 
void setStateText ()
 
void setStateSkipTitle ()
 
void setStateAnchor ()
 
void setInsidePre (bool b)
 
void pushBackHtmlTag (const QCString &tag)
 
void setStateSnippet ()
 
void startAutoList ()
 
void endAutoList ()
 
void setStatePlantUML ()
 
void setStateSetScope ()
 
void setStatePlantUMLOpt ()
 
void setStateOptions ()
 
void setStateBlock ()
 
void setStateEmoji ()
 
void setStateILine ()
 
void setStateQuotedString ()
 
void setStateShowDate ()
 
void setStatePrefix ()
 

Private Attributes

std::unique_ptr< Privatep
 

Detailed Description

Definition at line 180 of file doctokenizer.h.

Constructor & Destructor Documentation

◆ DocTokenizer()

DocTokenizer::DocTokenizer ( )

Definition at line 1752 of file doctokenizer.l.

1752 : 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}
@ Lex_doctokenizer
Definition debug.h:59
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:132
std::unique_ptr< Private > p

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

◆ ~DocTokenizer()

DocTokenizer::~DocTokenizer ( )

Definition at line 1761 of file doctokenizer.l.

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

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

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}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

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}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1779 of file doctokenizer.l.

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}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159
const char * qPrint(const char *s)
Definition qcstring.h:672

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

Referenced by docFindSections().

◆ getLineNr()

int DocTokenizer::getLineNr ( void )

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}

References p.

Referenced by DocPara::handleFile().

◆ init()

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

Definition at line 1797 of file doctokenizer.l.

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}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

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}
#define TRUE
Definition qcstring.h:37

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

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}

References p.

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

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}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:153

References QCString::length(), and p.

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

◆ pushContext()

void DocTokenizer::pushContext ( )

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}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

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}

References p.

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

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}

References p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

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}

References p.

Referenced by DocPara::handleHtmlEndTag(), and DocPara::handleHtmlStartTag().

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

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}

References p.

Referenced by createRef(), validatingParseDoc(), and validatingParseText().

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

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}

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

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}

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

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}

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

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}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

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}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

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}

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

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}

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

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}

References p.

Referenced by DocPara::handleILine().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

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}

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

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}

References p.

Referenced by DocPara::handleLink(), and DocHtmlDescTitle::parse().

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

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}

References p.

Referenced by DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

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}

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

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}

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

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}

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

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}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

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}

References p.

Referenced by DocPara::handleRef(), and DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

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}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

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}

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

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}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

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}

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

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}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

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}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

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}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

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}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

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}

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

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}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

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}

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

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}
#define unput_string(yytext, yyleng)

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

Referenced by checkIfHtmlEndTagEndsAutoList().

Member Data Documentation

◆ p


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