ubit
List of all members
ubit::UHtmlParser Class Reference

HTML Parser. More...

#include <uhtml.hpp>

Inheritance diagram for ubit::UHtmlParser:
ubit::UXmlParser

Additional Inherited Members

- Public Member Functions inherited from ubit::UXmlParser
 UXmlParser ()
 creates a new XML parser.
 
void addGrammar (const UXmlGrammar &)
 adds a grammar to the parser. More...
 
UXmlDocumentread (const UStr &path)
 reads and parses a XML file and returns the corresponding XML tree. More...
 
UXmlDocumentreadBuffer (const UStr &docname, const UStr &buffer)
 synonym for parse();
 
UXmlDocumentparse (const UStr &docname, const UStr &buffer)
 reads and parses a XML buffer and returns the corresponding XML tree. More...
 
int getStatus ()
 returns the reading/parsing status.
 
UErrorHandlergetErrorHandler ()
 returns the current error handler.
 
void setErrorHandler (UErrorHandler *eh)
 changes the error handler (UAppli default handler used if argument is null).
 
void setPermissive (bool b)
 parses documents in permissive mode (default is false). More...
 
void setCollapseSpaces (bool b)
 collapses whitespaces (and tabs and newlines) in elements (default is false). More...
 
- Protected Member Functions inherited from ubit::UXmlParser
void readElement (UElem *parent)
 
void readText (UElem *parent)
 
bool readXMLDeclaration ()
 
void readXMLInstruction (UElem *parent)
 
void readSGMLData (UElem *parent)
 
void skipSpaces ()
 
UChar readCharEntityReference ()
 
bool readName (UStr &)
 
bool readQuotedValue (UStr &, UChar quoting_char)
 
bool readUnquotedValue (UStr &)
 
bool readNameValuePair (UStr &name, UStr &value)
 
UElemreadElementStartTag (UStr &elem_name, int &stat)
 
int readElementEndTag (const UStr &elem_name)
 
void error (const char *msg, const UChar *line)
 
void error (const char *msg_start, const UStr &name, const char *msg_end, const UChar *line)
 
void unexpected (const char *msg, const UChar *line)
 

Detailed Description

HTML Parser.

this parser should be used instead of UXmlParser for parsing HTML text. It automatically:


The documentation for this class was generated from the following files: