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

#include <src/doctokenizer.h>

Classes

class  AutoSaveState
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 findSections (const QCString &input, const Definition *d, const QCString &fileName)
void init (const char *input, const QCString &fileName, bool markdownSupport, bool insideHtmlLink)
void cleanup ()
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 Member Functions

void pushState ()
void popState ()
void pushContext ()
bool popContext ()

Private Attributes

std::unique_ptr< Privatep

Friends

class AutoSaveState
class DocParser

Detailed Description

Definition at line 182 of file doctokenizer.h.

Constructor & Destructor Documentation

◆ DocTokenizer()

DocTokenizer::DocTokenizer ( )

Definition at line 1815 of file doctokenizer.l.

1815 : p(std::make_unique<Private>())
1816{
1817 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1818 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1819#ifdef FLEX_DEBUG
1820 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1821#endif
1822}
@ 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.

Referenced by DocTokenizer::AutoSaveState::AutoSaveState().

◆ ~DocTokenizer()

DocTokenizer::~DocTokenizer ( )

Definition at line 1824 of file doctokenizer.l.

1825{
1826 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1827 doctokenizerYYlex_destroy(p->yyscanner);
1828}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2229 of file doctokenizer.l.

2230{
2231 yyscan_t yyscanner = p->yyscanner;
2232 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2233 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2234}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2264 of file doctokenizer.l.

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

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1842 of file doctokenizer.l.

1844{
1845 yyscan_t yyscanner = p->yyscanner;
1846 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1847
1848 if (input.isEmpty()) return;
1849 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1850 yyextra->inputString = input.data();
1851 //printf("parsing --->'%s'<---\n",input);
1852 yyextra->inputPos = 0;
1853 yyextra->definition = d;
1854 yyextra->fileName = fileName;
1855 BEGIN(St_Sections);
1856 yyextra->yyLineNr = 1;
1857 doctokenizerYYlex(yyscanner);
1858}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:167
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:176
const char * qPrint(const char *s)
Definition qcstring.h:691

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

Referenced by docFindSections().

◆ getFileName()

QCString DocTokenizer::getFileName ( ) const

Definition at line 2278 of file doctokenizer.l.

2279{
2280 yyscan_t yyscanner = p->yyscanner;
2281 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2282 return yyextra->fileName;
2283}

References p.

◆ getLineNr()

int DocTokenizer::getLineNr ( ) const

Definition at line 2292 of file doctokenizer.l.

2293{
2294 yyscan_t yyscanner = p->yyscanner;
2295 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2296 return yyextra->yyLineNr;
2297}

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

1861{
1862 yyscan_t yyscanner = p->yyscanner;
1863 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1864 yyextra->autoListLevel = 0;
1865 yyextra->inputString = input;
1866 yyextra->inputPos = 0;
1867 yyextra->fileName = fileName;
1868 yyextra->insidePre = FALSE;
1869 yyextra->markdownSupport = markdownSupport;
1870 yyextra->insideHtmlLink = insideHtmlLink;
1871 BEGIN(St_Para);
1872}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )
private

Definition at line 1794 of file doctokenizer.l.

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

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )
private

Definition at line 2306 of file doctokenizer.l.

2307{
2308 yyscan_t yyscanner = p->yyscanner;
2309 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2310 assert(!yyextra->stateStack.empty());
2311 BEGIN(yyextra->stateStack.top());
2312 yyextra->stateStack.pop();
2313}

References p.

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

Definition at line 2243 of file doctokenizer.l.

2244{
2245 yyscan_t yyscanner = p->yyscanner;
2246 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2247 QCString tagName = tag;
2248 int l = static_cast<int>(tagName.length());
2249 unput('>');
2250 for (int i=l-1;i>=0;i--)
2251 {
2252 unput(tag[i]);
2253 }
2254 unput('<');
2255}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:170

References QCString::length(), and p.

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

◆ pushContext()

void DocTokenizer::pushContext ( )
private

Definition at line 1779 of file doctokenizer.l.

1780{
1781 yyscan_t yyscanner = p->yyscanner;
1782 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1783 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1784 yyextra->lexerStack.push(
1785 std::make_unique<DocLexerContext>(
1786 yyextra->token,YY_START,
1787 yyextra->autoListLevel,
1788 yyextra->inputPos,
1789 yyextra->inputString,
1790 YY_CURRENT_BUFFER));
1791 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1792}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )
private

Definition at line 2299 of file doctokenizer.l.

2300{
2301 yyscan_t yyscanner = p->yyscanner;
2302 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2303 yyextra->stateStack.push(YYSTATE);
2304}

References p.

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1881 of file doctokenizer.l.

1882{
1883 yyscan_t yyscanner = p->yyscanner;
1884 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1885 yyextra->token = TokenInfo();
1886 return &yyextra->token;
1887}

References p.

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

◆ setFileName()

void DocTokenizer::setFileName ( const QCString & fileName)

Definition at line 2271 of file doctokenizer.l.

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

References p.

Referenced by createRef(), and validatingParseDoc().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2236 of file doctokenizer.l.

2237{
2238 yyscan_t yyscanner = p->yyscanner;
2239 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2240 yyextra->insidePre = b;
2241}

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2285 of file doctokenizer.l.

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

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

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 BEGIN(St_Anchor);
2160}

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

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_Block);
2198}

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2112 of file doctokenizer.l.

2113{
2114 yyscan_t yyscanner = p->yyscanner;
2115 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2116 BEGIN(St_Cite);
2117}

References p.

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1911 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

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_DbOnly);
1977}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

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_Dot);
2025}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

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

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

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->token.name="";
2205 BEGIN(St_Emoji);
2206}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2083 of file doctokenizer.l.

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

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1938 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

Definition at line 1920 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2090 of file doctokenizer.l.

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

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2208 of file doctokenizer.l.

2209{
2210 yyscan_t yyscanner = p->yyscanner;
2211 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2212 BEGIN(St_ILine);
2213}

References p.

Referenced by skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

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_ILiteral);
1993}

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

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_ILiteralOpt);
2001}

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

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_IntRef);
2139}

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

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_iVerbatim);
2017}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

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_LatexOnly);
1985}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2105 of file doctokenizer.l.

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

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

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_ManOnly);
1953}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaid()

void DocTokenizer::setStateMermaid ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaidOpt()

void DocTokenizer::setStateMermaidOpt ( )

Definition at line 2052 of file doctokenizer.l.

2053{
2054 yyscan_t yyscanner = p->yyscanner;
2055 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2056 yyextra->token.verb="";
2057 yyextra->token.sectionId="";
2058 BEGIN(St_MermaidOpt);
2059}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

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 BEGIN(St_Msc);
2033}

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

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_Options);
2190}

References p.

Referenced by DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 2069 of file doctokenizer.l.

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

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

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 yyextra->token.name = "";
2102 BEGIN(St_Pattern);
2103}

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

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 BEGIN(St_PlantUML);
2050}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 2035 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

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 BEGIN(St_Prefix);
2167}

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2215 of file doctokenizer.l.

2216{
2217 yyscan_t yyscanner = p->yyscanner;
2218 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2219 BEGIN(St_QuotedString);
2220}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

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 yyextra->expectQuote=false;
2131 BEGIN(St_Ref);
2132}

References p.

Referenced by DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

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_RtfOnly);
1961}

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2177 of file doctokenizer.l.

2178{
2179 yyscan_t yyscanner = p->yyscanner;
2180 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2181 BEGIN(St_SetScope);
2182}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2222 of file doctokenizer.l.

2223{
2224 yyscan_t yyscanner = p->yyscanner;
2225 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2226 BEGIN(St_ShowDate);
2227}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

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 BEGIN(St_SkipTitle);
2153}

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

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 yyextra->token.name="";
2174 BEGIN(St_Snippet);
2175}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

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_Text);
2146}

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1897 of file doctokenizer.l.

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

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1904 of file doctokenizer.l.

1905{
1906 yyscan_t yyscanner = p->yyscanner;
1907 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1908 BEGIN(St_TitleV);
1909}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

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_Verbatim);
2009}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

Definition at line 1929 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

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_XmlOnly);
1969}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2076 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2257 of file doctokenizer.l.

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

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1874 of file doctokenizer.l.

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

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1835 of file doctokenizer.l.

1836{
1837 yyscan_t yyscanner = p->yyscanner;
1838 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1839 unput_string(tag.data(),tag.length());
1840}
#define unput_string(yytext, yyleng)

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

Referenced by checkIfHtmlEndTagEndsAutoList().

◆ AutoSaveState

friend class AutoSaveState
friend

Definition at line 264 of file doctokenizer.h.

◆ DocParser

friend class DocParser
friend

Definition at line 265 of file doctokenizer.h.

References DocParser.

Referenced by DocParser.

Member Data Documentation

◆ p


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