Public Member Functions | |
xml_parser (const xml_allocator &alloc_) | |
char_t * | parse_doctype_primitive (char_t *s) |
char_t * | parse_doctype_ignore (char_t *s) |
char_t * | parse_doctype_group (char_t *s, char_t endch, bool toplevel) |
char_t * | parse_exclamation (char_t *s, xml_node_struct *cursor, unsigned int optmsk, char_t endch) |
char_t * | parse_question (char_t *s, xml_node_struct *&ref_cursor, unsigned int optmsk, char_t endch) |
char_t * | parse (char_t *s, xml_node_struct *xmldoc, unsigned int optmsk, char_t endch) |
Static Public Member Functions | |
static xml_parse_result | parse (char_t *buffer, size_t length, xml_node_struct *root, unsigned int optmsk) |
Public Attributes | |
xml_allocator | alloc |
char_t * | error_offset |
xml_parse_status | error_status |
Definition at line 1859 of file pugixml.cpp.
xml_parser::xml_parser | ( | const xml_allocator & | alloc_ | ) | [inline] |
Definition at line 1875 of file pugixml.cpp.
static xml_parse_result xml_parser::parse | ( | char_t * | buffer, | |
size_t | length, | |||
xml_node_struct * | root, | |||
unsigned int | optmsk | |||
) | [inline, static] |
Definition at line 2310 of file pugixml.cpp.
References alloc, xml_document_struct::buffer, error_offset, error_status, make_parse_result(), parse(), pugi::status_ok, and pugi::status_unrecognized_tag.
char_t* xml_parser::parse | ( | char_t * | s, | |
xml_node_struct * | xmldoc, | |||
unsigned int | optmsk, | |||
char_t | endch | |||
) | [inline] |
Definition at line 2130 of file pugixml.cpp.
References alloc, append_attribute_ll(), ct_space, ct_start_symbol, ct_symbol, ENDSWITH, get_strconv_attribute(), get_strconv_pcdata(), pugi::node_declaration, pugi::node_element, pugi::node_pcdata, parse_exclamation(), parse_question(), pugi::parse_ws_pcdata, pugi::parse_ws_pcdata_single, PUGI__CHECK_ERROR, PUGI__ENDSEG, PUGI__IS_CHARTYPE, PUGI__OPTSET, PUGI__POPNODE, PUGI__PUSHNODE, PUGI__SCANFOR, PUGI__SCANWHILE, PUGI__SKIPWS, PUGI__THROW_ERROR, pugi::status_bad_attribute, pugi::status_bad_end_element, pugi::status_bad_pi, pugi::status_bad_start_element, pugi::status_end_element_mismatch, pugi::status_out_of_memory, and pugi::status_unrecognized_tag.
Referenced by parse().
char_t* xml_parser::parse_doctype_group | ( | char_t * | s, | |
char_t | endch, | |||
bool | toplevel | |||
) | [inline] |
Definition at line 1931 of file pugixml.cpp.
References parse_doctype_ignore(), parse_doctype_primitive(), PUGI__THROW_ERROR, and pugi::status_bad_doctype.
Referenced by parse_exclamation().
char_t* xml_parser::parse_doctype_ignore | ( | char_t * | s | ) | [inline] |
Definition at line 1911 of file pugixml.cpp.
References PUGI__THROW_ERROR, and pugi::status_bad_doctype.
Referenced by parse_doctype_group().
char_t* xml_parser::parse_doctype_primitive | ( | char_t * | s | ) | [inline] |
Definition at line 1885 of file pugixml.cpp.
References PUGI__SCANFOR, PUGI__THROW_ERROR, and pugi::status_bad_doctype.
Referenced by parse_doctype_group().
char_t* xml_parser::parse_exclamation | ( | char_t * | s, | |
xml_node_struct * | cursor, | |||
unsigned int | optmsk, | |||
char_t | endch | |||
) | [inline] |
Definition at line 1962 of file pugixml.cpp.
References ct_space, ENDSWITH, pugi::node_cdata, pugi::node_comment, pugi::node_doctype, pugi::parse_cdata, pugi::parse_comments, pugi::parse_doctype, parse_doctype_group(), pugi::parse_eol, PUGI__CHECK_ERROR, PUGI__IS_CHARTYPE, PUGI__OPTSET, PUGI__POPNODE, PUGI__PUSHNODE, PUGI__SCANFOR, PUGI__THROW_ERROR, pugi::status_bad_cdata, pugi::status_bad_comment, pugi::status_bad_doctype, pugi::status_unrecognized_tag, strconv_cdata(), and strconv_comment().
Referenced by parse().
char_t* xml_parser::parse_question | ( | char_t * | s, | |
xml_node_struct *& | ref_cursor, | |||
unsigned int | optmsk, | |||
char_t | endch | |||
) | [inline] |
Definition at line 2051 of file pugixml.cpp.
References ct_space, ct_start_symbol, ct_symbol, ENDSWITH, pugi::node_declaration, pugi::node_pi, pugi::parse_declaration, pugi::parse_pi, PUGI__CHECK_ERROR, PUGI__ENDSEG, PUGI__IS_CHARTYPE, PUGI__OPTSET, PUGI__POPNODE, PUGI__PUSHNODE, PUGI__SCANFOR, PUGI__SCANWHILE, PUGI__SKIPWS, PUGI__THROW_ERROR, and pugi::status_bad_pi.
Referenced by parse().
char_t* xml_parser::error_offset |
xml_parse_status xml_parser::error_status |