libwordring
公開型 | 公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
wordring::html::basic_simple_parser< Container, ForwardIterator > クラステンプレート
wordring::html::basic_simple_parser< Container, ForwardIterator > の継承関係図
wordring::html::simple_parser_base< basic_simple_parser< Container, ForwardIterator >, Container > wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > wordring::whatwg::html::parsing::input_stream< basic_simple_parser< Container, ForwardIterator > >

公開型

using base_type = simple_parser_base< basic_simple_parser< Container, ForwardIterator >, Container >
 
using container = Container
 
using iterator = ForwardIterator
 
- 基底クラス wordring::html::simple_parser_base< basic_simple_parser< Container, ForwardIterator >, Container > に属する継承公開型
using traits = node_traits< typename Container::iterator >
 
using base_type = wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, traits >
 
using this_type = basic_simple_parser< Container, ForwardIterator >
 
using container = Container
 
using string_type = typename traits::string_type
 
using node_type = typename traits::node_type
 
using node_pointer = typename traits::node_pointer
 
using document_type = typename traits::document_type
 
using document_type_type = typename traits::document_type_type
 
using document_fragment_type = typename traits::document_fragment_type
 
using element_type = typename traits::element_type
 
using text_type = typename traits::text_type
 
using processing_instruction_type = typename traits::processing_instruction_type
 
using comment_type = typename traits::comment_type
 
using attribute_type = typename traits::attribute_type
 
using attribute_pointer = typename traits::attribute_pointer
 
using namespace_uri_type = basic_html_atom< string_type, ns_name >
 
using lacal_name_type = basic_html_atom< string_type, tag_name >
 
- 基底クラス wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承公開型
enum  mode_name
 挿入モード [詳解]
 
using mode_type = void(tree_construction_dispatcher::*)()
 
using scope_type = bool(tree_construction_dispatcher::*)(node_pointer) const
 

公開メンバ関数

 basic_simple_parser (encoding_confidence_name confidence=encoding_confidence_name::irrelevant, encoding_name enc=static_cast< encoding_name >(0), bool fragments_parser=false)
 パーサー・インスタンスを構築する [詳解]
 
void clear (encoding_confidence_name confidence, encoding_name enc)
 初期状態に戻し、パーサーを再利用可能とする
 
void parse (iterator first, iterator last)
 文字列を解析し、 HTML 木を作成する [詳解]
 
container get ()
 
void push_back (char32_t cp)
 
void on_change_encoding (encoding_name name)
 
- 基底クラス wordring::html::simple_parser_base< basic_simple_parser< Container, ForwardIterator >, Container > に属する継承公開メンバ関数
 simple_parser_base (encoding_confidence_name confidence=encoding_confidence_name::irrelevant, encoding_name enc=static_cast< encoding_name >(0), bool fragments_parser=false)
 
void clear (encoding_confidence_name confidence, encoding_name enc)
 初期状態に戻し、パーサーを再利用可能とする
 
node_pointer get_document ()
 文書ノードを返す [詳解]
 
node_pointer insert_document_type (node_pointer pos, document_type_type &&doctype)
 
node_pointer create_element (node_pointer doc, std::u32string name, ns_name ns)
 
node_pointer create_element (node_pointer doc, tag_name name, ns_name ns)
 
node_pointer insert_element (node_pointer pos, node_pointer it)
 
node_pointer get_node_document (node_pointer it)
 
void erase_element (node_pointer it)
 ノードを削除する
 
void move_node (node_pointer pos, node_pointer it)
 ノードを移動する [詳解]
 
void append_attribute (node_pointer it, ns_name ns, std::u32string const &prefix, std::u32string const &name, std::u32string const &value)
 
bool contains (node_pointer it, ns_name ns, std::u32string const &prefix, std::u32string const &name)
 
node_pointer insert_text (node_pointer pos, text_type &&text)
 
node_pointer insert_comment (node_pointer pos, comment_type &&comment)
 
void on_report_error (error_name e)
 エラーが起きた時に呼び出されるコールバック [詳解]
 
void on_change_encoding (encoding_name name)
 文字エンコーディングを変更する時に呼び出されるコールバック [詳解]
 
- 基底クラス wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承公開メンバ関数
 tree_construction_dispatcher (encoding_confidence_name confidence, encoding_name enc, bool fragments_parser=false)
 
void clear (encoding_confidence_name confidence, encoding_name enc)
 初期状態に戻し、パーサーを再利用可能とする
 
bool is_html_element_of (node_pointer it, tag_name tag) const
 
bool is_html_element_of (node_pointer it, std::u32string const &tag) const
 
bool is_element_of (node_pointer it, ns_name ns, tag_name tag) const
 
void change_encoding (encoding_name name)
 文字エンコーディングを変更する
 
void insertion_mode (mode_name mode)
 挿入モードを設定する
 
mode_name current_template_insertion_mode () const
 
void reset_insertion_mode_appropriately ()
 挿入モードを適切に設定し直す [詳解]
 
bool contains (ns_name ns, tag_name tag) const
 スタックに指定されたタグが有るか調べる [詳解]
 
bool contains (tag_name name) const
 スタックに指定されたタグが有るか調べる [詳解]
 
bool contains (node_pointer it) const
 スタックに指定されたポインタが有るか調べる [詳解]
 
stack_entry & current_node ()
 現在のノードを返す [詳解]
 
stack_entry const & current_node () const
 
stack_entry & adjusted_current_node ()
 現在の調整済みノードを返す [詳解]
 
stack_entry const & adjusted_current_node () const
 
bool is_special (node_pointer it) const
 特別な要素か調べる [詳解]
 
bool is_formatting (node_pointer it) const
 整形要素か調べる [詳解]
 
bool in_specific_scope (Scope s, Target const &target) const
 要素が特定の視野内(スコープ内)にあるか調べる [詳解]
 
bool is_default_scope (node_pointer it) const
 デフォルトのスコープ内の特定な要素か調べる [詳解]
 
bool is_list_item_scope (node_pointer it) const
 リスト・アイテムのスコープ内の特定な要素か調べる [詳解]
 
bool is_button_scope (node_pointer it) const
 ボタンのスコープ内の特定な要素か調べる [詳解]
 
bool is_table_scope (node_pointer it) const
 テーブルのスコープ内の特定な要素か調べる [詳解]
 
bool is_select_scope (node_pointer it) const
 セレクトのスコープ内の特定な要素か調べる [詳解]
 
void pop_until (ns_name ns, tag_name tag)
 スタックから指定のタグが現れるまでPOPする [詳解]
 
void pop_until (ns_name ns, T1 conditions)
 スタックから指定のタグが現れるまでPOPする [詳解]
 
void pop_until (node_pointer it)
 スタックから指定の要素が現れるまでPOPする [詳解]
 
auto find (node_pointer it)
 スタックから指定の要素を持つ項目を検索する [詳解]
 
void remove (node_pointer it)
 スタックから指定の要素を持つ項目を除去する [詳解]
 
void push_formatting_element_list (node_pointer it, start_tag_token const &token)
 整形要素リストへ整形要素を挿入する [詳解]
 
void push_formatting_element_list ()
 アクティブ整形要素リストへマーカーを挿入する [詳解]
 
void reconstruct_formatting_element_list ()
 アクティブ整形要素リストを再構築する [詳解]
 
void clear_formatting_element_list ()
 アクティブ整形要素リストをマーカーまでクリアする [詳解]
 
auto find_from_list (node_pointer it)
 リストから指定の要素を持つ項目を検索する [詳解]
 
void remove_from_list (node_pointer it)
 整形要素リストから指定の要素を持つ項目を削除する [詳解]
 
void process_token (mode_name mode, Token &token)
 
void reprocess_token (Token &token)
 
void on_emit_token (Token &token)
 
bool is_mathml_text_integration_point (stack_entry const &entry) const
 
bool is_html_integration_point (stack_entry const &entry) const
 
node_pointer appropriate_place_for_inserting_node (node_pointer target)
 妥当なノード挿入先を調べる [詳解]
 
node_pointer create_element_for_token (start_tag_token &token, ns_name ns, node_pointer intended_parent)
 トークンから要素を作成する [詳解]
 
node_pointer insert_foreign_element (start_tag_token &token, ns_name ns)
 
node_pointer insert_html_element (start_tag_token &token)
 
void adjust_mathml_attributes (Token &token)
 
void adjust_svg_attributes (Token &token)
 
void adjust_foreign_attributes (Token &token)
 
void insert_character (char32_t cp)
 
void insert_comment (comment_token const &token, node_pointer pos)
 
void insert_comment (comment_token const &token)
 
void parse_generic_raw_text_element (start_tag_token &token)
 
void parse_generic_raw_rcdata_element (start_tag_token &token)
 
void generate_implied_end_tags (TagName without)
 
void generate_implied_end_tags ()
 
void generate_all_implied_end_tags_thoroughly ()
 
void on_initial_insertion_mode (Token &token)
 
bool in_quirks_condition (Token const &token) const
 
bool in_limited_quirks_condition (Token const &token) const
 
bool istart_with (std::u32string_view s1, std::u32string const &s2) const
 
void on_before_html_insertion_mode (Token &token)
 
void on_before_head_insertion_mode (Token &token)
 
void on_in_head_insertion_mode (Token &token)
 
void on_in_head_noscript_insertion_mode (Token &token)
 
void on_after_head_insertion_mode (Token &token)
 
void on_in_body_insertion_mode (Token &token)
 
void close_p_element ()
 
bool run_adoption_agency_algorithm (Token &token)
 
void on_text_insertion_mode (Token &token)
 
void on_in_table_insertion_mode (Token &token)
 
void clear_stack_back_to_table_context ()
 
void on_in_table_text_insertion_mode (Token &token)
 
void on_in_caption_insertion_mode (Token &token)
 
void on_in_column_group_insertion_mode (Token &token)
 
void on_in_table_body_insertion_mode (Token &token)
 
void clear_stack_back_to_table_body_context ()
 
void on_in_row_insertion_mode (Token &token)
 
void clear_stack_back_to_table_row_context ()
 
void on_in_cell_insertion_mode (Token &token)
 
void close_cell ()
 
void on_in_select_insertion_mode (Token &token)
 
void on_in_select_in_table_insertion_mode (Token &token)
 
void on_in_template_insertion_mode (Token &token)
 
void on_after_body_insertion_mode (Token &token)
 
void on_in_frameset_insertion_mode (Token &token)
 
void on_after_frameset_insertion_mode (Token &token)
 
void on_after_after_body_insertion_mode (Token &token)
 
void on_after_after_frameset_insertion_mode (Token &token)
 
void on_foreign_content (Token &token)
 
void stop_parsing ()
 構文解析を停止する [詳解]
 
void abort_parser ()
 構文解析を中止する [詳解]
 
- 基底クラス wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承公開メンバ関数
void clear ()
 初期状態に戻し、再利用可能とする
 
tag_tokencreate_start_tag_token ()
 
tag_tokencreate_end_tag_token ()
 
void create_comment_token (char32_t const *data=U"")
 
DOCTYPE_tokencreate_DOCTYPE_token ()
 
tag_tokencurrent_tag_token ()
 現在のタグ・トークンを返す
 
bool is_appropriate_end_tag_token (tag_token const &token)
 
token_attributecreate_attribute ()
 現在のタグ・トークン上で新しい属性を開始する
 
token_attributecurrent_attribute ()
 現在の属性を返す
 
comment_tokencurrent_comment_token ()
 
DOCTYPE_tokencurrent_DOCTYPE_token ()
 
bool in_html_namespace () const
 カレント・ノードがHTML名前空間に属するか調べる
 
void unify_attribute ()
 属性の重複を削る [詳解]
 
void emit_token (Token &token)
 
void emit_token (char32_t cp)
 
void emit_token (end_of_file_token)
 
void change_state (state_type st)
 
void return_state (state_type st)
 
state_type return_state () const
 
void reconsume (state_type st)
 
bool consumed_as_part_of_attribute ()
 
void flush_code_points_consumed_as_character_reference ()
 
void on_emit_code_point ()
 
void on_data_state ()
 
void on_RCDATA_state ()
 
void on_RAWTEXT_state ()
 
void on_script_data_state ()
 
void on_PLAINTEXT_state ()
 
void on_tag_open_state ()
 
void on_end_tag_open_state ()
 
void on_tag_name_state ()
 
void on_RCDATA_less_than_sign_state ()
 
void on_RCDATA_end_tag_open_state ()
 
void on_RCDATA_end_tag_name_state ()
 
void on_RAWTEXT_less_than_sign_state ()
 
void on_RAWTEXT_end_tag_open_state ()
 
void on_RAWTEXT_end_tag_name_state ()
 
void on_script_data_less_than_sign_state ()
 
void on_script_data_end_tag_open_state ()
 
void on_script_data_end_tag_name_state ()
 
void on_script_data_escape_start_state ()
 
void on_script_data_escape_start_dash_state ()
 
void on_script_data_escaped_state ()
 
void on_script_data_escaped_dash_state ()
 
void on_script_data_escaped_dash_dash_state ()
 
void on_script_data_escaped_less_than_sign_state ()
 
void on_script_data_escaped_end_tag_open_state ()
 
void on_script_data_escaped_end_tag_name_state ()
 
void on_script_data_double_escape_start_state ()
 
void on_script_data_double_escaped_state ()
 
void on_script_data_double_escaped_dash_state ()
 
void on_script_data_double_escaped_dash_dash_state ()
 
void on_script_data_double_escaped_less_than_sign_state ()
 
void on_script_data_double_escape_end_state ()
 
void on_before_attribute_name_state ()
 
void on_attribute_name_state ()
 
void on_after_attribute_name_state ()
 
void on_before_attribute_value_state ()
 
void on_attribute_value_double_quoted_state ()
 
void on_attribute_value_single_quoted_state ()
 
void on_attribute_value_unquoted_state ()
 
void on_after_attribute_value_quoted_state ()
 
void on_self_closing_start_tag_state ()
 
void on_bogus_comment_state ()
 
void on_markup_declaration_open_state ()
 
void on_comment_start_state ()
 
void on_comment_start_dash_state ()
 
void on_comment_state ()
 
void on_comment_less_than_sign_state ()
 
void on_comment_less_than_sign_bang_state ()
 
void on_comment_less_than_sign_bang_dash_state ()
 
void on_comment_less_than_sign_bang_dash_dash_state ()
 
void on_comment_end_dash_state ()
 
void on_comment_end_state ()
 
void on_comment_end_bang_state ()
 
void on_DOCTYPE_state ()
 
void on_before_DOCTYPE_name_state ()
 
void on_DOCTYPE_name_state ()
 
void on_after_DOCTYPE_name_state ()
 
void on_after_DOCTYPE_public_keyword_state ()
 
void on_before_DOCTYPE_public_identifier_state ()
 
void on_DOCTYPE_public_identifier_double_quoted_state ()
 
void on_DOCTYPE_public_identifier_single_quoted_state ()
 
void on_after_DOCTYPE_public_identifier_state ()
 
void on_between_DOCTYPE_public_and_system_identifiers_state ()
 
void on_after_DOCTYPE_system_keyword_state ()
 
void on_before_DOCTYPE_system_identifier_state ()
 
void on_DOCTYPE_system_identifier_double_quoted_state ()
 
void on_DOCTYPE_system_identifier_single_quoted_state ()
 
void on_after_DOCTYPE_system_identifier_state ()
 
void on_bogus_DOCTYPE_state ()
 
void on_CDATA_section_state ()
 
void on_CDATA_section_bracket_state ()
 
void on_CDATA_section_end_state ()
 
void on_character_reference_state ()
 
void on_named_character_reference_state ()
 
void on_ambiguous_ampersand_state ()
 
void on_numeric_character_reference_state ()
 
void on_hexadecimal_character_reference_start_state ()
 
void on_decimal_character_reference_start_state ()
 
void on_hexadecimal_character_reference_state ()
 
void on_decimal_character_reference_state ()
 
void on_numeric_character_reference_end_state ()
 
- 基底クラス wordring::whatwg::html::parsing::input_stream< basic_simple_parser< Container, ForwardIterator > > に属する継承公開メンバ関数
 input_stream ()
 空の入力ストリームを構築する
 
void clear ()
 初期状態に戻し、再利用可能とする
 
void report_error (error_name ec=static_cast< error_name >(0))
 エラー報告する [詳解]
 
void push_code_point (value_type cp)
 コード・ポイントを末尾に追加する [詳解]
 
void push_eof ()
 ストリーム終端を設定する [詳解]
 
void emit_code_point (value_type cp)
 コード・ポイントを発送する [詳解]
 
void flush_code_point ()
 ストリーム・バッファ内のコード・ポイントをすべて発送する [詳解]
 
value_type current_input_character () const
 現在の入力文字を返す [詳解]
 
value_type next_input_character () const
 次の入力文字を返す [詳解]
 
bool eof () const
 ストリーム終端に達しているか調べる [詳解]
 
bool fill (std::uint32_t n)
 バッファに指定文字数貯まっているか調べる [詳解]
 
value_type consume ()
 次の入力文字を消費する [詳解]
 
void consume (std::uint32_t n)
 バッファの文字を n 個消費する [詳解]
 
void reconsume ()
 現在の入力文字を再消費する
 
const_iterator begin () const
 
const_iterator end () const
 
bool match (std::u32string_view label, bool with_current, bool case_insensitive)
 与えられた文字列とストリーム・バッファ内の文字列を比較する [詳解]
 
std::array< char32_t, 2 > match_named_character_reference (std::uint32_t &len)
 名前付き文字参照とストリーム・バッファ内の文字列を比較する [詳解]
 
std::array< char32_t, 2 > named_character_reference (std::uint32_t idx)
 名前付き文字参照のコード・ポイントを取得する [詳解]
 

限定公開変数類

encoding_name m_updated_encoding_name
 
iterator m_first
 
iterator m_last
 
- 基底クラス wordring::html::simple_parser_base< basic_simple_parser< Container, ForwardIterator >, Container > に属する継承限定公開変数類
container m_c
 
node_pointer m_document
 
node_pointer m_temporary
 
- 基底クラス wordring::whatwg::html::parsing::input_stream< basic_simple_parser< Container, ForwardIterator > > に属する継承限定公開変数類
container m_c
 
value_type m_current_input_character
 
std::uint32_t m_fill_length
 
bool m_eof
 
bool m_eof_consumed
 
bool m_cr_state
 

その他の継承メンバ

- 基底クラス wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承公開変数類
encoding_confidence_name m_encoding_confidence
 
encoding_name m_encoding_name
 
mode_name m_insertion_mode
 
mode_name m_original_insertion_mode
 
std::deque< mode_namem_template_insertion_mode_stack
 
std::deque< stack_entry > m_stack
 
std::list< active_formatting_element > m_list
 アクティブ整形要素のリスト
 
node_pointer m_head_element_pointer
 
node_pointer m_form_element_pointer
 
bool m_scripting_flag
 
bool m_frameset_ok_flag
 
bool m_foster_parenting
 
bool m_fragments_parser
 
stack_entry m_context_entry
 
bool m_omit_lf
 
std::vector< character_tokenm_pending_table_character_tokens
 
- 基底クラス wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承公開変数類
state_type m_state
 
state_type m_return_state
 
std::u32string m_temporary_buffer
 
DOCTYPE_token m_DOCTYPE_token
 
start_tag_token m_start_tag_token
 
end_tag_token m_end_tag_token
 
comment_token m_comment_token
 
character_token m_character_token
 
end_of_file_token m_end_of_file_token
 
std::uint32_t m_current_tag_token_id
 現在のタグ・トークンを識別する [詳解]
 
std::u32string m_last_start_tag_name
 
char32_t m_character_reference_code
 
- 基底クラス wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承静的公開変数類
static constexpr scope_type default_scope
 
static constexpr scope_type list_item_scope
 
static constexpr scope_type button_scope
 
static constexpr scope_type table_scope
 
static constexpr scope_type select_scope
 
- 基底クラス wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承静的公開変数類
static constexpr state_type data_state
 
static constexpr state_type RCDATA_state
 
static constexpr state_type RAWTEXT_state
 
static constexpr state_type script_data_state
 
static constexpr state_type PLAINTEXT_state
 
static constexpr state_type tag_open_state
 
static constexpr state_type end_tag_open_state
 
static constexpr state_type tag_name_state
 
static constexpr state_type RCDATA_less_than_sign_state
 
static constexpr state_type RCDATA_end_tag_open_state
 
static constexpr state_type RCDATA_end_tag_name_state
 
static constexpr state_type RAWTEXT_less_than_sign_state
 
static constexpr state_type RAWTEXT_end_tag_open_state
 
static constexpr state_type RAWTEXT_end_tag_name_state
 
static constexpr state_type script_data_less_than_sign_state
 
static constexpr state_type script_data_end_tag_open_state
 
static constexpr state_type script_data_end_tag_name_state
 
static constexpr state_type script_data_escape_start_state
 
static constexpr state_type script_data_escape_start_dash_state
 
static constexpr state_type script_data_escaped_state
 
static constexpr state_type script_data_escaped_dash_state
 
static constexpr state_type script_data_escaped_dash_dash_state
 
static constexpr state_type script_data_escaped_less_than_sign_state
 
static constexpr state_type script_data_escaped_end_tag_open_state
 
static constexpr state_type script_data_escaped_end_tag_name_state
 
static constexpr state_type script_data_double_escape_start_state
 
static constexpr state_type script_data_double_escaped_state
 
static constexpr state_type script_data_double_escaped_dash_state
 
static constexpr state_type script_data_double_escaped_dash_dash_state
 
static constexpr state_type script_data_double_escaped_less_than_sign_state
 
static constexpr state_type script_data_double_escape_end_state
 
static constexpr state_type before_attribute_name_state
 
static constexpr state_type attribute_name_state
 
static constexpr state_type after_attribute_name_state
 
static constexpr state_type before_attribute_value_state
 
static constexpr state_type attribute_value_double_quoted_state
 
static constexpr state_type attribute_value_single_quoted_state
 
static constexpr state_type attribute_value_unquoted_state
 
static constexpr state_type after_attribute_value_quoted_state
 
static constexpr state_type self_closing_start_tag_state
 
static constexpr state_type bogus_comment_state
 
static constexpr state_type markup_declaration_open_state
 
static constexpr state_type comment_start_state
 
static constexpr state_type comment_start_dash_state
 
static constexpr state_type comment_state
 
static constexpr state_type comment_less_than_sign_state
 
static constexpr state_type comment_less_than_sign_bang_state
 
static constexpr state_type comment_less_than_sign_bang_dash_state
 
static constexpr state_type comment_less_than_sign_bang_dash_dash_state
 
static constexpr state_type comment_end_dash_state
 
static constexpr state_type comment_end_state
 
static constexpr state_type comment_end_bang_state
 
static constexpr state_type DOCTYPE_state
 
static constexpr state_type before_DOCTYPE_name_state
 
static constexpr state_type DOCTYPE_name_state
 
static constexpr state_type after_DOCTYPE_name_state
 
static constexpr state_type after_DOCTYPE_public_keyword_state
 
static constexpr state_type before_DOCTYPE_public_identifier_state
 
static constexpr state_type DOCTYPE_public_identifier_double_quoted_state
 
static constexpr state_type DOCTYPE_public_identifier_single_quoted_state
 
static constexpr state_type after_DOCTYPE_public_identifier_state
 
static constexpr state_type between_DOCTYPE_public_and_system_identifiers_state
 
static constexpr state_type after_DOCTYPE_system_keyword_state
 
static constexpr state_type before_DOCTYPE_system_identifier_state
 
static constexpr state_type DOCTYPE_system_identifier_double_quoted_state
 
static constexpr state_type DOCTYPE_system_identifier_single_quoted_state
 
static constexpr state_type after_DOCTYPE_system_identifier_state
 
static constexpr state_type bogus_DOCTYPE_state
 
static constexpr state_type CDATA_section_state
 
static constexpr state_type CDATA_section_bracket_state
 
static constexpr state_type CDATA_section_end_state
 
static constexpr state_type character_reference_state
 
static constexpr state_type named_character_reference_state
 
static constexpr state_type ambiguous_ampersand_state
 
static constexpr state_type numeric_character_reference_state
 
static constexpr state_type hexadecimal_character_reference_start_state
 
static constexpr state_type decimal_character_reference_start_state
 
static constexpr state_type hexadecimal_character_reference_state
 
static constexpr state_type decimal_character_reference_state
 
static constexpr state_type numeric_character_reference_end_state
 
- 基底クラス wordring::whatwg::html::parsing::tree_construction_dispatcher< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承限定公開型
using base_type = tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > >
 
using this_type = basic_simple_parser< Container, ForwardIterator >
 
using traits = node_traits< Container::iterator >
 
using string_type = typename traits::string_type
 
using node_pointer = typename traits::node_pointer
 
- 基底クラス wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承限定公開型
using base_type = input_stream< basic_simple_parser< Container, ForwardIterator > >
 
using this_type = basic_simple_parser< Container, ForwardIterator >
 
using traits = node_traits< Container::iterator >
 
using state_type = void(tokenizer::*)()
 
- 基底クラス wordring::whatwg::html::parsing::input_stream< basic_simple_parser< Container, ForwardIterator > > に属する継承限定公開型
using this_type = basic_simple_parser< Container, ForwardIterator >
 
using value_type = char32_t
 
using container = std::deque< value_type >
 
using const_iterator = container::const_iterator
 
- 基底クラス wordring::whatwg::html::parsing::tokenizer< basic_simple_parser< Container, ForwardIterator >, node_traits< Container::iterator > > に属する継承限定公開メンバ関数
void flush_code_point ()
 ストリーム・バッファ内のコード・ポイントをすべて発送する [詳解]
 
bool fill (std::uint32_t n)
 バッファに指定文字数貯まっているか調べる [詳解]
 
value_type current_input_character () const
 現在の入力文字を返す [詳解]
 
value_type next_input_character () const
 次の入力文字を返す [詳解]
 
const_iterator begin () const
 
const_iterator end () const
 
std::array< char32_t, 2 > match_named_character_reference (std::uint32_t &len)
 名前付き文字参照とストリーム・バッファ内の文字列を比較する [詳解]
 
std::array< char32_t, 2 > named_character_reference (std::uint32_t idx)
 名前付き文字参照のコード・ポイントを取得する [詳解]
 
value_type consume ()
 次の入力文字を消費する [詳解]
 
void consume (std::uint32_t n)
 バッファの文字を n 個消費する [詳解]
 
bool match (std::u32string_view label, bool with_current, bool case_insensitive)
 与えられた文字列とストリーム・バッファ内の文字列を比較する [詳解]
 
void report_error (error_name ec=static_cast< error_name >(0))
 エラー報告する [詳解]
 
bool eof () const
 ストリーム終端に達しているか調べる [詳解]
 
- 基底クラス wordring::whatwg::html::parsing::input_stream< basic_simple_parser< Container, ForwardIterator > > に属する継承静的限定公開変数類
static constexpr std::uint32_t null_insertion_point
 

構築子と解体子

◆ basic_simple_parser()

template<typename Container , typename ForwardIterator >
wordring::html::basic_simple_parser< Container, ForwardIterator >::basic_simple_parser ( encoding_confidence_name  confidence = encoding_confidence_name::irrelevant,
encoding_name  enc = static_cast<encoding_name>(0),
bool  fragments_parser = false 
)
inline

パーサー・インスタンスを構築する

引数
[in]confidenceエンコーディングの確かさ
[in]encエンコーディング名
[in]fragments_parserフラグメント・パーサーを構築する場合、 true を設定します

関数詳解

◆ parse()

template<typename Container , typename ForwardIterator >
void wordring::html::basic_simple_parser< Container, ForwardIterator >::parse ( iterator  first,
iterator  last 
)
inline

文字列を解析し、 HTML 木を作成する

引数
[in]firstHTML ソース文字列の最初を指すイテレータ
[in]firstHTML ソース文字列の終端を指すイテレータ

HTML 木を取り出すには、 get() を使います。


このクラス詳解は次のファイルから抽出されました: