Orcus
Loading...
Searching...
No Matches
Public Attributes | List of all members
orcus::sax::parser_element Struct Reference

#include <sax_parser_base.hpp>

Public Attributes

std::string_view ns
 
std::string_view name
 
std::ptrdiff_t begin_pos
 
std::ptrdiff_t end_pos
 

Detailed Description

Element properties passed by sax_parser to its handler's open_element() and close_element() calls.

Member Data Documentation

◆ begin_pos

std::ptrdiff_t orcus::sax::parser_element::begin_pos

Position of the opening brace '<'.

◆ end_pos

std::ptrdiff_t orcus::sax::parser_element::end_pos

Position immediately after the closing brace '>'.

◆ name

std::string_view orcus::sax::parser_element::name

Element name.

◆ ns

std::string_view orcus::sax::parser_element::ns

Optional element namespace. It may be empty if it's not given.