public Html2Rtf(string filepath, string wordsRegex) { m_filename = filepath; m_wordsCount = 0; log.Debug("m_wordsCount=" + m_wordsCount.ToString()); m_wordsCounter = new WordsCounter(wordsRegex); m_rtf = new RtfPageBuilder(filepath); }
public ElementsCounter(HtmlProcessor processor) { m_wordsCounter = new WordsCounter(AppSettings.Settings.WordsCounter.RegEx); m_elementsCount = new Dictionary <string, int>(); m_elementsWordCount = new Dictionary <string, int>(); m_processor = processor; m_processor.OnAttribute += OnText; m_processor.OnText += OnText; m_processor.OnBoldText += OnText; m_processor.OnHyperlink += OnHyperlink; }