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

#include <src/doctokenizer.h>

Classes

struct  Private
 

Public Member Functions

 DocTokenizer ()
 
 ~DocTokenizer ()
 
TokenInfotoken ()
 
TokenInforesetToken ()
 
void setLineNr (int lineno)
 
int getLineNr (void)
 
void pushState ()
 
void popState ()
 
void findSections (const QCString &input, const Definition *d, const QCString &fileName)
 
void init (const char *input, const QCString &fileName, bool markdownSupport, bool insideHtmlLink)
 
void cleanup ()
 
void pushContext ()
 
bool popContext ()
 
Token lex ()
 
void unputString (const QCString &tag)
 
void setStatePara ()
 
void setStateTitle ()
 
void setStateTitleAttrValue ()
 
void setStateCode ()
 
void setStateICode ()
 
void setStateXmlCode ()
 
void setStateHtmlOnly ()
 
void setStateManOnly ()
 
void setStateLatexOnly ()
 
void setStateXmlOnly ()
 
void setStateDbOnly ()
 
void setStateRtfOnly ()
 
void setStateVerbatim ()
 
void setStateIVerbatim ()
 
void setStateILiteral ()
 
void setStateILiteralOpt ()
 
void setStateDot ()
 
void setStateMsc ()
 
void setStateParam ()
 
void setStateXRefItem ()
 
void setStateFile ()
 
void setStateIFile ()
 
void setStatePattern ()
 
void setStateLink ()
 
void setStateCite ()
 
void setStateDoxyConfig ()
 
void setStateRef ()
 
void setStateInternalRef ()
 
void setStateText ()
 
void setStateSkipTitle ()
 
void setStateAnchor ()
 
void setInsidePre (bool b)
 
void pushBackHtmlTag (const QCString &tag)
 
void setStateSnippet ()
 
void startAutoList ()
 
void endAutoList ()
 
void setStatePlantUML ()
 
void setStateSetScope ()
 
void setStatePlantUMLOpt ()
 
void setStateOptions ()
 
void setStateBlock ()
 
void setStateEmoji ()
 
void setStateILine ()
 
void setStateQuotedString ()
 
void setStateShowDate ()
 
void setStatePrefix ()
 

Private Attributes

std::unique_ptr< Privatep
 

Detailed Description

Definition at line 180 of file doctokenizer.h.

Constructor & Destructor Documentation

◆ DocTokenizer()

DocTokenizer::DocTokenizer ( )

Definition at line 1741 of file doctokenizer.l.

1741 : p(std::make_unique<Private>())
1742{
1743 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1744 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1745#ifdef FLEX_DEBUG
1746 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1747#endif
1748}
@ Lex_doctokenizer
Definition debug.h:58
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:135
std::unique_ptr< Private > p

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

◆ ~DocTokenizer()

DocTokenizer::~DocTokenizer ( )

Definition at line 1750 of file doctokenizer.l.

1751{
1752 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1753 doctokenizerYYlex_destroy(p->yyscanner);
1754}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

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

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2172 of file doctokenizer.l.

2173{
2174 yyscan_t yyscanner = p->yyscanner;
2175 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2176 yyextra->autoListLevel--;
2177}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1768 of file doctokenizer.l.

1770{
1771 yyscan_t yyscanner = p->yyscanner;
1772 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1773
1774 if (input.isEmpty()) return;
1775 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1776 yyextra->inputString = input.data();
1777 //printf("parsing --->'%s'<---\n",input);
1778 yyextra->inputPos = 0;
1779 yyextra->definition = d;
1780 yyextra->fileName = fileName;
1781 BEGIN(St_Sections);
1782 yyextra->yyLineNr = 1;
1783 doctokenizerYYlex(yyscanner);
1784}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
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:159
const char * qPrint(const char *s)
Definition qcstring.h:672

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

Referenced by docFindSections().

◆ getLineNr()

int DocTokenizer::getLineNr ( void )

Definition at line 2186 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleFile().

◆ init()

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

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 yyextra->autoListLevel = 0;
1791 yyextra->inputString = input;
1792 yyextra->inputPos = 0;
1793 yyextra->fileName = fileName;
1794 yyextra->insidePre = FALSE;
1795 yyextra->markdownSupport = markdownSupport;
1796 yyextra->insideHtmlLink = insideHtmlLink;
1797 BEGIN(St_Para);
1798}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

Definition at line 1720 of file doctokenizer.l.

1721{
1722 yyscan_t yyscanner = p->yyscanner;
1723 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1724 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1725 if (yyextra->lexerStack.empty()) return FALSE;
1726 const auto &ctx = yyextra->lexerStack.top();
1727 yyextra->autoListLevel = ctx->autoListLevel;
1728 yyextra->inputPos = ctx->inputPos;
1729 yyextra->inputString = ctx->inputString;
1730 yyextra->token = ctx->token;
1731
1732 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1733 yy_switch_to_buffer(ctx->state, yyscanner);
1734
1735 BEGIN(ctx->rule);
1736 yyextra->lexerStack.pop();
1737 return TRUE;
1738}
#define TRUE
Definition qcstring.h:37

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

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 assert(!yyextra->stateStack.empty());
2205 BEGIN(yyextra->stateStack.top());
2206 yyextra->stateStack.pop();
2207}

References p.

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

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 QCString tagName = tag;
2156 int l = static_cast<int>(tagName.length());
2157 unput('>');
2158 for (int i=l-1;i>=0;i--)
2159 {
2160 unput(tag[i]);
2161 }
2162 unput('<');
2163}
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Definition qcstring.h:153

References QCString::length(), and p.

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

◆ pushContext()

void DocTokenizer::pushContext ( )

Definition at line 1705 of file doctokenizer.l.

1706{
1707 yyscan_t yyscanner = p->yyscanner;
1708 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1709 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1710 yyextra->lexerStack.push(
1711 std::make_unique<DocLexerContext>(
1712 yyextra->token,YY_START,
1713 yyextra->autoListLevel,
1714 yyextra->inputPos,
1715 yyextra->inputString,
1716 YY_CURRENT_BUFFER));
1717 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1718}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

Definition at line 2193 of file doctokenizer.l.

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

References p.

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1807 of file doctokenizer.l.

1808{
1809 yyscan_t yyscanner = p->yyscanner;
1810 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1811 yyextra->token = TokenInfo();
1812 return &yyextra->token;
1813}

References p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

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

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2179 of file doctokenizer.l.

2180{
2181 yyscan_t yyscanner = p->yyscanner;
2182 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2183 yyextra->yyLineNr = lineno;
2184}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2063 of file doctokenizer.l.

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

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2100 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

Definition at line 2021 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1837 of file doctokenizer.l.

1838{
1839 yyscan_t yyscanner = p->yyscanner;
1840 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1841 yyextra->token.verb="";
1842 yyextra->token.name="";
1843 BEGIN(St_CodeOpt);
1844}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

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 yyextra->token.verb="";
1902 BEGIN(St_DbOnly);
1903}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

Definition at line 1945 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2028 of file doctokenizer.l.

2029{
2030 yyscan_t yyscanner = p->yyscanner;
2031 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2032 BEGIN(St_DoxyConfig);
2033}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

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

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 1992 of file doctokenizer.l.

1993{
1994 yyscan_t yyscanner = p->yyscanner;
1995 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1996 BEGIN(St_File);
1997}

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

Definition at line 1864 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

Definition at line 1846 of file doctokenizer.l.

1847{
1848 yyscan_t yyscanner = p->yyscanner;
1849 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1850 yyextra->token.verb="";
1851 yyextra->token.name="";
1852 BEGIN(St_iCodeOpt);
1853}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

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

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2116 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleILine().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 1913 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

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 BEGIN(St_ILiteralOpt);
1927}

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

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

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

Definition at line 1937 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 1905 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2014 of file doctokenizer.l.

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

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

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.verb="";
1878 BEGIN(St_ManOnly);
1879}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

Definition at line 1953 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

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 yyextra->token.name="";
2097 BEGIN(St_Options);
2098}

References p.

Referenced by DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 1978 of file doctokenizer.l.

1979{
1980 yyscan_t yyscanner = p->yyscanner;
1981 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1982 BEGIN(St_Param);
1983}

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

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

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 1970 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

Definition at line 1961 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2070 of file doctokenizer.l.

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

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2123 of file doctokenizer.l.

2124{
2125 yyscan_t yyscanner = p->yyscanner;
2126 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2127 BEGIN(St_QuotedString);
2128}

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

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 BEGIN(St_Ref);
2040}

References p.

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

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

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.verb="";
1886 BEGIN(St_RtfOnly);
1887}

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

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_SetScope);
2090}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

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

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

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

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

Definition at line 2077 of file doctokenizer.l.

2078{
2079 yyscan_t yyscanner = p->yyscanner;
2080 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2081 yyextra->token.name="";
2082 BEGIN(St_Snippet);
2083}

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

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

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1823 of file doctokenizer.l.

1824{
1825 yyscan_t yyscanner = p->yyscanner;
1826 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1827 BEGIN(St_Title);
1828}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1830 of file doctokenizer.l.

1831{
1832 yyscan_t yyscanner = p->yyscanner;
1833 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1834 BEGIN(St_TitleV);
1835}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

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 BEGIN(St_Verbatim);
1935}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

Definition at line 1855 of file doctokenizer.l.

1856{
1857 yyscan_t yyscanner = p->yyscanner;
1858 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1859 yyextra->token.verb="";
1860 yyextra->token.name="";
1861 BEGIN(St_XmlCode);
1862}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

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 yyextra->token.verb="";
1894 BEGIN(St_XmlOnly);
1895}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

Definition at line 1985 of file doctokenizer.l.

1986{
1987 yyscan_t yyscanner = p->yyscanner;
1988 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1989 BEGIN(St_XRefItem);
1990}

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

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->autoListLevel++;
2170}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1800 of file doctokenizer.l.

1801{
1802 yyscan_t yyscanner = p->yyscanner;
1803 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1804 return &yyextra->token;
1805}

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1761 of file doctokenizer.l.

1762{
1763 yyscan_t yyscanner = p->yyscanner;
1764 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1765 unput_string(tag.data(),tag.length());
1766}
#define unput_string(yytext, yyleng)

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

Referenced by checkIfHtmlEndTagEndsAutoList().

Member Data Documentation

◆ p


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