// IParser.cpp: implementation of the CIParser class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "Html2Bmp.h" #include "IParser.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CIParser::CIParser(CString& Source) { m_Source = Source + _T(" "); LexAnalyse(); } CIParser::~CIParser() { } void CIParser::LexAnalyse() { // int len = m_Source.GetLength()-1; int i = 0; CString word; while(i < len) { // start with an HTML tag if(isHTMLopenBracket(m_Source[i])) { word = _T(""); while(i < len) { word += m_Source[i++]; if(!isNameOrNumber(m_Source[i])) { // we are in the table if(!word.CompareNoCase(_T("