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

1769 : p(std::make_unique<Private>())
1770{
1771 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1772 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1773#ifdef FLEX_DEBUG
1774 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1775#endif
1776}
@ 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 1778 of file doctokenizer.l.

1779{
1780 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1781 doctokenizerYYlex_destroy(p->yyscanner);
1782}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2166 of file doctokenizer.l.

2167{
2168 yyscan_t yyscanner = p->yyscanner;
2169 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2170 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2171}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2201 of file doctokenizer.l.

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

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1796 of file doctokenizer.l.

1798{
1799 yyscan_t yyscanner = p->yyscanner;
1800 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1801
1802 if (input.isEmpty()) return;
1803 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1804 yyextra->inputString = input.data();
1805 //printf("parsing --->'%s'<---\n",input);
1806 yyextra->inputPos = 0;
1807 yyextra->definition = d;
1808 yyextra->fileName = fileName;
1809 BEGIN(St_Sections);
1810 yyextra->yyLineNr = 1;
1811 doctokenizerYYlex(yyscanner);
1812}
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 2215 of file doctokenizer.l.

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

References p.

◆ getLineNr()

int DocTokenizer::getLineNr ( ) const

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 return yyextra->yyLineNr;
2234}

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

1815{
1816 yyscan_t yyscanner = p->yyscanner;
1817 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1818 yyextra->autoListLevel = 0;
1819 yyextra->inputString = input;
1820 yyextra->inputPos = 0;
1821 yyextra->fileName = fileName;
1822 yyextra->insidePre = FALSE;
1823 yyextra->markdownSupport = markdownSupport;
1824 yyextra->insideHtmlLink = insideHtmlLink;
1825 BEGIN(St_Para);
1826}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

Definition at line 1748 of file doctokenizer.l.

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

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

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 assert(!yyextra->stateStack.empty());
2248 BEGIN(yyextra->stateStack.top());
2249 yyextra->stateStack.pop();
2250}

References p.

Referenced by skipSpacesForTable().

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

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 QCString tagName = tag;
2185 int l = static_cast<int>(tagName.length());
2186 unput('>');
2187 for (int i=l-1;i>=0;i--)
2188 {
2189 unput(tag[i]);
2190 }
2191 unput('<');
2192}
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 1733 of file doctokenizer.l.

1734{
1735 yyscan_t yyscanner = p->yyscanner;
1736 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1737 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1738 yyextra->lexerStack.push(
1739 std::make_unique<DocLexerContext>(
1740 yyextra->token,YY_START,
1741 yyextra->autoListLevel,
1742 yyextra->inputPos,
1743 yyextra->inputString,
1744 YY_CURRENT_BUFFER));
1745 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1746}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

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->stateStack.push(YYSTATE);
2241}

References p.

Referenced by skipSpacesForTable().

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

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 yyextra->token = TokenInfo();
1840 return &yyextra->token;
1841}

References p.

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

◆ setFileName()

void DocTokenizer::setFileName ( const QCString & fileName)

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 yyextra->fileName = fileName;
2213}

References p.

Referenced by createRef(), and validatingParseDoc().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

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 yyextra->insidePre = b;
2178}

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

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 yyextra->yyLineNr = lineno;
2227}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2092 of file doctokenizer.l.

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

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

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

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2049 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1865 of file doctokenizer.l.

1866{
1867 yyscan_t yyscanner = p->yyscanner;
1868 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1869 yyextra->token.verb="";
1870 yyextra->token.name="";
1871 BEGIN(St_CodeOpt);
1872}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2056 of file doctokenizer.l.

2057{
2058 yyscan_t yyscanner = p->yyscanner;
2059 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2060 BEGIN(St_DoxyConfig);
2061}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

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 yyextra->token.name="";
2142 BEGIN(St_Emoji);
2143}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2020 of file doctokenizer.l.

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

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1892 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

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 yyextra->token.verb="";
1879 yyextra->token.name="";
1880 BEGIN(St_iCodeOpt);
1881}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

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 BEGIN(St_IFile);
2032}

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2145 of file doctokenizer.l.

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

References p.

Referenced by skipSpacesForTable().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

Definition at line 2071 of file doctokenizer.l.

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

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2042 of file doctokenizer.l.

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

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

Definition at line 1981 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

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

References p.

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

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 2006 of file doctokenizer.l.

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

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

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

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

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 yyextra->token.verb="";
2003 BEGIN(St_PlantUML);
2004}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 1989 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2099 of file doctokenizer.l.

2100{
2101 yyscan_t yyscanner = p->yyscanner;
2102 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2103 BEGIN(St_Prefix);
2104}

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2152 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

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

References p.

Referenced by DocHtmlDescTitle::parse().

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2114 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2159 of file doctokenizer.l.

2160{
2161 yyscan_t yyscanner = p->yyscanner;
2162 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2163 BEGIN(St_ShowDate);
2164}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

Definition at line 2085 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

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

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

Definition at line 2078 of file doctokenizer.l.

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

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1851 of file doctokenizer.l.

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

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1858 of file doctokenizer.l.

1859{
1860 yyscan_t yyscanner = p->yyscanner;
1861 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1862 BEGIN(St_TitleV);
1863}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

Definition at line 1883 of file doctokenizer.l.

1884{
1885 yyscan_t yyscanner = p->yyscanner;
1886 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1887 yyextra->token.verb="";
1888 yyextra->token.name="";
1889 BEGIN(St_XmlCode);
1890}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 2013 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2194 of file doctokenizer.l.

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

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1828 of file doctokenizer.l.

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

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1789 of file doctokenizer.l.

1790{
1791 yyscan_t yyscanner = p->yyscanner;
1792 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1793 unput_string(tag.data(),tag.length());
1794}
#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: