|
stdex
Additional custom or not Standard C++ covered algorithms
|
Token representing part of HTML text. More...
#include <stdex/html.hpp>
Public Attributes | |
| std::basic_string< T, TR, AX > | text |
| Token text. | |
| uint32_t | text_type |
| Mask of text_type_flag_t to specify text content. | |
| stdex::mapping_vector< size_t > | mapping |
| Mapping between source and text positions. | |
Public Attributes inherited from stdex::html::token | |
| token_t | type |
| Token type. | |
| sequence * | sequence |
| Pointer to the sequence this token represents or nullptr when it doesn't trivially represent one sequence. | |
| uintptr_t | data |
| Any user-supplied data. | |
Protected Member Functions | |
| text_token (token_t type=token_t::complete, _In_reads_or_z_opt_(num_chars) const T *_text=nullptr, size_t num_chars=0, uint32_t _text_type=0, stdex::html::sequence *sequence=nullptr, uintptr_t data=0) | |
Protected Member Functions inherited from stdex::html::token | |
| token (token_t _type=token_t::root, sequence *_sequence=nullptr, uintptr_t _data=0) | |
Friends | |
| class | parser< T, TR, AX > |
Additional Inherited Members | |
Public Member Functions inherited from stdex::html::token | |
| template<class TR = std::char_traits<char>, class AX = std::allocator<char>> | |
| size_t | append_tag (std::basic_string< char, TR, AX > &str) const |
| Appends token tag to the source code. | |
| template<class TR = std::char_traits<wchar_t>, class AX = std::allocator<wchar_t>> | |
| size_t | append_tag (std::basic_string< wchar_t, TR, AX > &str) const |
| Appends token tag to the source code. | |
Static Public Member Functions inherited from stdex::html::token | |
| template<class T > | |
| static token * | parse_tag (const T *str, size_t &offset) |
Token representing part of HTML text.