|
libhtmlpp 1.0.0
|
Core namespace for the libhtmlpp HTML parsing and printing library. More...
Classes | |
| class | CommentElement |
| Leaf node representing an HTML comment (). More... | |
| class | CSSDeclaration |
| class | CSSProperty |
| class | CSSRule |
| class | CSSStyleSheet |
| class | DocElements |
| class | Element |
| Abstract base class for all nodes in the HTML tree. More... | |
| class | HtmlElement |
| class | HTMLException |
| class | HtmlPage |
| High level loader/saver for HTML documents (files and strings). More... | |
| class | HtmlString |
| class | HtmlTable |
| class | ScriptElement |
| Element representing a <script> tag and its text content. More... | |
| class | SvgElement |
| Element representing an embedded <svg> tag and its attributes/content. More... | |
| class | TextArea |
| Element representing an embedded <textarea> tag and its attributes/content. More... | |
| class | TextElement |
| Leaf node representing plain text content of an HTML document. More... | |
Enumerations | |
| enum | ElementType { TextEl =0 , HtmlEl =1 , CommentEl =2 , ScriptEL =3 , SvgEL =4 , TextAreaEL =5 } |
Functions | |
| void | _copy (libhtmlpp::Element *dest, const libhtmlpp::Element *src) |
| void | print (const Element &element, HtmlString &output, bool formated=false) |
| Serializes an element (and its subtree) into an HtmlString. | |
| void | HtmlDecode (const std::string &input, HtmlString &output) |
| Decodes special HTML characters in a string and appends to an HtmlString. | |
| void | HtmlDecode (const std::string &input, std::string &output) |
| Decodes special HTML characters in a string and appends to an std::string. | |
| void | HtmlEncode (const std::string &input, std::string &output) |
| Encodes special HTML characters in a string and writes into std::string. | |
| void | reverse (char s[]) |
| bool | isdigit (const char src) |
| bool | isalpha (const char src) |
Variables | |
| const char * | HtmlSigns [][2] |
| const std::array< std::string_view, 100 > | ContainerTypes |
Core namespace for the libhtmlpp HTML parsing and printing library.
| void libhtmlpp::_copy | ( | libhtmlpp::Element * | dest, |
| const libhtmlpp::Element * | src | ||
| ) |
| void libhtmlpp::HtmlDecode | ( | const std::string & | input, |
| HtmlString & | output | ||
| ) |
Decodes special HTML characters in a string and appends to an HtmlString.
| input | Plain input string. |
| output | Destination HtmlString that receives encoded characters. |
| void libhtmlpp::HtmlDecode | ( | const std::string & | input, |
| std::string & | output | ||
| ) |
Decodes special HTML characters in a string and appends to an std::string.
| input | Plain input string. |
| output | Destination HtmlString that receives encoded characters. |
| void libhtmlpp::HtmlEncode | ( | const std::string & | input, |
| std::string & | output | ||
| ) |
| void libhtmlpp::print | ( | const Element & | element, |
| HtmlString & | output, | ||
| bool | formated = false |
||
| ) |
Serializes an element (and its subtree) into an HtmlString.
Serializes an element (and its subtree) into an HtmlString (definition).
| element | Root element to print. |
| output | Output buffer to append serialized HTML to. |
| formated | If true, pretty-prints the output with line breaks/indentation. |
| const std::array<std::string_view,100> libhtmlpp::ContainerTypes |