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

1751 : p(std::make_unique<Private>())
1752{
1753 //printf("%p:DocTokenizer::DocTokenizer()\n",(void*)this);
1754 doctokenizerYYlex_init_extra(&p->extra,&p->yyscanner);
1755#ifdef FLEX_DEBUG
1756 doctokenizerYYset_debug(Debug::isFlagSet(Debug::Lex_doctokenizer)?1:0,p->yyscanner);
1757#endif
1758}
@ 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 1760 of file doctokenizer.l.

1761{
1762 //printf("%p:DocTokenizer::~DocTokenizer()\n",(void*)this);
1763 doctokenizerYYlex_destroy(p->yyscanner);
1764}

References p.

Member Function Documentation

◆ cleanup()

void DocTokenizer::cleanup ( )

Definition at line 2147 of file doctokenizer.l.

2148{
2149 yyscan_t yyscanner = p->yyscanner;
2150 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2151 yy_delete_buffer( YY_CURRENT_BUFFER, yyscanner );
2152}
yyguts_t * yyscan_t
Definition code.l:24

References p.

◆ endAutoList()

void DocTokenizer::endAutoList ( )

Definition at line 2182 of file doctokenizer.l.

2183{
2184 yyscan_t yyscanner = p->yyscanner;
2185 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2186 yyextra->autoListLevel--;
2187}

References p.

Referenced by DocAutoList::parse().

◆ findSections()

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

Definition at line 1778 of file doctokenizer.l.

1780{
1781 yyscan_t yyscanner = p->yyscanner;
1782 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1783
1784 if (input.isEmpty()) return;
1785 DebugLex debugLex(Debug::Lex_doctokenizer, __FILE__, qPrint(fileName));
1786 yyextra->inputString = input.data();
1787 //printf("parsing --->'%s'<---\n",input);
1788 yyextra->inputPos = 0;
1789 yyextra->definition = d;
1790 yyextra->fileName = fileName;
1791 BEGIN(St_Sections);
1792 yyextra->yyLineNr = 1;
1793 doctokenizerYYlex(yyscanner);
1794}
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 2196 of file doctokenizer.l.

2197{
2198 yyscan_t yyscanner = p->yyscanner;
2199 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2200 return yyextra->yyLineNr;
2201}

References p.

Referenced by DocPara::handleFile().

◆ init()

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

Definition at line 1796 of file doctokenizer.l.

1797{
1798 yyscan_t yyscanner = p->yyscanner;
1799 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1800 yyextra->autoListLevel = 0;
1801 yyextra->inputString = input;
1802 yyextra->inputPos = 0;
1803 yyextra->fileName = fileName;
1804 yyextra->insidePre = FALSE;
1805 yyextra->markdownSupport = markdownSupport;
1806 yyextra->insideHtmlLink = insideHtmlLink;
1807 BEGIN(St_Para);
1808}
#define FALSE
Definition qcstring.h:34

References FALSE, and p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ lex()

◆ popContext()

bool DocTokenizer::popContext ( )

Definition at line 1730 of file doctokenizer.l.

1731{
1732 yyscan_t yyscanner = p->yyscanner;
1733 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1734 //printf("DocTokenizer::popContext() stack=%zu\n",yyextra->lexerStack.size());
1735 if (yyextra->lexerStack.empty()) return FALSE;
1736 const auto &ctx = yyextra->lexerStack.top();
1737 yyextra->autoListLevel = ctx->autoListLevel;
1738 yyextra->inputPos = ctx->inputPos;
1739 yyextra->inputString = ctx->inputString;
1740 yyextra->token = ctx->token;
1741
1742 yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner);
1743 yy_switch_to_buffer(ctx->state, yyscanner);
1744
1745 BEGIN(ctx->rule);
1746 yyextra->lexerStack.pop();
1747 return TRUE;
1748}
#define TRUE
Definition qcstring.h:37

References FALSE, p, and TRUE.

◆ popState()

void DocTokenizer::popState ( )

Definition at line 2210 of file doctokenizer.l.

2211{
2212 yyscan_t yyscanner = p->yyscanner;
2213 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2214 assert(!yyextra->stateStack.empty());
2215 BEGIN(yyextra->stateStack.top());
2216 yyextra->stateStack.pop();
2217}

References p.

◆ pushBackHtmlTag()

void DocTokenizer::pushBackHtmlTag ( const QCString & tag)

Definition at line 2161 of file doctokenizer.l.

2162{
2163 yyscan_t yyscanner = p->yyscanner;
2164 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2165 QCString tagName = tag;
2166 int l = static_cast<int>(tagName.length());
2167 unput('>');
2168 for (int i=l-1;i>=0;i--)
2169 {
2170 unput(tag[i]);
2171 }
2172 unput('<');
2173}
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 1715 of file doctokenizer.l.

1716{
1717 yyscan_t yyscanner = p->yyscanner;
1718 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1719 //printf("DocTokenizer::pushContext() stack=%zu\n",yyextra->lexerStack.size());
1720 yyextra->lexerStack.push(
1721 std::make_unique<DocLexerContext>(
1722 yyextra->token,YY_START,
1723 yyextra->autoListLevel,
1724 yyextra->inputPos,
1725 yyextra->inputString,
1726 YY_CURRENT_BUFFER));
1727 yy_switch_to_buffer(yy_create_buffer(0, YY_BUF_SIZE, yyscanner), yyscanner);
1728}
#define YY_BUF_SIZE
Definition commentcnv.l:19

References p, and YY_BUF_SIZE.

◆ pushState()

void DocTokenizer::pushState ( )

Definition at line 2203 of file doctokenizer.l.

2204{
2205 yyscan_t yyscanner = p->yyscanner;
2206 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2207 yyextra->stateStack.push(YYSTATE);
2208}

References p.

◆ resetToken()

TokenInfo * DocTokenizer::resetToken ( )

Definition at line 1817 of file doctokenizer.l.

1818{
1819 yyscan_t yyscanner = p->yyscanner;
1820 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1821 yyextra->token = TokenInfo();
1822 return &yyextra->token;
1823}

References p.

Referenced by validatingParseDoc(), and validatingParseText().

◆ setInsidePre()

void DocTokenizer::setInsidePre ( bool b)

Definition at line 2154 of file doctokenizer.l.

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

References p.

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

◆ setLineNr()

void DocTokenizer::setLineNr ( int lineno)

Definition at line 2189 of file doctokenizer.l.

2190{
2191 yyscan_t yyscanner = p->yyscanner;
2192 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2193 yyextra->yyLineNr = lineno;
2194}

References p.

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

◆ setStateAnchor()

void DocTokenizer::setStateAnchor ( )

Definition at line 2073 of file doctokenizer.l.

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

References p.

◆ setStateBlock()

void DocTokenizer::setStateBlock ( )

Definition at line 2110 of file doctokenizer.l.

2111{
2112 yyscan_t yyscanner = p->yyscanner;
2113 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2114 yyextra->token.name="";
2115 BEGIN(St_Block);
2116}

References p.

Referenced by DocPara::handleInclude().

◆ setStateCite()

void DocTokenizer::setStateCite ( )

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 BEGIN(St_Cite);
2036}

References p.

Referenced by DocPara::handleCite().

◆ setStateCode()

void DocTokenizer::setStateCode ( )

Definition at line 1847 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDbOnly()

void DocTokenizer::setStateDbOnly ( )

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 BEGIN(St_DbOnly);
1913}

References p.

Referenced by DocPara::handleCommand().

◆ setStateDot()

void DocTokenizer::setStateDot ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateDoxyConfig()

void DocTokenizer::setStateDoxyConfig ( )

Definition at line 2038 of file doctokenizer.l.

2039{
2040 yyscan_t yyscanner = p->yyscanner;
2041 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2042 BEGIN(St_DoxyConfig);
2043}

References p.

Referenced by DocPara::handleDoxyConfig().

◆ setStateEmoji()

void DocTokenizer::setStateEmoji ( )

Definition at line 2118 of file doctokenizer.l.

2119{
2120 yyscan_t yyscanner = p->yyscanner;
2121 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2122 yyextra->token.name="";
2123 BEGIN(St_Emoji);
2124}

References p.

Referenced by DocPara::handleEmoji().

◆ setStateFile()

void DocTokenizer::setStateFile ( )

Definition at line 2002 of file doctokenizer.l.

2003{
2004 yyscan_t yyscanner = p->yyscanner;
2005 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2006 BEGIN(St_File);
2007}

References p.

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

◆ setStateHtmlOnly()

void DocTokenizer::setStateHtmlOnly ( )

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_HtmlOnlyOption);
1881}

References p.

Referenced by DocPara::handleCommand().

◆ setStateICode()

void DocTokenizer::setStateICode ( )

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->token.verb="";
1861 yyextra->token.name="";
1862 BEGIN(St_iCodeOpt);
1863}

References p.

Referenced by DocPara::handleCommand().

◆ setStateIFile()

void DocTokenizer::setStateIFile ( )

Definition at line 2009 of file doctokenizer.l.

2010{
2011 yyscan_t yyscanner = p->yyscanner;
2012 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2013 BEGIN(St_IFile);
2014}

References p.

◆ setStateILine()

void DocTokenizer::setStateILine ( )

Definition at line 2126 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleILine().

◆ setStateILiteral()

void DocTokenizer::setStateILiteral ( )

Definition at line 1923 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateILiteralOpt()

void DocTokenizer::setStateILiteralOpt ( )

Definition at line 1931 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateInternalRef()

void DocTokenizer::setStateInternalRef ( )

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 BEGIN(St_IntRef);
2057}

References p.

◆ setStateIVerbatim()

void DocTokenizer::setStateIVerbatim ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLatexOnly()

void DocTokenizer::setStateLatexOnly ( )

Definition at line 1915 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateLink()

void DocTokenizer::setStateLink ( )

Definition at line 2024 of file doctokenizer.l.

2025{
2026 yyscan_t yyscanner = p->yyscanner;
2027 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2028 BEGIN(St_Link);
2029}

References p.

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

◆ setStateManOnly()

void DocTokenizer::setStateManOnly ( )

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 BEGIN(St_ManOnly);
1889}

References p.

Referenced by DocPara::handleCommand().

◆ setStateMsc()

void DocTokenizer::setStateMsc ( )

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateOptions()

void DocTokenizer::setStateOptions ( )

Definition at line 2102 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleInclude().

◆ setStatePara()

◆ setStateParam()

void DocTokenizer::setStateParam ( )

Definition at line 1988 of file doctokenizer.l.

1989{
1990 yyscan_t yyscanner = p->yyscanner;
1991 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1992 BEGIN(St_Param);
1993}

References p.

Referenced by DocParamList::parse().

◆ setStatePattern()

void DocTokenizer::setStatePattern ( )

Definition at line 2016 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleIncludeOperator().

◆ setStatePlantUML()

void DocTokenizer::setStatePlantUML ( )

Definition at line 1980 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStatePlantUMLOpt()

void DocTokenizer::setStatePlantUMLOpt ( )

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 yyextra->token.sectionId="";
1977 BEGIN(St_PlantUMLOpt);
1978}

References p.

Referenced by DocPara::handleCommand().

◆ setStatePrefix()

void DocTokenizer::setStatePrefix ( )

Definition at line 2080 of file doctokenizer.l.

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

References p.

◆ setStateQuotedString()

void DocTokenizer::setStateQuotedString ( )

Definition at line 2133 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleShowDate().

◆ setStateRef()

void DocTokenizer::setStateRef ( )

Definition at line 2045 of file doctokenizer.l.

2046{
2047 yyscan_t yyscanner = p->yyscanner;
2048 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2049 BEGIN(St_Ref);
2050}

References p.

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

◆ setStateRtfOnly()

void DocTokenizer::setStateRtfOnly ( )

Definition at line 1891 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateSetScope()

void DocTokenizer::setStateSetScope ( )

Definition at line 2095 of file doctokenizer.l.

2096{
2097 yyscan_t yyscanner = p->yyscanner;
2098 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2099 BEGIN(St_SetScope);
2100}

References p.

Referenced by DocPara::handleCommand().

◆ setStateShowDate()

void DocTokenizer::setStateShowDate ( )

Definition at line 2140 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleShowDate().

◆ setStateSkipTitle()

void DocTokenizer::setStateSkipTitle ( )

Definition at line 2066 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleSection().

◆ setStateSnippet()

void DocTokenizer::setStateSnippet ( )

Definition at line 2087 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleInclude().

◆ setStateText()

void DocTokenizer::setStateText ( )

Definition at line 2059 of file doctokenizer.l.

2060{
2061 yyscan_t yyscanner = p->yyscanner;
2062 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2063 BEGIN(St_Text);
2064}

References p.

Referenced by DocText::parse().

◆ setStateTitle()

void DocTokenizer::setStateTitle ( )

Definition at line 1833 of file doctokenizer.l.

1834{
1835 yyscan_t yyscanner = p->yyscanner;
1836 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1837 BEGIN(St_Title);
1838}

References p.

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

◆ setStateTitleAttrValue()

void DocTokenizer::setStateTitleAttrValue ( )

Definition at line 1840 of file doctokenizer.l.

1841{
1842 yyscan_t yyscanner = p->yyscanner;
1843 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1844 BEGIN(St_TitleV);
1845}

References p.

◆ setStateVerbatim()

void DocTokenizer::setStateVerbatim ( )

Definition at line 1939 of file doctokenizer.l.

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

References p.

Referenced by DocPara::handleCommand().

◆ setStateXmlCode()

void DocTokenizer::setStateXmlCode ( )

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_XmlCode);
1872}

References p.

Referenced by DocPara::handleHtmlStartTag().

◆ setStateXmlOnly()

void DocTokenizer::setStateXmlOnly ( )

Definition at line 1899 of file doctokenizer.l.

1900{
1901 yyscan_t yyscanner = p->yyscanner;
1902 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1903 yyextra->token.verb="";
1904 BEGIN(St_XmlOnly);
1905}

References p.

Referenced by DocPara::handleCommand().

◆ setStateXRefItem()

void DocTokenizer::setStateXRefItem ( )

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 BEGIN(St_XRefItem);
2000}

References p.

Referenced by DocPara::handleXRefItem().

◆ startAutoList()

void DocTokenizer::startAutoList ( )

Definition at line 2175 of file doctokenizer.l.

2176{
2177 yyscan_t yyscanner = p->yyscanner;
2178 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
2179 yyextra->autoListLevel++;
2180}

References p.

Referenced by DocAutoList::parse().

◆ token()

TokenInfo * DocTokenizer::token ( )

Definition at line 1810 of file doctokenizer.l.

1811{
1812 yyscan_t yyscanner = p->yyscanner;
1813 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1814 return &yyextra->token;
1815}

References p.

◆ unputString()

void DocTokenizer::unputString ( const QCString & tag)

Definition at line 1771 of file doctokenizer.l.

1772{
1773 yyscan_t yyscanner = p->yyscanner;
1774 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
1775 unput_string(tag.data(),tag.length());
1776}
#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: