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

#include <src/doctokenizer.h>

Classes

struct  Private

Public Member Functions

 DocTokenizer ()
 ~DocTokenizer ()
TokenInfotoken ()
TokenInforesetToken ()
void setFileName (const QCString &fileName)
QCString getFileName () const
void setLineNr (int lineno)
int getLineNr () const
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 setStateMermaid ()
void setStateSetScope ()
void setStatePlantUMLOpt ()
void setStateMermaidOpt ()
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 1807 of file doctokenizer.l.

1807 : p(std::make_unique<Private>())
1808{
1809 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1810 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1811#ifdef FLEX_DEBUG
1812 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1813#endif
1814}
@ Lex_doctokenizer
Definition debug.h:60
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:133
std::unique_ptr< Private > p

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

◆ ~DocTokenizer()

DocTokenizer::~DocTokenizer ( )

Definition at line 1816 of file doctokenizer.l.

1817{
1818 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1819 doctokenizerYYlex_destroy(p->yyscanner);
1820}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

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 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2226}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2256 of file doctokenizer.l.

2257{
2258 yyscan_t yyscanner = p->yyscanner;
2259 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2260 yyextra->autoListLevel--;
2261}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1834 of file doctokenizer.l.

1836{
1837 yyscan_t yyscanner = p->yyscanner;
1838 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1839
1840 if (input.isEmpty()) return;
1841 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1842 yyextra->inputString = input.data();
1843 //printf("parsing --->'%s'<---\n",input);
1844 yyextra->inputPos = 0;
1845 yyextra->definition = d;
1846 yyextra->fileName = fileName;
1847 BEGIN(St_Sections);
1848 yyextra->yyLineNr = 1;
1849 doctokenizerYYlex(yyscanner);
1850}
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().

◆ getFileName()

QCString DocTokenizer::getFileName ( ) const

Definition at line 2270 of file doctokenizer.l.

2271{
2272 yyscan_t yyscanner = p->yyscanner;
2273 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2274 return yyextra->fileName;
2275}

References p.

◆ getLineNr()

int DocTokenizer::getLineNr ( ) const

Definition at line 2284 of file doctokenizer.l.

2285{
2286 yyscan_t yyscanner = p->yyscanner;
2287 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2288 return yyextra->yyLineNr;
2289}

References p.

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

◆ init()

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

Definition at line 1852 of file doctokenizer.l.

1853{
1854 yyscan_t yyscanner = p->yyscanner;
1855 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1856 yyextra->autoListLevel = 0;
1857 yyextra->inputString = input;
1858 yyextra->inputPos = 0;
1859 yyextra->fileName = fileName;
1860 yyextra->insidePre = FALSE;
1861 yyextra->markdownSupport = markdownSupport;
1862 yyextra->insideHtmlLink = insideHtmlLink;
1863 BEGIN(St_Para);
1864}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

Definition at line 1786 of file doctokenizer.l.

1787{
1788 yyscan_t yyscanner = p->yyscanner;
1789 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1790 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1791 if (yyextra->lexerStack.empty()) return FALSE;
1792 const auto &ctx = yyextra->lexerStack.top();
1793 yyextra->autoListLevel = ctx->autoListLevel;
1794 yyextra->inputPos = ctx->inputPos;
1795 yyextra->inputString = ctx->inputString;
1796 yyextra->token = ctx->token;
1797
1798 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1799 yy_switch_to_buffer(ctx->state, yyscanner);
1800
1801 BEGIN(ctx->rule);
1802 yyextra->lexerStack.pop();
1803 return TRUE;
1804}
#define TRUE
Definition qcstring.h:37

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

Definition at line 2298 of file doctokenizer.l.

2299{
2300 yyscan_t yyscanner = p->yyscanner;
2301 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2302 assert(!yyextra->stateStack.empty());
2303 BEGIN(yyextra->stateStack.top());
2304 yyextra->stateStack.pop();
2305}

References p.

Referenced by skipSpacesForTable().

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

Definition at line 2235 of file doctokenizer.l.

2236{
2237 yyscan_t yyscanner = p->yyscanner;
2238 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2239 QCString tagName = tag;
2240 int l = static_cast<int>(tagName.length());
2241 unput('>');
2242 for (int i=l-1;i>=0;i--)
2243 {
2244 unput(tag[i]);
2245 }
2246 unput('<');
2247}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:166

References p.

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

◆ pushContext()

void DocTokenizer::pushContext ( )

Definition at line 1771 of file doctokenizer.l.

1772{
1773 yyscan_t yyscanner = p->yyscanner;
1774 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1775 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1776 yyextra->lexerStack.push(
1777 std::make_unique<DocLexerContext>(
1778 yyextra->token,YY_START,
1779 yyextra->autoListLevel,
1780 yyextra->inputPos,
1781 yyextra->inputString,
1782 YY_CURRENT_BUFFER));
1783 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1784}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

Definition at line 2291 of file doctokenizer.l.

2292{
2293 yyscan_t yyscanner = p->yyscanner;
2294 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2295 yyextra->stateStack.push(YYSTATE);
2296}

References p.

Referenced by skipSpacesForTable().

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1873 of file doctokenizer.l.

1874{
1875 yyscan_t yyscanner = p->yyscanner;
1876 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1877 yyextra->token = TokenInfo();
1878 return &yyextra->token;
1879}

References p.

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

◆ setFileName()

void DocTokenizer::setFileName ( const QCString & fileName)

Definition at line 2263 of file doctokenizer.l.

2264{
2265 yyscan_t yyscanner = p->yyscanner;
2266 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2267 yyextra->fileName = fileName;
2268}

References p.

Referenced by createRef(), and validatingParseDoc().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2228 of file doctokenizer.l.

2229{
2230 yyscan_t yyscanner = p->yyscanner;
2231 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2232 yyextra->insidePre = b;
2233}

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2277 of file doctokenizer.l.

2278{
2279 yyscan_t yyscanner = p->yyscanner;
2280 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2281 yyextra->yyLineNr = lineno;
2282}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2147 of file doctokenizer.l.

2148{
2149 yyscan_t yyscanner = p->yyscanner;
2150 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2151 BEGIN(St_Anchor);
2152}

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2184 of file doctokenizer.l.

2185{
2186 yyscan_t yyscanner = p->yyscanner;
2187 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2188 yyextra->token.name="";
2189 BEGIN(St_Block);
2190}

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2104 of file doctokenizer.l.

2105{
2106 yyscan_t yyscanner = p->yyscanner;
2107 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2108 BEGIN(St_Cite);
2109}

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1903 of file doctokenizer.l.

1904{
1905 yyscan_t yyscanner = p->yyscanner;
1906 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1907 yyextra->token.verb="";
1908 yyextra->token.name="";
1909 BEGIN(St_CodeOpt);
1910}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

Definition at line 1963 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

Definition at line 2011 of file doctokenizer.l.

2012{
2013 yyscan_t yyscanner = p->yyscanner;
2014 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2015 yyextra->token.verb="";
2016 BEGIN(St_Dot);
2017}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

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 BEGIN(St_DoxyConfig);
2116}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

Definition at line 2192 of file doctokenizer.l.

2193{
2194 yyscan_t yyscanner = p->yyscanner;
2195 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2196 yyextra->token.name="";
2197 BEGIN(St_Emoji);
2198}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2075 of file doctokenizer.l.

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

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1930 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

Definition at line 1912 of file doctokenizer.l.

1913{
1914 yyscan_t yyscanner = p->yyscanner;
1915 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1916 yyextra->token.verb="";
1917 yyextra->token.name="";
1918 BEGIN(St_iCodeOpt);
1919}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2082 of file doctokenizer.l.

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

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

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 BEGIN(St_ILine);
2205}

References p.

Referenced by skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 1979 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

Definition at line 1987 of file doctokenizer.l.

1988{
1989 yyscan_t yyscanner = p->yyscanner;
1990 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1991 yyextra->token.verb="";
1992 BEGIN(St_ILiteralOpt);
1993}

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

Definition at line 2126 of file doctokenizer.l.

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

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

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 yyextra->token.verb="";
2008 BEGIN(St_iVerbatim);
2009}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 1971 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2097 of file doctokenizer.l.

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

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

Definition at line 1939 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaid()

void DocTokenizer::setStateMermaid ( )

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 yyextra->token.verb="";
2058 BEGIN(St_Mermaid);
2059}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaidOpt()

void DocTokenizer::setStateMermaidOpt ( )

Definition at line 2044 of file doctokenizer.l.

2045{
2046 yyscan_t yyscanner = p->yyscanner;
2047 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2048 yyextra->token.verb="";
2049 yyextra->token.sectionId="";
2050 BEGIN(St_MermaidOpt);
2051}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

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 yyextra->token.verb="";
2024 BEGIN(St_Msc);
2025}

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

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->token.name="";
2181 BEGIN(St_Options);
2182}

References p.

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

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 2061 of file doctokenizer.l.

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

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

Definition at line 2089 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 2036 of file doctokenizer.l.

2037{
2038 yyscan_t yyscanner = p->yyscanner;
2039 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2040 yyextra->token.verb="";
2041 BEGIN(St_PlantUML);
2042}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 2027 of file doctokenizer.l.

2028{
2029 yyscan_t yyscanner = p->yyscanner;
2030 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2031 yyextra->token.verb="";
2032 yyextra->token.sectionId="";
2033 BEGIN(St_PlantUMLOpt);
2034}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2154 of file doctokenizer.l.

2155{
2156 yyscan_t yyscanner = p->yyscanner;
2157 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2158 BEGIN(St_Prefix);
2159}

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

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 BEGIN(St_QuotedString);
2212}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

Definition at line 2118 of file doctokenizer.l.

2119{
2120 yyscan_t yyscanner = p->yyscanner;
2121 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2122 yyextra->expectQuote=false;
2123 BEGIN(St_Ref);
2124}

References p.

Referenced by DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

Definition at line 1947 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2169 of file doctokenizer.l.

2170{
2171 yyscan_t yyscanner = p->yyscanner;
2172 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2173 BEGIN(St_SetScope);
2174}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

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 BEGIN(St_ShowDate);
2219}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

Definition at line 2140 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

Definition at line 2161 of file doctokenizer.l.

2162{
2163 yyscan_t yyscanner = p->yyscanner;
2164 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2165 yyextra->token.name="";
2166 BEGIN(St_Snippet);
2167}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

Definition at line 2133 of file doctokenizer.l.

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

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1889 of file doctokenizer.l.

1890{
1891 yyscan_t yyscanner = p->yyscanner;
1892 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1893 BEGIN(St_Title);
1894}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1896 of file doctokenizer.l.

1897{
1898 yyscan_t yyscanner = p->yyscanner;
1899 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1900 BEGIN(St_TitleV);
1901}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

Definition at line 1995 of file doctokenizer.l.

1996{
1997 yyscan_t yyscanner = p->yyscanner;
1998 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1999 yyextra->token.verb="";
2000 BEGIN(St_Verbatim);
2001}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

Definition at line 1921 of file doctokenizer.l.

1922{
1923 yyscan_t yyscanner = p->yyscanner;
1924 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1925 yyextra->token.verb="";
1926 yyextra->token.name="";
1927 BEGIN(St_XmlCode);
1928}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

Definition at line 1955 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2068 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2249 of file doctokenizer.l.

2250{
2251 yyscan_t yyscanner = p->yyscanner;
2252 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2253 yyextra->autoListLevel++;
2254}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

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 return &yyextra->token;
1871}

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

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 unput_string(tag.data(),tag.length());
1832}
#define unput_string(yytext, yyleng)

References p.

Referenced by checkIfHtmlEndTagEndsAutoList().

Member Data Documentation

◆ p


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