📄 ctokenreader.xml
字号:
<?xml version="1.0" encoding="GB2312" ?><class name="CTokenReader"> <explain>记号读取器,将源代码转换为记号序列
</explain> <function name="CTokenReader"> <prototype index="1">CTokenReader();</prototype> <desc>构造函数
</desc> <explain>构造函数
</explain> </function> <function name="~CTokenReader"> <prototype index="1">virtual ~CTokenReader();</prototype> <desc>析构函数
</desc> <explain>析构函数
</explain> </function> <function name="Init"> <prototype index="1">static void Init();</prototype> <desc>初始化
</desc> <explain>初始化
</explain> </function> <function name="SetCode"> <prototype index="1">void SetCode(LPCTSTR ipCode);</prototype> <desc>设置要转换为序号序列的源代码
</desc> <explain>设置要转换为序号序列的源代码
</explain> </function> <function name="NextToken"> <prototype index="1">CToken* NextToken();</prototype> <desc>读取下一个Token
</desc> <explain>读取下一个Token
</explain> </function> <function name="ReadTokenList"> <prototype index="1">void ReadTokenList(CTokenList& oList,LPCTSTR ipCode);</prototype> <desc>将代码读取到TokenList中
</desc> <explain>将代码读取到TokenList中
</explain> </function> <function name="ClearTokenList"> <prototype index="1">static void ClearTokenList(CTokenList& iList);</prototype> <desc>删除TokenList中的对象
</desc> <explain>删除TokenList中的对象
</explain> </function> <function name="DeleteInvalidToken"> <prototype index="1">static void DeleteInvalidToken(CTokenList& iList);</prototype> <desc>在完成预处理后剔除无效的token如换行符
</desc> <explain>在完成预处理后剔除无效的token如换行符
</explain> </function> <function name="TokenListToString"> <prototype index="1">static BOOL TokenListToString(CString& oStr,CTokenList& ioList,POSITION& ioPos,UINT iEndType=TT_UNDEFINED,UINT iSkipBeginType=TT_UNDEFINED,UINT iSkipEndType=TT_UNDEFINED);</prototype> <desc>本函数主要用于读取函数或宏的参数
将TokenList转换为...</desc> <explain>本函数主要用于读取函数或宏的参数
将TokenList转换为字符串,遇到type为iEndType的Token时结束,并返回TRUE,字符串不包含该Token
但iSkipBeginType和iSkipEndType之内的type为iEndType的Token则不结束
当出现不匹配的)时则结束,并返回FALSE, 表示读取完毕
</explain> </function> <function name="TokenListToCString"> <prototype index="1">static BOOL TokenListToCString(CString& oStr,CTokenList& ioList,POSITION& ioPos,UINT iEndType=TT_UNDEFINED,UINT iSkipBeginType=TT_UNDEFINED,UINT iSkipEndType=TT_UNDEFINED);</prototype> <desc>将TokenList转换成C/C++字符串,如"需替负为\"
</desc> <explain>将TokenList转换成C/C++字符串,如"需替负为\"
</explain> </function> <function name="BeforeNextToken"> <prototype index="1">BOOL BeforeNextToken(UINT& oColumns);</prototype> <desc>读取一个token前的预处理,忽略空格及其他无效字符
oC...</desc> <explain>读取一个token前的预处理,忽略空格及其他无效字符
oColumns为跳过的字符数
</explain> </function> <function name="ReadCodeToken"> <prototype index="1">CToken* ReadCodeToken(UINT iType,PFReadToken pf,int iOffset,BOOL iForeSpace);</prototype> <desc>读取一个非符号Token,如单词,数字,注释,字符串
</desc> <explain>读取一个非符号Token,如单词,数字,注释,字符串
</explain> </function> <function name="ReadOperatorToken"> <prototype index="1">CToken* ReadOperatorToken(UINT iType,int iLen,BOOL iForeSpace);</prototype> <desc>读取一个符号Token,如->,iLen为符号长度
</desc> <explain>读取一个符号Token,如->,iLen为符号长度
</explain> </function> <function name="GetSymbolType"> <prototype index="1">int GetSymbolType(char ch1,char ch2='\0');</prototype> <desc>判断记号类别
</desc> <explain>判断记号类别
</explain> </function></class>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -