using System; using System.Collections; using System.Text; using System.Text.RegularExpressions; namespace HtmlHelp.ChmDecoding { /// /// The class HHCParser implements a parser for HHC contents files. /// // internal sealed class HHCParser : IHHCParser public class HHCParser2 { static private string m_text1=""; static private string m_text2=""; static private int m_CurrentPos=0; /// /// Parses a HHC file and returns an ArrayList with the table of contents (TOC) tree /// /// string content of the hhc file /// CHMFile instance /// Returns an ArrayList with the table of contents (TOC) tree public static ArrayList ParseHHC(string hhcFile, CHMFile chmFile) { DateTime StartTime=DateTime.Now; ArrayList tocList = new ArrayList(); m_text2=hhcFile; m_text1=hhcFile.ToLower(); int idx=m_text1.IndexOf("