Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

HHCParser Class Reference

Fast index/contents file parser. More...

#include <hhcparser.h>

List of all members.

Public Member Functions

 HHCParser (wxFontEncoding enc, wxTreeCtrl *tree, CHMListCtrl *list)
 Constructor.
void parse (const char *chunk)
 Parse a chunk of data.

Private Member Functions

void handleTag (const std::string &tag)
 Handle a retrieved tag. I'm only interested in very few tags.
bool getParameters (const char *input, std::string &name, std::string &value)
 Retrieve a parameter name.
void addToTree (const wxString &name, const wxString &value)
 Add the information to the contents tree.
void addToList (const wxString &name, const wxString &value)
 Add the information to the index list.
wxString replaceHTMLChars (const wxString &input)
 Replace special HTML strings with correct code.
wxString translateEncoding (const wxString &input)
 Convert to proper character encoding.
unsigned getHTMLCode (const wxString &name)
 HTML code for given name (if available).
wxChar charForCode (unsigned code)
 Get the char that code stands for.

Private Attributes

int _level
bool _inquote
bool _intag
bool _inobject
std::string _tag
std::string _name
std::string _value
wxTreeCtrl * _tree
CHMListCtrl_list
wxTreeItemId _parents [TREE_BUF_SIZE]
wxFontEncoding _enc
int _counter
wxCSConv _cv
bool _htmlChars


Detailed Description

Fast index/contents file parser.


The documentation for this class was generated from the following files:
Generated on Fri Nov 17 12:35:46 2006 for xCHM by  doxygen 1.4.4