stdex
Additional custom or not Standard C++ covered algorithms
|
Describes attributes associated with a HTML element. More...
#include <stdex/html.hpp>
Static Public Member Functions | |
static element_span_t | span (element_t code) |
Returns expected element span in HTML code. | |
static bool | is_fontstyle (element_t code) |
Does element represent font styling? | |
static bool | is_phrase (element_t code) |
Does element represent a phrase-of-speech? | |
static bool | is_special (element_t code) |
Does element represent non-textual item in the document? | |
static bool | is_formctrl (element_t code) |
Does element represent a form control? | |
static bool | is_inline (element_t code) |
Is element typically displayed inline with text? | |
static bool | is_heading (element_t code) |
Does element represent a heading? | |
static bool | is_list (element_t code) |
Does element represent a list of items? | |
static bool | is_preformatted (element_t code) |
Does element represent preformatted text, source code etc.? | |
static bool | is_block (element_t code) |
Is element typically displayed as a stand-alone section of text? | |
static bool | is_flow (element_t code) |
Does element typically represent text? | |
static bool | is_head_content (element_t code) |
Is element part of the document head? | |
static bool | is_head_misc (element_t code) |
May element be a part of document head? | |
static bool | is_pre_exclusion (element_t code) |
May element be a part of <pre></pre> ? | |
static bool | is_html_content (element_t code) |
Does element represent the document body? | |
static bool | is_group (element_t code) |
Does element represent a separate part of text? | |
static bool | may_contain (element_t parent, element_t child) |
Checks if one element may nest inside another. | |
template<class T > | |
static bool | is_uri (element_t code, _In_reads_or_z_opt_(num_chars) const T *attr_name, size_t num_chars) |
Checks if expected element attribute value is URI. | |
template<class T > | |
static bool | is_localizable (element_t code, const T *attr_name, size_t num_chars) |
Checks if expected element attribute value is localizable. | |
Describes attributes associated with a HTML element.
|
inlinestatic |
Is element typically displayed as a stand-alone section of text?
[in] | code | Element code |
|
inlinestatic |
Does element typically represent text?
[in] | code | Element code |
|
inlinestatic |
Does element represent font styling?
[in] | code | Element code |
|
inlinestatic |
Does element represent a form control?
[in] | code | Element code |
|
inlinestatic |
Does element represent a separate part of text?
[in] | code | Element code |
|
inlinestatic |
Is element part of the document head?
[in] | code | Element code |
|
inlinestatic |
May element be a part of document head?
[in] | code | Element code |
|
inlinestatic |
Does element represent a heading?
[in] | code | Element code |
|
inlinestatic |
Does element represent the document body?
[in] | code | Element code |
|
inlinestatic |
Is element typically displayed inline with text?
[in] | code | Element code |
|
inlinestatic |
Does element represent a list of items?
[in] | code | Element code |
|
inlinestatic |
Checks if expected element attribute value is localizable.
[in] | code | Element code |
[in] | attr_name | Attribute name |
[in] | num_chars | Code unit limit in attr_name |
|
inlinestatic |
Does element represent a phrase-of-speech?
[in] | code | Element code |
|
inlinestatic |
May element be a part of <pre></pre>
?
[in] | code | Element code |
|
inlinestatic |
Does element represent preformatted text, source code etc.?
[in] | code | Element code |
|
inlinestatic |
Does element represent non-textual item in the document?
[in] | code | Element code |
|
inlinestatic |
Checks if expected element attribute value is URI.
[in] | code | Element code |
[in] | attr_name | Attribute name |
[in] | num_chars | Code unit limit in attr_name |
|
inlinestatic |
Checks if one element may nest inside another.
[in] | parent | Parent element code |
[in] | child | Child element code |
true
if child
may nest in parent
; false
otherwise
|
inlinestatic |
Returns expected element span in HTML code.
[in] | code | Element code |