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 182 of file doctokenizer.h.

Constructor & Destructor Documentation

◆ DocTokenizer()

DocTokenizer::DocTokenizer ( )

Definition at line 1761 of file doctokenizer.l.

1761 : p(std::make_unique<Private>())
1762{
1763 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1764 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1765#ifdef FLEX_DEBUG
1766 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1767#endif
1768}
@ 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 1770 of file doctokenizer.l.

1771{
1772 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1773 doctokenizerYYlex_destroy(p->yyscanner);
1774}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2158 of file doctokenizer.l.

2159{
2160 yyscan_t yyscanner = p->yyscanner;
2161 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2162 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2163}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2193 of file doctokenizer.l.

2194{
2195 yyscan_t yyscanner = p->yyscanner;
2196 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2197 yyextra->autoListLevel--;
2198}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1788 of file doctokenizer.l.

1790{
1791 yyscan_t yyscanner = p->yyscanner;
1792 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1793
1794 if (input.isEmpty()) return;
1795 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1796 yyextra->inputString = input.data();
1797 //printf("parsing --->'%s'<---\n",input);
1798 yyextra->inputPos = 0;
1799 yyextra->definition = d;
1800 yyextra->fileName = fileName;
1801 BEGIN(St_Sections);
1802 yyextra->yyLineNr = 1;
1803 doctokenizerYYlex(yyscanner);
1804}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:163
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:172
const char * qPrint(const char *s)
Definition qcstring.h:687

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

Referenced by docFindSections().

◆ getLineNr()

int DocTokenizer::getLineNr ( void )

Definition at line 2207 of file doctokenizer.l.

2208{
2209 yyscan_t yyscanner = p->yyscanner;
2210 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2211 return yyextra->yyLineNr;
2212}

References p.

Referenced by DocPara::handleFile(), and skipSpacesForTable().

◆ init()

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

Definition at line 1806 of file doctokenizer.l.

1807{
1808 yyscan_t yyscanner = p->yyscanner;
1809 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1810 yyextra->autoListLevel = 0;
1811 yyextra->inputString = input;
1812 yyextra->inputPos = 0;
1813 yyextra->fileName = fileName;
1814 yyextra->insidePre = FALSE;
1815 yyextra->markdownSupport = markdownSupport;
1816 yyextra->insideHtmlLink = insideHtmlLink;
1817 BEGIN(St_Para);
1818}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

Definition at line 1740 of file doctokenizer.l.

1741{
1742 yyscan_t yyscanner = p->yyscanner;
1743 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1744 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1745 if (yyextra->lexerStack.empty()) return FALSE;
1746 const auto &ctx = yyextra->lexerStack.top();
1747 yyextra->autoListLevel = ctx->autoListLevel;
1748 yyextra->inputPos = ctx->inputPos;
1749 yyextra->inputString = ctx->inputString;
1750 yyextra->token = ctx->token;
1751
1752 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1753 yy_switch_to_buffer(ctx->state, yyscanner);
1754
1755 BEGIN(ctx->rule);
1756 yyextra->lexerStack.pop();
1757 return TRUE;
1758}
#define TRUE
Definition qcstring.h:37

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

Definition at line 2221 of file doctokenizer.l.

2222{
2223 yyscan_t yyscanner = p->yyscanner;
2224 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2225 assert(!yyextra->stateStack.empty());
2226 BEGIN(yyextra->stateStack.top());
2227 yyextra->stateStack.pop();
2228}

References p.

Referenced by skipSpacesForTable().

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

Definition at line 2172 of file doctokenizer.l.

2173{
2174 yyscan_t yyscanner = p->yyscanner;
2175 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2176 QCString tagName = tag;
2177 int l = static_cast<int>(tagName.length());
2178 unput('>');
2179 for (int i=l-1;i>=0;i--)
2180 {
2181 unput(tag[i]);
2182 }
2183 unput('<');
2184}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:166

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 1725 of file doctokenizer.l.

1726{
1727 yyscan_t yyscanner = p->yyscanner;
1728 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1729 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1730 yyextra->lexerStack.push(
1731 std::make_unique<DocLexerContext>(
1732 yyextra->token,YY_START,
1733 yyextra->autoListLevel,
1734 yyextra->inputPos,
1735 yyextra->inputString,
1736 YY_CURRENT_BUFFER));
1737 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1738}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

Definition at line 2214 of file doctokenizer.l.

2215{
2216 yyscan_t yyscanner = p->yyscanner;
2217 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2218 yyextra->stateStack.push(YYSTATE);
2219}

References p.

Referenced by skipSpacesForTable().

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1827 of file doctokenizer.l.

1828{
1829 yyscan_t yyscanner = p->yyscanner;
1830 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1831 yyextra->token = TokenInfo();
1832 return &yyextra->token;
1833}

References p.

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

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2165 of file doctokenizer.l.

2166{
2167 yyscan_t yyscanner = p->yyscanner;
2168 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2169 yyextra->insidePre = b;
2170}

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2200 of file doctokenizer.l.

2201{
2202 yyscan_t yyscanner = p->yyscanner;
2203 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2204 yyextra->yyLineNr = lineno;
2205}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2084 of file doctokenizer.l.

2085{
2086 yyscan_t yyscanner = p->yyscanner;
2087 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2088 BEGIN(St_Anchor);
2089}

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2121 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2041 of file doctokenizer.l.

2042{
2043 yyscan_t yyscanner = p->yyscanner;
2044 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2045 BEGIN(St_Cite);
2046}

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

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_CodeOpt);
1864}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

Definition at line 1917 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

Definition at line 1965 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2048 of file doctokenizer.l.

2049{
2050 yyscan_t yyscanner = p->yyscanner;
2051 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2052 BEGIN(St_DoxyConfig);
2053}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

Definition at line 2129 of file doctokenizer.l.

2130{
2131 yyscan_t yyscanner = p->yyscanner;
2132 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2133 yyextra->token.name="";
2134 BEGIN(St_Emoji);
2135}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2012 of file doctokenizer.l.

2013{
2014 yyscan_t yyscanner = p->yyscanner;
2015 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2016 BEGIN(St_File);
2017}

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

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 yyextra->token.name="";
1890 BEGIN(St_HtmlOnlyOption);
1891}

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

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_iCodeOpt);
1873}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2019 of file doctokenizer.l.

2020{
2021 yyscan_t yyscanner = p->yyscanner;
2022 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2023 BEGIN(St_IFile);
2024}

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2137 of file doctokenizer.l.

2138{
2139 yyscan_t yyscanner = p->yyscanner;
2140 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2141 BEGIN(St_ILine);
2142}

References p.

Referenced by DocPara::handleILine(), and skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 1933 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

Definition at line 1941 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

Definition at line 2063 of file doctokenizer.l.

2064{
2065 yyscan_t yyscanner = p->yyscanner;
2066 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2067 BEGIN(St_IntRef);
2068}

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

Definition at line 1957 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 1925 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2034 of file doctokenizer.l.

2035{
2036 yyscan_t yyscanner = p->yyscanner;
2037 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2038 BEGIN(St_Link);
2039}

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

Definition at line 1893 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

Definition at line 1973 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

Definition at line 2113 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCite(), and DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 1998 of file doctokenizer.l.

1999{
2000 yyscan_t yyscanner = p->yyscanner;
2001 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2002 BEGIN(St_Param);
2003}

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

Definition at line 2026 of file doctokenizer.l.

2027{
2028 yyscan_t yyscanner = p->yyscanner;
2029 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2030 yyextra->token.name = "";
2031 BEGIN(St_Pattern);
2032}

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 1990 of file doctokenizer.l.

1991{
1992 yyscan_t yyscanner = p->yyscanner;
1993 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1994 yyextra->token.verb="";
1995 BEGIN(St_PlantUML);
1996}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

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 yyextra->token.sectionId="";
1987 BEGIN(St_PlantUMLOpt);
1988}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2091 of file doctokenizer.l.

2092{
2093 yyscan_t yyscanner = p->yyscanner;
2094 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2095 BEGIN(St_Prefix);
2096}

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2144 of file doctokenizer.l.

2145{
2146 yyscan_t yyscanner = p->yyscanner;
2147 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2148 BEGIN(St_QuotedString);
2149}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

Definition at line 2055 of file doctokenizer.l.

2056{
2057 yyscan_t yyscanner = p->yyscanner;
2058 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2059 yyextra->expectQuote=false;
2060 BEGIN(St_Ref);
2061}

References p.

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

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

Definition at line 1901 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2106 of file doctokenizer.l.

2107{
2108 yyscan_t yyscanner = p->yyscanner;
2109 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2110 BEGIN(St_SetScope);
2111}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2151 of file doctokenizer.l.

2152{
2153 yyscan_t yyscanner = p->yyscanner;
2154 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2155 BEGIN(St_ShowDate);
2156}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

Definition at line 2077 of file doctokenizer.l.

2078{
2079 yyscan_t yyscanner = p->yyscanner;
2080 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2081 BEGIN(St_SkipTitle);
2082}

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

Definition at line 2098 of file doctokenizer.l.

2099{
2100 yyscan_t yyscanner = p->yyscanner;
2101 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2102 yyextra->token.name="";
2103 BEGIN(St_Snippet);
2104}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

Definition at line 2070 of file doctokenizer.l.

2071{
2072 yyscan_t yyscanner = p->yyscanner;
2073 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2074 BEGIN(St_Text);
2075}

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1843 of file doctokenizer.l.

1844{
1845 yyscan_t yyscanner = p->yyscanner;
1846 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1847 BEGIN(St_Title);
1848}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1850 of file doctokenizer.l.

1851{
1852 yyscan_t yyscanner = p->yyscanner;
1853 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1854 BEGIN(St_TitleV);
1855}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

Definition at line 1949 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

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_XmlCode);
1882}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

Definition at line 1909 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2005 of file doctokenizer.l.

2006{
2007 yyscan_t yyscanner = p->yyscanner;
2008 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2009 BEGIN(St_XRefItem);
2010}

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2186 of file doctokenizer.l.

2187{
2188 yyscan_t yyscanner = p->yyscanner;
2189 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2190 yyextra->autoListLevel++;
2191}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1820 of file doctokenizer.l.

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

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1781 of file doctokenizer.l.

1782{
1783 yyscan_t yyscanner = p->yyscanner;
1784 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1785 unput_string(tag.data(),tag.length());
1786}
#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: