libhtmlpp 1.0.0
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
html.cpp File Reference

Definitions for libhtmlpp HTML element types and utilities. More...

#include <iostream>
#include <cstdarg>
#include <compare>
#include <string_view>
#include <array>
#include <algorithm>
#include <fstream>
#include "utils.h"
#include "html.h"
#include "config.h"
#include "encode.h"
#include <assert.h>
Include dependency graph for html.cpp:

Go to the source code of this file.

Classes

class  libhtmlpp::DocElements
 

Namespaces

namespace  libhtmlpp
 Core namespace for the libhtmlpp HTML parsing and printing library.
 

Macros

#define HTMLTAG_OPEN   '<'
 
#define HTMLTAG_TERMINATE   '/'
 
#define HTMLTAG_CLOSE   '>'
 
#define HTMLTAG_COMMENT   '!'
 

Functions

std::ostream & operator<< (std::ostream &os, const libhtmlpp::HtmlString &p)
 Streams an HtmlString to an output stream using its underlying string.
 
void libhtmlpp::_copy (libhtmlpp::Element *dest, const libhtmlpp::Element *src)
 
void loadString (libhtmlpp::HtmlElement &html, const libhtmlpp::HtmlString *node)
 

Variables

const std::array< std::string_view, 100 > libhtmlpp::ContainerTypes
 

Detailed Description

Definitions for libhtmlpp HTML element types and utilities.

Date
2025-10-30

This file is part of libhtmlpp and provides HTML parsing, DOM-like element types, serialization helpers, and encoding utilities.

Definition in file html.cpp.

Macro Definition Documentation

◆ HTMLTAG_CLOSE

#define HTMLTAG_CLOSE   '>'

Definition at line 53 of file html.cpp.

◆ HTMLTAG_COMMENT

#define HTMLTAG_COMMENT   '!'

Definition at line 54 of file html.cpp.

◆ HTMLTAG_OPEN

#define HTMLTAG_OPEN   '<'

Definition at line 51 of file html.cpp.

◆ HTMLTAG_TERMINATE

#define HTMLTAG_TERMINATE   '/'

Definition at line 52 of file html.cpp.

Function Documentation

◆ loadString()

void loadString ( libhtmlpp::HtmlElement html,
const libhtmlpp::HtmlString node 
)

Definition at line 1942 of file html.cpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const libhtmlpp::HtmlString p 
)

Streams an HtmlString to an output stream using its underlying string.

Parameters
osOutput stream.
pHtmlString to stream.
Returns
Reference to os.

Definition at line 667 of file html.cpp.