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

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

1821{
1822 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1823 doctokenizerYYlex_destroy(p->yyscanner);
1824}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2225 of file doctokenizer.l.

2226{
2227 yyscan_t yyscanner = p->yyscanner;
2228 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2229 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2230}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2260 of file doctokenizer.l.

2261{
2262 yyscan_t yyscanner = p->yyscanner;
2263 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2264 yyextra->autoListLevel--;
2265}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1838 of file doctokenizer.l.

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

2275{
2276 yyscan_t yyscanner = p->yyscanner;
2277 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2278 return yyextra->fileName;
2279}

References p.

◆ getLineNr()

int DocTokenizer::getLineNr ( ) const

Definition at line 2288 of file doctokenizer.l.

2289{
2290 yyscan_t yyscanner = p->yyscanner;
2291 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2292 return yyextra->yyLineNr;
2293}

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

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

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )
private

Definition at line 1790 of file doctokenizer.l.

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

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )
private

Definition at line 2302 of file doctokenizer.l.

2303{
2304 yyscan_t yyscanner = p->yyscanner;
2305 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2306 assert(!yyextra->stateStack.empty());
2307 BEGIN(yyextra->stateStack.top());
2308 yyextra->stateStack.pop();
2309}

References p.

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

Definition at line 2239 of file doctokenizer.l.

2240{
2241 yyscan_t yyscanner = p->yyscanner;
2242 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2243 QCString tagName = tag;
2244 int l = static_cast<int>(tagName.length());
2245 unput('>');
2246 for (int i=l-1;i>=0;i--)
2247 {
2248 unput(tag[i]);
2249 }
2250 unput('<');
2251}
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(), DocHtmlTable::parse(), DocHtmlList::parseXml(), and DocHtmlRow::parseXml().

◆ pushContext()

void DocTokenizer::pushContext ( )
private

Definition at line 1775 of file doctokenizer.l.

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

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )
private

Definition at line 2295 of file doctokenizer.l.

2296{
2297 yyscan_t yyscanner = p->yyscanner;
2298 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2299 yyextra->stateStack.push(YYSTATE);
2300}

References p.

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1877 of file doctokenizer.l.

1878{
1879 yyscan_t yyscanner = p->yyscanner;
1880 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1881 yyextra->token = TokenInfo();
1882 return &yyextra->token;
1883}

References p.

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

◆ setFileName()

void DocTokenizer::setFileName ( const QCString & fileName)

Definition at line 2267 of file doctokenizer.l.

2268{
2269 yyscan_t yyscanner = p->yyscanner;
2270 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2271 yyextra->fileName = fileName;
2272}

References p.

Referenced by createRef(), and validatingParseDoc().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2232 of file doctokenizer.l.

2233{
2234 yyscan_t yyscanner = p->yyscanner;
2235 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2236 yyextra->insidePre = b;
2237}

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2281 of file doctokenizer.l.

2282{
2283 yyscan_t yyscanner = p->yyscanner;
2284 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2285 yyextra->yyLineNr = lineno;
2286}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

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_Anchor);
2156}

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2188 of file doctokenizer.l.

2189{
2190 yyscan_t yyscanner = p->yyscanner;
2191 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2192 yyextra->token.name="";
2193 BEGIN(St_Block);
2194}

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2108 of file doctokenizer.l.

2109{
2110 yyscan_t yyscanner = p->yyscanner;
2111 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2112 BEGIN(St_Cite);
2113}

References p.

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1907 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

Definition at line 1967 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

Definition at line 2015 of file doctokenizer.l.

2016{
2017 yyscan_t yyscanner = p->yyscanner;
2018 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2019 yyextra->token.verb="";
2020 BEGIN(St_Dot);
2021}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2115 of file doctokenizer.l.

2116{
2117 yyscan_t yyscanner = p->yyscanner;
2118 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2119 BEGIN(St_DoxyConfig);
2120}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

Definition at line 2196 of file doctokenizer.l.

2197{
2198 yyscan_t yyscanner = p->yyscanner;
2199 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2200 yyextra->token.name="";
2201 BEGIN(St_Emoji);
2202}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2079 of file doctokenizer.l.

2080{
2081 yyscan_t yyscanner = p->yyscanner;
2082 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2083 BEGIN(St_File);
2084}

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1934 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

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 yyextra->token.name="";
1922 BEGIN(St_iCodeOpt);
1923}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2086 of file doctokenizer.l.

2087{
2088 yyscan_t yyscanner = p->yyscanner;
2089 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2090 BEGIN(St_IFile);
2091}

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

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

References p.

Referenced by skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 1983 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

Definition at line 1991 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

Definition at line 2130 of file doctokenizer.l.

2131{
2132 yyscan_t yyscanner = p->yyscanner;
2133 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2134 BEGIN(St_IntRef);
2135}

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

Definition at line 2007 of file doctokenizer.l.

2008{
2009 yyscan_t yyscanner = p->yyscanner;
2010 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2011 yyextra->token.verb="";
2012 BEGIN(St_iVerbatim);
2013}

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 1975 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2101 of file doctokenizer.l.

2102{
2103 yyscan_t yyscanner = p->yyscanner;
2104 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2105 BEGIN(St_Link);
2106}

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

Definition at line 1943 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaid()

void DocTokenizer::setStateMermaid ( )

Definition at line 2057 of file doctokenizer.l.

2058{
2059 yyscan_t yyscanner = p->yyscanner;
2060 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2061 yyextra->token.verb="";
2062 BEGIN(St_Mermaid);
2063}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMermaidOpt()

void DocTokenizer::setStateMermaidOpt ( )

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 yyextra->token.verb="";
2053 yyextra->token.sectionId="";
2054 BEGIN(St_MermaidOpt);
2055}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

Definition at line 2023 of file doctokenizer.l.

2024{
2025 yyscan_t yyscanner = p->yyscanner;
2026 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2027 yyextra->token.verb="";
2028 BEGIN(St_Msc);
2029}

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

Definition at line 2180 of file doctokenizer.l.

2181{
2182 yyscan_t yyscanner = p->yyscanner;
2183 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2184 yyextra->token.name="";
2185 BEGIN(St_Options);
2186}

References p.

Referenced by DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 2065 of file doctokenizer.l.

2066{
2067 yyscan_t yyscanner = p->yyscanner;
2068 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2069 BEGIN(St_Param);
2070}

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

Definition at line 2093 of file doctokenizer.l.

2094{
2095 yyscan_t yyscanner = p->yyscanner;
2096 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2097 yyextra->token.name = "";
2098 BEGIN(St_Pattern);
2099}

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 2040 of file doctokenizer.l.

2041{
2042 yyscan_t yyscanner = p->yyscanner;
2043 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2044 yyextra->token.verb="";
2045 BEGIN(St_PlantUML);
2046}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 2031 of file doctokenizer.l.

2032{
2033 yyscan_t yyscanner = p->yyscanner;
2034 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2035 yyextra->token.verb="";
2036 yyextra->token.sectionId="";
2037 BEGIN(St_PlantUMLOpt);
2038}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

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

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

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

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

Definition at line 2122 of file doctokenizer.l.

2123{
2124 yyscan_t yyscanner = p->yyscanner;
2125 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2126 yyextra->expectQuote=false;
2127 BEGIN(St_Ref);
2128}

References p.

Referenced by DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

Definition at line 1951 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2173 of file doctokenizer.l.

2174{
2175 yyscan_t yyscanner = p->yyscanner;
2176 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2177 BEGIN(St_SetScope);
2178}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2218 of file doctokenizer.l.

2219{
2220 yyscan_t yyscanner = p->yyscanner;
2221 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2222 BEGIN(St_ShowDate);
2223}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

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_SkipTitle);
2149}

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

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->token.name="";
2170 BEGIN(St_Snippet);
2171}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

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

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

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 BEGIN(St_Title);
1898}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

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 BEGIN(St_TitleV);
1905}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

Definition at line 1999 of file doctokenizer.l.

2000{
2001 yyscan_t yyscanner = p->yyscanner;
2002 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2003 yyextra->token.verb="";
2004 BEGIN(St_Verbatim);
2005}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

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 yyextra->token.name="";
1931 BEGIN(St_XmlCode);
1932}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

Definition at line 1959 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2072 of file doctokenizer.l.

2073{
2074 yyscan_t yyscanner = p->yyscanner;
2075 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2076 BEGIN(St_XRefItem);
2077}

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2253 of file doctokenizer.l.

2254{
2255 yyscan_t yyscanner = p->yyscanner;
2256 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2257 yyextra->autoListLevel++;
2258}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1870 of file doctokenizer.l.

1871{
1872 yyscan_t yyscanner = p->yyscanner;
1873 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1874 return &yyextra->token;
1875}

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1831 of file doctokenizer.l.

1832{
1833 yyscan_t yyscanner = p->yyscanner;
1834 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1835 unput_string(tag.data(),tag.length());
1836}
#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: