#include "pugixml.hpp"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <float.h>
#include <istream>
#include <ostream>
#include <string>
#include <new>
#include <stdint.h>
命名空间 | |
namespace | pugi |
pugi XMLռ | |
宏定义 | |
#define | PUGI__CHECK_ERROR(err, m) { if (*s == 0) PUGI__THROW_ERROR(err, m); } |
#define | PUGI__DMC_VOLATILE |
#define | PUGI__ENDSEG() { ch = *s; *s = 0; ++s; } |
#define | PUGI__ENDSWITH(c, e) ((c) == (e) || ((c) == 0 && endch == (e))) |
#define | PUGI__FN |
#define | PUGI__FN_NO_INLINE PUGI__NO_INLINE |
#define | PUGI__GETHEADER_IMPL(object, page, flags) (((reinterpret_cast<char*>(object) - reinterpret_cast<char*>(page)) << 8) | (flags)) |
#define | PUGI__GETPAGE(n) PUGI__GETPAGE_IMPL((n)->header) |
#define | PUGI__GETPAGE_IMPL(header) static_cast<impl::xml_memory_page*>(const_cast<void*>(static_cast<const void*>(reinterpret_cast<const char*>(&header) - (header >> 8)))) |
#define | PUGI__IS_CHARTYPE(c, ct) PUGI__IS_CHARTYPE_IMPL(c, ct, chartype_table) |
#define | PUGI__IS_CHARTYPE_IMPL(c, ct, table) (table[static_cast<unsigned char>(c)] & (ct)) |
#define | PUGI__IS_CHARTYPEX(c, ct) PUGI__IS_CHARTYPE_IMPL(c, ct, chartypex_table) |
#define | PUGI__NO_INLINE |
#define | PUGI__NODETYPE(n) static_cast<xml_node_type>((n)->header & impl::xml_memory_page_type_mask) |
#define | PUGI__NS_BEGIN namespace pugi { namespace impl { namespace { |
#define | PUGI__NS_END } } } |
#define | PUGI__OPTSET(OPT) ( optmsk & (OPT) ) |
#define | PUGI__POPNODE() { cursor = cursor->parent; } |
#define | PUGI__PUSHNODE(TYPE) { cursor = append_new_node(cursor, *alloc, TYPE); if (!cursor) PUGI__THROW_ERROR(status_out_of_memory, s); } |
#define | PUGI__SCANCHAR(ch) { if (offset >= size || data[offset] != ch) return false; offset++; } |
#define | PUGI__SCANCHARTYPE(ct) { while (offset < size && PUGI__IS_CHARTYPE(data[offset], ct)) offset++; |
#define | PUGI__SCANFOR(X) { while (*s != 0 && !(X)) ++s; } |
#define | PUGI__SCANWHILE(X) { while (X) ++s; } |
#define | PUGI__SCANWHILE_UNROLL(X) { for (;;) { char_t ss = s[0]; if (PUGI__UNLIKELY(!(X))) { break; } ss = s[1]; if (PUGI__UNLIKELY(!(X))) { s += 1; break; } ss = s[2]; if (PUGI__UNLIKELY(!(X))) { s += 2; break; } ss = s[3]; if (PUGI__UNLIKELY(!(X))) { s += 3; break; } s += 4; } } |
#define | PUGI__SKIPWS() { while (PUGI__IS_CHARTYPE(*s, ct_space)) ++s; } |
#define | PUGI__SNPRINTF sprintf |
#define | PUGI__STATIC_ASSERT(cond) { static const char condition_failed[(cond) ? 1 : -1] = {0}; (void)condition_failed[0]; } |
#define | PUGI__THROW_ERROR(err, m) return error_offset = m, error_status = err, static_cast<char_t*>(0) |
#define | PUGI__UNLIKELY(cond) (cond) |
#define | PUGI__UNSIGNED_OVERFLOW |
#define | SOURCE_PUGIXML_CPP |
类型定义 | |
typedef char_t *(* | strconv_attribute_t) (char_t *, char_t) |
typedef char_t *(* | strconv_pcdata_t) (char_t *) |
typedef wchar_selector< sizeof(wchar_t)>::counter | wchar_counter |
typedef wchar_selector< sizeof(wchar_t)>::writer | wchar_writer |
typedef xml_memory_management_function_storage< int > | xml_memory |
函数 | |
PUGI__NS_END PUGI__NS_BEGIN xml_attribute_struct * | allocate_attribute (xml_allocator &alloc) |
xml_node_struct * | allocate_node (xml_allocator &alloc, xml_node_type type) |
PUGI__FN bool | allow_insert_attribute (xml_node_type parent) |
PUGI__FN bool | allow_insert_child (xml_node_type parent, xml_node_type child) |
PUGI__FN bool | allow_move (xml_node parent, xml_node child) |
void | append_attribute (xml_attribute_struct *attr, xml_node_struct *node) |
PUGI__FN_NO_INLINE xml_attribute_struct * | append_new_attribute (xml_node_struct *node, xml_allocator &alloc) |
PUGI__FN_NO_INLINE xml_node_struct * | append_new_node (xml_node_struct *node, xml_allocator &alloc, xml_node_type type=node_element) |
void | append_node (xml_node_struct *child, xml_node_struct *node) |
PUGI__FN std::string PUGIXML_FUNCTION | pugi::as_utf8 (const std::basic_string< wchar_t > &str) |
PUGI__FN std::string PUGIXML_FUNCTION | pugi::as_utf8 (const wchar_t *str) |
PUGI__FN size_t | as_utf8_begin (const wchar_t *str, size_t length) |
PUGI__FN void | as_utf8_end (char *buffer, size_t size, const wchar_t *str, size_t length) |
PUGI__FN std::string | as_utf8_impl (const wchar_t *str, size_t length) |
PUGI__FN std::basic_string< wchar_t > PUGIXML_FUNCTION | pugi::as_wide (const char *str) |
PUGI__FN std::basic_string< wchar_t > PUGIXML_FUNCTION | pugi::as_wide (const std::string &str) |
PUGI__FN std::basic_string< wchar_t > | as_wide_impl (const char *str, size_t size) |
PUGI__FN bool | check_string_to_number_format (const char_t *string) |
PUGI__FN void | close_file (FILE *file) |
PUGI__FN bool | convert_buffer (char_t *&out_buffer, size_t &out_length, xml_encoding encoding, const void *contents, size_t size, bool is_mutable) |
template<typename D > | |
PUGI__FN bool | convert_buffer_generic (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, D) |
PUGI__FN bool | convert_buffer_latin1 (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, bool is_mutable) |
PUGI__FN size_t | convert_buffer_output (char_t *, uint8_t *r_u8, uint16_t *r_u16, uint32_t *r_u32, const char_t *data, size_t length, xml_encoding encoding) |
template<typename D , typename T > | |
PUGI__FN size_t | convert_buffer_output_generic (typename T::value_type dest, const char_t *data, size_t length, D, T) |
template<typename D , typename T > | |
PUGI__FN size_t | convert_buffer_output_generic (typename T::value_type dest, const char_t *data, size_t length, D, T, bool opt_swap) |
PUGI__FN bool | convert_number_to_boolean (double value) |
PUGI__FN void | convert_number_to_mantissa_exponent (double value, char(&buffer)[32], char **out_mantissa, int *out_exponent) |
PUGI__FN xpath_string | convert_number_to_string (double value, xpath_allocator *alloc) |
PUGI__FN const char_t * | convert_number_to_string_special (double value) |
PUGI__FN char * | convert_path_heap (const wchar_t *str) |
PUGI__FN double | convert_string_to_number (const char_t *string) |
PUGI__FN bool | convert_string_to_number_scratch (char_t(&buffer)[32], const char_t *begin, const char_t *end, double *out_result) |
PUGI__FN bool | copy_xpath_variable (xpath_variable *lhs, const xpath_variable *rhs) |
PUGI__NS_BEGIN PUGI__FN void * | default_allocate (size_t size) |
PUGI__FN void | default_deallocate (void *ptr) |
template<typename T > | |
PUGI__FN void | delete_xpath_variable (T *var) |
PUGI__FN void | delete_xpath_variable (xpath_value_type type, xpath_variable *var) |
void | destroy_attribute (xml_attribute_struct *a, xml_allocator &alloc) |
void | destroy_node (xml_node_struct *n, xml_allocator &alloc) |
PUGI__FN const void * | document_buffer_order (const xpath_node &xnode) |
PUGI__NS_END PUGI__NS_BEGIN uint16_t | endian_swap (uint16_t value) |
uint32_t | endian_swap (uint32_t value) |
PUGI__FN impl::xpath_ast_node * | evaluate_node_set_prepare (xpath_query_impl *impl) |
PUGI__FN const char_t * | find_char (const char_t *s, char_t c) |
PUGI__FN const char_t * | find_substring (const char_t *s, const char_t *p) |
PUGI__FN double | gen_nan () |
template<typename Object > | |
xml_allocator & | get_allocator (const Object *object) |
PUGI__FN xml_encoding | get_buffer_encoding (xml_encoding encoding, const void *contents, size_t size) |
template<typename Object > | |
xml_document_struct & | get_document (const Object *object) |
PUGI__FN xml_parse_status | get_file_size (FILE *file, size_t &out_result) |
PUGI__FN size_t | get_latin1_7bit_prefix_length (const uint8_t *data, size_t size) |
PUGI__FN allocation_function PUGIXML_FUNCTION | pugi::get_memory_allocation_function () |
PUGI__FN deallocation_function PUGIXML_FUNCTION | pugi::get_memory_deallocation_function () |
PUGI__FN bool | get_mutable_buffer (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, bool is_mutable) |
PUGI__FN strconv_attribute_t | get_strconv_attribute (unsigned int optmask) |
PUGI__FN strconv_pcdata_t | get_strconv_pcdata (unsigned int optmask) |
PUGI__FN size_t | get_valid_length (const char_t *data, size_t length) |
PUGI__FN bool | get_value_bool (const char_t *value) |
PUGI__FN double | get_value_double (const char_t *value) |
PUGI__FN float | get_value_float (const char_t *value) |
PUGI__FN int | get_value_int (const char_t *value) |
PUGI__FN unsigned int | get_value_uint (const char_t *value) |
PUGI__FN bool | get_variable_scratch (char_t(&buffer)[32], xpath_variable_set *set, const char_t *begin, const char_t *end, xpath_variable **out_result) |
PUGI__FN xml_encoding | get_wchar_encoding () |
PUGI__FN xml_encoding | get_write_encoding (xml_encoding encoding) |
PUGI__FN xml_encoding | get_write_native_encoding () |
PUGI__FN xml_encoding | guess_buffer_encoding (const uint8_t *data, size_t size) |
PUGI__FN bool | has_declaration (xml_node_struct *node) |
PUGI__FN PUGI__UNSIGNED_OVERFLOW unsigned int | hash_string (const char_t *str) |
void | insert_attribute_after (xml_attribute_struct *attr, xml_attribute_struct *place, xml_node_struct *node) |
void | insert_attribute_before (xml_attribute_struct *attr, xml_attribute_struct *place, xml_node_struct *node) |
void | insert_node_after (xml_node_struct *child, xml_node_struct *node) |
void | insert_node_before (xml_node_struct *child, xml_node_struct *node) |
template<typename T , typename Pred > | |
void | insertion_sort (T *begin, T *end, const Pred &pred) |
template<typename U > | |
PUGI__FN PUGI__UNSIGNED_OVERFLOW char_t * | integer_to_string (char_t *begin, char_t *end, U value, bool negative) |
PUGI__FN bool | is_attribute_of (xml_attribute_struct *attr, xml_node_struct *node) |
PUGI__FN bool | is_little_endian () |
PUGI__FN bool | is_nan (double value) |
bool | is_text_node (xml_node_struct *node) |
bool | is_xpath_attribute (const char_t *name) |
PUGI__FN xml_parse_result | load_buffer_impl (xml_document_struct *doc, xml_node_struct *root, void *contents, size_t size, unsigned int options, xml_encoding encoding, bool is_mutable, bool own, char_t **out_buffer) |
PUGI__FN xml_parse_result | load_file_impl (xml_document_struct *doc, FILE *file, unsigned int options, xml_encoding encoding, char_t **out_buffer) |
template<typename T > | |
PUGI__FN xml_parse_status | load_stream_data_noseek (std::basic_istream< T > &stream, void **out_buffer, size_t *out_size) |
template<typename T > | |
PUGI__FN xml_parse_status | load_stream_data_seek (std::basic_istream< T > &stream, void **out_buffer, size_t *out_size) |
template<typename T > | |
PUGI__FN xml_parse_result | load_stream_impl (xml_document_struct *doc, std::basic_istream< T > &stream, unsigned int options, xml_encoding encoding, char_t **out_buffer) |
PUGI__FN const char_t * | local_name (const xpath_node &node) |
xml_parse_result | make_parse_result (xml_parse_status status, ptrdiff_t offset=0) |
template<typename I , typename Pred > | |
I | median3 (I first, I middle, I last, const Pred &pred) |
template<typename I , typename Pred > | |
I | min_element (I begin, I end, const Pred &pred) |
PUGI__FN const char_t * | namespace_uri (const xpath_node &node) |
PUGI__FN const char_t * | namespace_uri (xml_attribute attr, xml_node parent) |
PUGI__FN const char_t * | namespace_uri (xml_node node) |
template<typename T > | |
PUGI__FN T * | new_xpath_variable (const char_t *name) |
PUGI__FN xpath_variable * | new_xpath_variable (xpath_value_type type, const char_t *name) |
PUGI__FN void | node_copy_attribute (xml_attribute_struct *da, xml_attribute_struct *sa) |
PUGI__FN void | node_copy_contents (xml_node_struct *dn, xml_node_struct *sn, xml_allocator *shared_alloc) |
template<typename String , typename Header > | |
PUGI__FN void | node_copy_string (String &dest, Header &header, uintptr_t header_mask, char_t *source, Header &source_header, xml_allocator *alloc) |
PUGI__FN void | node_copy_tree (xml_node_struct *dn, xml_node_struct *sn) |
PUGI__FN bool | node_is_ancestor (xml_node_struct *parent, xml_node_struct *node) |
PUGI__FN bool | node_is_before (xml_node_struct *ln, xml_node_struct *rn) |
PUGI__FN bool | node_is_before_sibling (xml_node_struct *ln, xml_node_struct *rn) |
PUGI__FN void | node_output (xml_buffered_writer &writer, xml_node_struct *root, const char_t *indent, unsigned int flags, unsigned int depth) |
PUGI__FN void | node_output_attributes (xml_buffered_writer &writer, xml_node_struct *node, const char_t *indent, size_t indent_length, unsigned int flags, unsigned int depth) |
PUGI__FN void | node_output_comment (xml_buffered_writer &writer, const char_t *s) |
PUGI__FN void | node_output_end (xml_buffered_writer &writer, xml_node_struct *node) |
PUGI__FN void | node_output_pi_value (xml_buffered_writer &writer, const char_t *s) |
PUGI__FN void | node_output_simple (xml_buffered_writer &writer, xml_node_struct *node, unsigned int flags) |
PUGI__FN bool | node_output_start (xml_buffered_writer &writer, xml_node_struct *node, const char_t *indent, size_t indent_length, unsigned int flags, unsigned int depth) |
PUGI__FN char_t * | normalize_space (char_t *buffer) |
PUGI__FN FILE * | open_file_wide (const wchar_t *path, const wchar_t *mode) |
PUGI__FN bool | parse_declaration_encoding (const uint8_t *data, size_t size, const uint8_t *&out_encoding, size_t &out_length) |
template<typename T , typename Pred > | |
void | partition3 (T *begin, T *end, T pivot, const Pred &pred, T **out_eqbeg, T **out_eqend) |
void | prepend_attribute (xml_attribute_struct *attr, xml_node_struct *node) |
void | prepend_node (xml_node_struct *child, xml_node_struct *node) |
PUGI__FN const char_t * | qualified_name (const xpath_node &node) |
void | remove_attribute (xml_attribute_struct *attr, xml_node_struct *node) |
void | remove_node (xml_node_struct *node) |
template<typename I > | |
void | reverse (I begin, I end) |
PUGI__FN double | round_nearest (double value) |
PUGI__FN double | round_nearest_nzero (double value) |
PUGI__FN bool | save_file_impl (const xml_document &doc, FILE *file, const char_t *indent, unsigned int flags, xml_encoding encoding) |
PUGI__FN void PUGIXML_FUNCTION | pugi::set_memory_management_functions (allocation_function allocate, deallocation_function deallocate) |
template<typename String , typename Header > | |
PUGI__FN bool | set_value_ascii (String &dest, Header &header, uintptr_t header_mask, char *buf) |
template<typename String , typename Header > | |
PUGI__FN bool | set_value_bool (String &dest, Header &header, uintptr_t header_mask, bool value) |
template<typename String , typename Header > | |
PUGI__FN bool | set_value_convert (String &dest, Header &header, uintptr_t header_mask, double value) |
template<typename String , typename Header > | |
PUGI__FN bool | set_value_convert (String &dest, Header &header, uintptr_t header_mask, float value) |
template<typename U , typename String , typename Header > | |
PUGI__FN bool | set_value_integer (String &dest, Header &header, uintptr_t header_mask, U value, bool negative) |
template<typename I , typename Pred > | |
void | sort (I begin, I end, const Pred &pred) |
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN bool | starts_with (const char_t *string, const char_t *pattern) |
PUGI__FN char_t * | strconv_cdata (char_t *s, char_t endch) |
PUGI__FN char_t * | strconv_comment (char_t *s, char_t endch) |
PUGI__FN char_t * | strconv_escape (char_t *s, gap &g) |
template<typename String , typename Header > | |
PUGI__FN bool | strcpy_insitu (String &dest, Header &header, uintptr_t header_mask, const char_t *source, size_t source_length) |
template<typename Header > | |
bool | strcpy_insitu_allow (size_t length, const Header &header, uintptr_t header_mask, char_t *target) |
PUGI__FN bool | strequal (const char_t *src, const char_t *dst) |
PUGI__FN bool | strequalrange (const char_t *lhs, const char_t *rhs, size_t count) |
template<typename U > | |
PUGI__FN PUGI__UNSIGNED_OVERFLOW U | string_to_integer (const char_t *value, U minv, U maxv) |
PUGI__FN xpath_string | string_value (const xpath_node &na, xpath_allocator *alloc) |
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN size_t | strlength (const char_t *s) |
PUGI__FN size_t | strlength_wide (const wchar_t *s) |
template<typename T > | |
void | swap (T &lhs, T &rhs) |
PUGI__FN void | text_output (xml_buffered_writer &writer, const char_t *s, chartypex_t type, unsigned int flags) |
PUGI__FN void | text_output_cdata (xml_buffered_writer &writer, const char_t *s) |
PUGI__FN void | text_output_escaped (xml_buffered_writer &writer, const char_t *s, chartypex_t type) |
PUGI__FN void | text_output_indent (xml_buffered_writer &writer, const char_t *indent, size_t indent_length, unsigned int depth) |
PUGI__FN char_t | tolower_ascii (char_t ch) |
PUGI__FN char_t * | translate (char_t *buffer, const char_t *from, const char_t *to, size_t to_length) |
PUGI__FN char_t * | translate_table (char_t *buffer, const unsigned char *table) |
PUGI__FN unsigned char * | translate_table_generate (xpath_allocator *alloc, const char_t *from, const char_t *to) |
PUGI__FN void | truncate_zeros (char *begin, char *end) |
template<typename I > | |
I | unique (I begin, I end) |
static PUGI__FN void | pugi::unspecified_bool_xml_attribute (xml_attribute ***) |
static PUGI__FN void | pugi::unspecified_bool_xml_node (xml_node ***) |
static PUGI__FN void | pugi::unspecified_bool_xml_text (xml_text ***) |
static PUGI__FN void | pugi::unspecified_bool_xpath_node (xpath_node ***) |
static PUGI__FN void | pugi::unspecified_bool_xpath_query (xpath_query ***) |
PUGI__FN xpath_node | xpath_first (const xpath_node *begin, const xpath_node *end, xpath_node_set::type_t type) |
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN xpath_node_set::type_t | xpath_get_order (const xpath_node *begin, const xpath_node *end) |
PUGI__FN xpath_node_set::type_t | xpath_sort (xpath_node *begin, xpath_node *end, xpath_node_set::type_t type, bool rev) |
PUGI__FN size_t | zero_terminate_buffer (void *buffer, size_t size, xml_encoding encoding) |
#define PUGI__CHECK_ERROR | ( | err, | |
m ) { if (*s == 0) PUGI__THROW_ERROR(err, m); } |
在文件 pugixml.cpp 第 2798 行定义.
被这些函数引用 xml_parser::parse_exclamation() , 以及 xml_parser::parse_question().
#define PUGI__DMC_VOLATILE |
在文件 pugixml.cpp 第 140 行定义.
被这些函数引用 translate().
#define PUGI__ENDSEG | ( | ) | { ch = *s; *s = 0; ++s; } |
在文件 pugixml.cpp 第 2796 行定义.
被这些函数引用 xml_parser::parse_question() , 以及 xml_parser::parse_tree().
#define PUGI__ENDSWITH | ( | c, | |
e ) ((c) == (e) || ((c) == 0 && endch == (e))) |
在文件 pugixml.cpp 第 2788 行定义.
被这些函数引用 xml_parser::parse_exclamation(), xml_parser::parse_question(), xml_parser::parse_tree(), strconv_cdata() , 以及 strconv_comment().
#define PUGI__FN |
在文件 pugixml.cpp 第 196 行定义.
#define PUGI__FN_NO_INLINE PUGI__NO_INLINE |
在文件 pugixml.cpp 第 197 行定义.
#define PUGI__GETHEADER_IMPL | ( | object, | |
page, | |||
flags ) (((reinterpret_cast<char*>(object) - reinterpret_cast<char*>(page)) << 8) | (flags)) |
在文件 pugixml.cpp 第 537 行定义.
被这些函数引用 pugi::xml_attribute_struct::xml_attribute_struct() , 以及 pugi::xml_node_struct::xml_node_struct().
#define PUGI__GETPAGE | ( | n | ) | PUGI__GETPAGE_IMPL((n)->header) |
在文件 pugixml.cpp 第 544 行定义.
被这些函数引用 pugi::xml_document::_destroy(), destroy_attribute(), destroy_node(), get_allocator() , 以及 get_document().
#define PUGI__GETPAGE_IMPL | ( | header | ) | static_cast<impl::xml_memory_page*>(const_cast<void*>(static_cast<const void*>(reinterpret_cast<const char*>(&header) - (header >> 8)))) |
在文件 pugixml.cpp 第 540 行定义.
被这些函数引用 strcpy_insitu().
#define PUGI__IS_CHARTYPE | ( | c, | |
ct ) PUGI__IS_CHARTYPE_IMPL(c, ct, chartype_table) |
在文件 pugixml.cpp 第 2099 行定义.
被这些函数引用 check_string_to_number_format(), xpath_lexer::next(), normalize_space(), strconv_pcdata_impl< opt_trim, opt_eol, opt_escape >::parse(), parse_declaration_encoding(), strconv_attribute_impl< opt_escape >::parse_eol(), xml_parser::parse_exclamation(), xpath_parser::parse_path_or_unary_expression(), xml_parser::parse_question(), strconv_attribute_impl< opt_escape >::parse_simple(), xml_parser::parse_tree(), strconv_attribute_impl< opt_escape >::parse_wconv(), strconv_attribute_impl< opt_escape >::parse_wnorm(), strconv_cdata(), strconv_comment() , 以及 string_to_integer().
#define PUGI__IS_CHARTYPE_IMPL | ( | c, | |
ct, | |||
table ) (table[static_cast<unsigned char>(c)] & (ct)) |
在文件 pugixml.cpp 第 2096 行定义.
#define PUGI__IS_CHARTYPEX | ( | c, | |
ct ) PUGI__IS_CHARTYPE_IMPL(c, ct, chartypex_table) |
在文件 pugixml.cpp 第 2100 行定义.
被这些函数引用 check_string_to_number_format(), xpath_lexer::next() , 以及 text_output_escaped().
#define PUGI__NO_INLINE |
在文件 pugixml.cpp 第 123 行定义.
#define PUGI__NODETYPE | ( | n | ) | static_cast<xml_node_type>((n)->header & impl::xml_memory_page_type_mask) |
在文件 pugixml.cpp 第 546 行定义.
被这些函数引用 pugi::xml_text::_data(), pugi::xml_node::child_value(), pugi::xml_document::document_element(), has_declaration(), xml_parser::has_element_node_siblings(), is_text_node(), node_copy_tree(), node_output(), node_output_simple(), xml_parser::parse_tree(), pugi::xml_node::set_name(), pugi::xml_node::set_value(), xpath_ast_node::step_push() , 以及 pugi::xml_node::type().
#define PUGI__NS_BEGIN namespace pugi { namespace impl { namespace { |
在文件 pugixml.cpp 第 193 行定义.
#define PUGI__NS_END } } } |
在文件 pugixml.cpp 第 194 行定义.
#define PUGI__OPTSET | ( | OPT | ) | ( optmsk & (OPT) ) |
在文件 pugixml.cpp 第 2790 行定义.
被这些函数引用 xml_parser::parse(), xml_parser::parse_exclamation(), xml_parser::parse_question() , 以及 xml_parser::parse_tree().
#define PUGI__POPNODE | ( | ) | { cursor = cursor->parent; } |
在文件 pugixml.cpp 第 2792 行定义.
被这些函数引用 xml_parser::parse_question() , 以及 xml_parser::parse_tree().
#define PUGI__PUSHNODE | ( | TYPE | ) | { cursor = append_new_node(cursor, *alloc, TYPE); if (!cursor) PUGI__THROW_ERROR(status_out_of_memory, s); } |
在文件 pugixml.cpp 第 2791 行定义.
被这些函数引用 xml_parser::parse_exclamation(), xml_parser::parse_question() , 以及 xml_parser::parse_tree().
#define PUGI__SCANCHAR | ( | ch | ) | { if (offset >= size || data[offset] != ch) return false; offset++; } |
#define PUGI__SCANCHARTYPE | ( | ct | ) | { while (offset < size && PUGI__IS_CHARTYPE(data[offset], ct)) offset++; |
#define PUGI__SCANFOR | ( | X | ) | { while (*s != 0 && !(X)) ++s; } |
#define PUGI__SCANWHILE | ( | X | ) | { while (X) ++s; } |
在文件 pugixml.cpp 第 2794 行定义.
被这些函数引用 xml_parser::parse_question().
#define PUGI__SCANWHILE_UNROLL | ( | X | ) | { for (;;) { char_t ss = s[0]; if (PUGI__UNLIKELY(!(X))) { break; } ss = s[1]; if (PUGI__UNLIKELY(!(X))) { s += 1; break; } ss = s[2]; if (PUGI__UNLIKELY(!(X))) { s += 2; break; } ss = s[3]; if (PUGI__UNLIKELY(!(X))) { s += 3; break; } s += 4; } } |
在文件 pugixml.cpp 第 2795 行定义.
被这些函数引用 strconv_pcdata_impl< opt_trim, opt_eol, opt_escape >::parse(), strconv_attribute_impl< opt_escape >::parse_eol(), strconv_attribute_impl< opt_escape >::parse_simple(), xml_parser::parse_tree(), strconv_attribute_impl< opt_escape >::parse_wconv(), strconv_attribute_impl< opt_escape >::parse_wnorm(), strconv_cdata(), strconv_comment() , 以及 text_output_escaped().
#define PUGI__SKIPWS | ( | ) | { while (PUGI__IS_CHARTYPE(*s, ct_space)) ++s; } |
在文件 pugixml.cpp 第 2789 行定义.
被这些函数引用 xml_parser::parse_question() , 以及 xml_parser::parse_tree().
#define PUGI__SNPRINTF sprintf |
在文件 pugixml.cpp 第 179 行定义.
被这些函数引用 convert_number_to_mantissa_exponent(), set_value_convert() , 以及 set_value_convert().
#define PUGI__STATIC_ASSERT | ( | cond | ) | { static const char condition_failed[(cond) ? 1 : -1] = {0}; (void)condition_failed[0]; } |
在文件 pugixml.cpp 第 134 行定义.
被这些函数引用 pugi::xml_document::_create(), xml_allocator::allocate_string(), convert_buffer_output_generic(), convert_buffer_output_generic(), gen_nan(), get_strconv_attribute(), get_strconv_pcdata(), get_wchar_encoding(), string_to_integer() , 以及 xml_buffered_writer::xml_buffered_writer().
#define PUGI__THROW_ERROR | ( | err, | |
m ) return error_offset = m, error_status = err, static_cast<char_t*>(0) |
#define PUGI__UNLIKELY | ( | cond | ) | (cond) |
在文件 pugixml.cpp 第 130 行定义.
被这些函数引用 xml_allocator::allocate_memory().
#define PUGI__UNSIGNED_OVERFLOW |
在文件 pugixml.cpp 第 151 行定义.
#define SOURCE_PUGIXML_CPP |
Copyright (C) 2006-2018, by Arseny Kapoulkine (arsen.nosp@m.y.ka.nosp@m.poulk.nosp@m.ine@.nosp@m.gmail.nosp@m..com) Report bugs and download new versions at http://pugixml.org/
This library is distributed under the MIT License. See notice at the end of this file.
This work is based on the pugxml parser, which is: Copyright (C) 2003, by Kristen Wegner (krist.nosp@m.en@t.nosp@m.ima.n.nosp@m.et)
在文件 pugixml.cpp 第 15 行定义.
typedef char_t *(* strconv_attribute_t) (char_t *, char_t) |
在文件 pugixml.cpp 第 2927 行定义.
typedef char_t *(* strconv_pcdata_t) (char_t *) |
在文件 pugixml.cpp 第 2856 行定义.
typedef wchar_selector<sizeof(wchar_t)>::counter wchar_counter |
在文件 pugixml.cpp 第 2004 行定义.
typedef wchar_selector<sizeof(wchar_t)>::writer wchar_writer |
在文件 pugixml.cpp 第 2005 行定义.
typedef xml_memory_management_function_storage<int> xml_memory |
在文件 pugixml.cpp 第 244 行定义.
enum ast_type_t |
在文件 pugixml.cpp 第 9458 行定义.
enum axis_t |
在文件 pugixml.cpp 第 9523 行定义.
enum chartype_t |
枚举值 | |
---|---|
ct_parse_pcdata | |
ct_parse_attr | |
ct_parse_attr_ws | |
ct_space | |
ct_parse_cdata | |
ct_parse_comment | |
ct_symbol | |
ct_start_symbol |
在文件 pugixml.cpp 第 2029 行定义.
enum chartypex_t |
枚举值 | |
---|---|
ctx_special_pcdata | |
ctx_special_attr | |
ctx_start_symbol | |
ctx_digit | |
ctx_symbol |
在文件 pugixml.cpp 第 2062 行定义.
enum indent_flags_t |
枚举值 | |
---|---|
indent_newline | |
indent_indent |
在文件 pugixml.cpp 第 4419 行定义.
enum lexeme_t |
在文件 pugixml.cpp 第 9104 行定义.
enum nodeset_eval_t |
枚举值 | |
---|---|
nodeset_eval_all | |
nodeset_eval_any | |
nodeset_eval_first |
在文件 pugixml.cpp 第 9561 行定义.
enum nodetest_t |
枚举值 | |
---|---|
nodetest_none | |
nodetest_name | |
nodetest_type_node | |
nodetest_type_comment | |
nodetest_type_pi | |
nodetest_type_text | |
nodetest_pi | |
nodetest_all | |
nodetest_all_in_namespace |
在文件 pugixml.cpp 第 9540 行定义.
enum predicate_t |
枚举值 | |
---|---|
predicate_default | |
predicate_posinv | |
predicate_constant | |
predicate_constant_one |
在文件 pugixml.cpp 第 9553 行定义.
|
inline |
在文件 pugixml.cpp 第 1368 行定义.
引用了 xml_allocator::allocate_object().
被这些函数引用 append_new_attribute().
|
inline |
在文件 pugixml.cpp 第 1377 行定义.
引用了 xml_allocator::allocate_object().
被这些函数引用 append_new_node().
PUGI__FN bool allow_insert_attribute | ( | xml_node_type | parent | ) |
在文件 pugixml.cpp 第 4540 行定义.
PUGI__FN bool allow_insert_child | ( | xml_node_type | parent, |
xml_node_type | child ) |
PUGI__FN bool allow_move | ( | xml_node | parent, |
xml_node | child ) |
|
inline |
PUGI__FN_NO_INLINE xml_attribute_struct * append_new_attribute | ( | xml_node_struct * | node, |
xml_allocator & | alloc ) |
在文件 pugixml.cpp 第 1605 行定义.
引用了 allocate_attribute(), append_attribute() , 以及 xml_allocator::reserve().
被这些函数引用 node_copy_contents() , 以及 xml_parser::parse_tree().
PUGI__FN_NO_INLINE xml_node_struct * append_new_node | ( | xml_node_struct * | node, |
xml_allocator & | alloc, | ||
xml_node_type | type = node_element ) |
在文件 pugixml.cpp 第 1593 行定义.
引用了 allocate_node(), append_node() , 以及 xml_allocator::reserve().
被这些函数引用 node_copy_tree().
|
inline |
在文件 pugixml.cpp 第 2487 行定义.
引用了 begin(), end() , 以及 wchar_decoder::process().
被这些函数引用 as_utf8_impl() , 以及 convert_path_heap().
PUGI__FN bool check_string_to_number_format | ( | const char_t * | string | ) |
在文件 pugixml.cpp 第 8450 行定义.
引用了 ct_space, ctx_digit, PUGI__IS_CHARTYPE , 以及 PUGI__IS_CHARTYPEX.
被这些函数引用 convert_string_to_number().
PUGI__FN void close_file | ( | FILE * | file | ) |
在文件 pugixml.cpp 第 5006 行定义.
PUGI__FN bool convert_buffer | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
xml_encoding | encoding, | ||
const void * | contents, | ||
size_t | size, | ||
bool | is_mutable ) |
在文件 pugixml.cpp 第 2446 行定义.
引用了 convert_buffer_generic(), convert_buffer_latin1(), get_mutable_buffer() , 以及 is_little_endian().
PUGI__FN bool convert_buffer_generic | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
D | ) |
在文件 pugixml.cpp 第 2375 行定义.
引用了 xml_memory_management_function_storage< T >::allocate.
被这些函数引用 convert_buffer().
PUGI__FN bool convert_buffer_latin1 | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
bool | is_mutable ) |
在文件 pugixml.cpp 第 2409 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, get_latin1_7bit_prefix_length(), get_mutable_buffer() , 以及 latin1_decoder::process().
被这些函数引用 convert_buffer().
PUGI__FN size_t convert_buffer_output | ( | char_t * | , |
uint8_t * | r_u8, | ||
uint16_t * | r_u16, | ||
uint32_t * | r_u32, | ||
const char_t * | data, | ||
size_t | length, | ||
xml_encoding | encoding ) |
在文件 pugixml.cpp 第 3869 行定义.
引用了 convert_buffer_output_generic() , 以及 is_little_endian().
被这些函数引用 xml_buffered_writer::flush().
PUGI__FN size_t convert_buffer_output_generic | ( | typename T::value_type | dest, |
const char_t * | data, | ||
size_t | length, | ||
D | , | ||
T | ) |
在文件 pugixml.cpp 第 3782 行定义.
引用了 end() , 以及 PUGI__STATIC_ASSERT.
被这些函数引用 convert_buffer_output().
PUGI__FN bool convert_number_to_boolean | ( | double | value | ) |
在文件 pugixml.cpp 第 8326 行定义.
引用了 is_nan().
被这些函数引用 xpath_ast_node::eval_boolean().
PUGI__FN void convert_number_to_mantissa_exponent | ( | double | value, |
char(&) | buffer[32], | ||
char ** | out_mantissa, | ||
int * | out_exponent ) |
在文件 pugixml.cpp 第 8354 行定义.
引用了 PUGI__SNPRINTF , 以及 truncate_zeros().
被这些函数引用 convert_number_to_string().
PUGI__FN xpath_string convert_number_to_string | ( | double | value, |
xpath_allocator * | alloc ) |
在文件 pugixml.cpp 第 8383 行定义.
引用了 xpath_allocator::allocate(), convert_number_to_mantissa_exponent(), convert_number_to_string_special(), xpath_string::from_const() , 以及 xpath_string::from_heap_preallocated().
被这些函数引用 xpath_ast_node::eval_string().
PUGI__FN const char_t * convert_number_to_string_special | ( | double | value | ) |
PUGI__FN char * convert_path_heap | ( | const wchar_t * | str | ) |
在文件 pugixml.cpp 第 5167 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, as_utf8_begin(), as_utf8_end() , 以及 strlength_wide().
被这些函数引用 open_file_wide().
PUGI__FN double convert_string_to_number | ( | const char_t * | string | ) |
在文件 pugixml.cpp 第 8480 行定义.
引用了 check_string_to_number_format() , 以及 gen_nan().
被这些函数引用 xpath_ast_node::compare_eq(), xpath_ast_node::compare_rel(), convert_string_to_number_scratch() , 以及 xpath_ast_node::eval_number().
PUGI__FN bool convert_string_to_number_scratch | ( | char_t(&) | buffer[32], |
const char_t * | begin, | ||
const char_t * | end, | ||
double * | out_result ) |
在文件 pugixml.cpp 第 8493 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, begin(), convert_string_to_number(), xml_memory_management_function_storage< T >::deallocate , 以及 end().
被这些函数引用 xpath_parser::parse_primary_expression().
PUGI__FN bool copy_xpath_variable | ( | xpath_variable * | lhs, |
const xpath_variable * | rhs ) |
在文件 pugixml.cpp 第 8860 行定义.
PUGI__NS_BEGIN PUGI__FN void * default_allocate | ( | size_t | size | ) |
在文件 pugixml.cpp 第 220 行定义.
PUGI__FN void default_deallocate | ( | void * | ptr | ) |
在文件 pugixml.cpp 第 225 行定义.
PUGI__FN void delete_xpath_variable | ( | T * | var | ) |
在文件 pugixml.cpp 第 8829 行定义.
引用了 xml_memory_management_function_storage< T >::deallocate.
被这些函数引用 delete_xpath_variable().
PUGI__FN void delete_xpath_variable | ( | xpath_value_type | type, |
xpath_variable * | var ) |
|
inline |
在文件 pugixml.cpp 第 1386 行定义.
引用了 xml_allocator::deallocate_memory(), xml_allocator::deallocate_string() , 以及 PUGI__GETPAGE.
被这些函数引用 destroy_node().
|
inline |
在文件 pugixml.cpp 第 1397 行定义.
引用了 xml_allocator::deallocate_memory(), xml_allocator::deallocate_string(), destroy_attribute(), destroy_node() , 以及 PUGI__GETPAGE.
被这些函数引用 destroy_node().
PUGI__FN const void * document_buffer_order | ( | const xpath_node & | xnode | ) |
在文件 pugixml.cpp 第 8172 行定义.
引用了 get_document() , 以及 xml_memory_page_contents_shared_mask.
被这些函数引用 document_order_comparator::operator()().
|
inline |
在文件 pugixml.cpp 第 1633 行定义.
被这些函数引用 convert_buffer_output_generic(), utf16_decoder< opt_swap >::process() , 以及 utf32_decoder< opt_swap >::process().
|
inline |
在文件 pugixml.cpp 第 1638 行定义.
PUGI__FN impl::xpath_ast_node * evaluate_node_set_prepare | ( | xpath_query_impl * | impl | ) |
PUGI__FN const char_t * find_char | ( | const char_t * | s, |
char_t | c ) |
在文件 pugixml.cpp 第 8019 行定义.
被这些函数引用 local_name(), namespace_uri_predicate::namespace_uri_predicate() , 以及 translate().
PUGI__FN const char_t * find_substring | ( | const char_t * | s, |
const char_t * | p ) |
在文件 pugixml.cpp 第 8028 行定义.
被这些函数引用 xpath_ast_node::eval_boolean() , 以及 xpath_ast_node::eval_string().
PUGI__FN double gen_nan | ( | ) |
在文件 pugixml.cpp 第 8266 行定义.
引用了 PUGI__STATIC_ASSERT.
被这些函数引用 convert_string_to_number().
|
inline |
在文件 pugixml.cpp 第 1350 行定义.
引用了 PUGI__GETPAGE.
被这些函数引用 node_copy_attribute(), node_copy_contents() , 以及 node_copy_tree().
PUGI__FN xml_encoding get_buffer_encoding | ( | xml_encoding | encoding, |
const void * | contents, | ||
size_t | size ) |
在文件 pugixml.cpp 第 2221 行定义.
引用了 get_wchar_encoding(), guess_buffer_encoding() , 以及 is_little_endian().
被这些函数引用 load_file_impl() , 以及 load_stream_impl().
|
inline |
PUGI__FN bool get_mutable_buffer | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
bool | is_mutable ) |
在文件 pugixml.cpp 第 2241 行定义.
引用了 xml_memory_management_function_storage< T >::allocate.
被这些函数引用 convert_buffer() , 以及 convert_buffer_latin1().
PUGI__FN strconv_attribute_t get_strconv_attribute | ( | unsigned int | optmask | ) |
在文件 pugixml.cpp 第 3078 行定义.
引用了 PUGI__STATIC_ASSERT.
被这些函数引用 xml_parser::parse_tree().
PUGI__FN strconv_pcdata_t get_strconv_pcdata | ( | unsigned int | optmask | ) |
在文件 pugixml.cpp 第 2909 行定义.
引用了 PUGI__STATIC_ASSERT.
被这些函数引用 xml_parser::parse_tree().
在文件 pugixml.cpp 第 3853 行定义.
被这些函数引用 xml_buffered_writer::write_direct() , 以及 xml_buffered_writer::write_string().
PUGI__FN bool get_value_bool | ( | const char_t * | value | ) |
在文件 pugixml.cpp 第 4788 行定义.
PUGI__FN double get_value_double | ( | const char_t * | value | ) |
在文件 pugixml.cpp 第 4770 行定义.
PUGI__FN float get_value_float | ( | const char_t * | value | ) |
在文件 pugixml.cpp 第 4779 行定义.
PUGI__FN int get_value_int | ( | const char_t * | value | ) |
在文件 pugixml.cpp 第 4760 行定义.
PUGI__FN unsigned int get_value_uint | ( | const char_t * | value | ) |
在文件 pugixml.cpp 第 4765 行定义.
PUGI__FN bool get_variable_scratch | ( | char_t(&) | buffer[32], |
xpath_variable_set * | set, | ||
const char_t * | begin, | ||
const char_t * | end, | ||
xpath_variable ** | out_result ) |
在文件 pugixml.cpp 第 8882 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, begin(), xml_memory_management_function_storage< T >::deallocate , 以及 end().
被这些函数引用 xpath_parser::parse_primary_expression().
PUGI__FN xml_encoding get_wchar_encoding | ( | ) |
在文件 pugixml.cpp 第 2109 行定义.
引用了 is_little_endian() , 以及 PUGI__STATIC_ASSERT.
被这些函数引用 get_buffer_encoding(), get_write_encoding(), get_write_native_encoding() , 以及 zero_terminate_buffer().
PUGI__FN xml_encoding get_write_encoding | ( | xml_encoding | encoding | ) |
PUGI__FN xml_encoding get_write_native_encoding | ( | ) |
在文件 pugixml.cpp 第 3755 行定义.
引用了 get_wchar_encoding().
被这些函数引用 xml_buffered_writer::flush() , 以及 xml_buffered_writer::write_direct().
在文件 pugixml.cpp 第 2173 行定义.
引用了 parse_declaration_encoding().
被这些函数引用 get_buffer_encoding().
PUGI__FN bool has_declaration | ( | xml_node_struct * | node | ) |
在文件 pugixml.cpp 第 4518 行定义.
引用了 PUGI__NODETYPE.
PUGI__FN PUGI__UNSIGNED_OVERFLOW unsigned int hash_string | ( | const char_t * | str | ) |
在文件 pugixml.cpp 第 8773 行定义.
|
inline |
在文件 pugixml.cpp 第 1553 行定义.
|
inline |
在文件 pugixml.cpp 第 1565 行定义.
|
inline |
在文件 pugixml.cpp 第 1465 行定义.
|
inline |
在文件 pugixml.cpp 第 1482 行定义.
void insertion_sort | ( | T * | begin, |
T * | end, | ||
const Pred & | pred ) |
PUGI__FN PUGI__UNSIGNED_OVERFLOW char_t * integer_to_string | ( | char_t * | begin, |
char_t * | end, | ||
U | value, | ||
bool | negative ) |
PUGI__FN bool is_attribute_of | ( | xml_attribute_struct * | attr, |
xml_node_struct * | node ) |
在文件 pugixml.cpp 第 4531 行定义.
PUGI__FN bool is_little_endian | ( | ) |
在文件 pugixml.cpp 第 2102 行定义.
被这些函数引用 convert_buffer(), convert_buffer_output(), get_buffer_encoding(), get_wchar_encoding() , 以及 get_write_encoding().
PUGI__FN bool is_nan | ( | double | value | ) |
在文件 pugixml.cpp 第 8281 行定义.
被这些函数引用 convert_number_to_boolean() , 以及 xpath_ast_node::eval_string().
|
inline |
在文件 pugixml.cpp 第 4670 行定义.
引用了 PUGI__NODETYPE.
|
inline |
在文件 pugixml.cpp 第 8721 行定义.
引用了 PUGIXML_TEXT , 以及 starts_with().
被这些函数引用 xpath_ast_node::eval_boolean() , 以及 xpath_ast_node::step_push().
PUGI__FN xml_parse_result load_buffer_impl | ( | xml_document_struct * | doc, |
xml_node_struct * | root, | ||
void * | contents, | ||
size_t | size, | ||
unsigned int | options, | ||
xml_encoding | encoding, | ||
bool | is_mutable, | ||
bool | own, | ||
char_t ** | out_buffer ) |
在文件 pugixml.cpp 第 4880 行定义.
引用了 xml_document_struct::buffer , 以及 make_parse_result().
被这些函数引用 load_file_impl() , 以及 load_stream_impl().
PUGI__FN xml_parse_result load_file_impl | ( | xml_document_struct * | doc, |
FILE * | file, | ||
unsigned int | options, | ||
xml_encoding | encoding, | ||
char_t ** | out_buffer ) |
PUGI__FN xml_parse_status load_stream_data_noseek | ( | std::basic_istream< T > & | stream, |
void ** | out_buffer, | ||
size_t * | out_size ) |
在文件 pugixml.cpp 第 5045 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, xml_stream_chunk< T >::create(), auto_deleter< T >::data, xml_stream_chunk< T >::data, xml_stream_chunk< T >::next , 以及 xml_stream_chunk< T >::size.
被这些函数引用 load_stream_impl().
PUGI__FN xml_parse_status load_stream_data_seek | ( | std::basic_istream< T > & | stream, |
void ** | out_buffer, | ||
size_t * | out_size ) |
在文件 pugixml.cpp 第 5099 行定义.
引用了 xml_memory_management_function_storage< T >::allocate, auto_deleter< T >::data, xml_memory_management_function_storage< T >::deallocate , 以及 auto_deleter< T >::release().
被这些函数引用 load_stream_impl().
PUGI__FN xml_parse_result load_stream_impl | ( | xml_document_struct * | doc, |
std::basic_istream< T > & | stream, | ||
unsigned int | options, | ||
xml_encoding | encoding, | ||
char_t ** | out_buffer ) |
在文件 pugixml.cpp 第 5135 行定义.
引用了 get_buffer_encoding(), load_buffer_impl(), load_stream_data_noseek(), load_stream_data_seek(), make_parse_result() , 以及 zero_terminate_buffer().
PUGI__FN const char_t * local_name | ( | const xpath_node & | node | ) |
在文件 pugixml.cpp 第 8534 行定义.
引用了 find_char() , 以及 qualified_name().
被这些函数引用 xpath_ast_node::eval_string().
|
inline |
在文件 pugixml.cpp 第 3104 行定义.
被这些函数引用 load_buffer_impl(), load_file_impl(), load_stream_impl() , 以及 xml_parser::parse().
I median3 | ( | I | first, |
I | middle, | ||
I | last, | ||
const Pred & | pred ) |
I min_element | ( | I | begin, |
I | end, | ||
const Pred & | pred ) |
PUGI__FN const char_t * namespace_uri | ( | const xpath_node & | node | ) |
PUGI__FN const char_t * namespace_uri | ( | xml_attribute | attr, |
xml_node | parent ) |
在文件 pugixml.cpp 第 8583 行定义.
引用了 namespace_uri_predicate::prefix , 以及 PUGIXML_TEXT.
PUGI__FN const char_t * namespace_uri | ( | xml_node | node | ) |
在文件 pugixml.cpp 第 8565 行定义.
引用了 PUGIXML_TEXT.
被这些函数引用 xpath_ast_node::eval_string() , 以及 namespace_uri().
PUGI__FN T * new_xpath_variable | ( | const char_t * | name | ) |
在文件 pugixml.cpp 第 8792 行定义.
引用了 xml_memory_management_function_storage< T >::allocate , 以及 strlength().
PUGI__FN xpath_variable * new_xpath_variable | ( | xpath_value_type | type, |
const char_t * | name ) |
在文件 pugixml.cpp 第 8808 行定义.
PUGI__FN void node_copy_attribute | ( | xml_attribute_struct * | da, |
xml_attribute_struct * | sa ) |
在文件 pugixml.cpp 第 4661 行定义.
引用了 get_allocator(), node_copy_string(), xml_memory_page_name_allocated_mask , 以及 xml_memory_page_value_allocated_mask.
PUGI__FN void node_copy_contents | ( | xml_node_struct * | dn, |
xml_node_struct * | sn, | ||
xml_allocator * | shared_alloc ) |
在文件 pugixml.cpp 第 4598 行定义.
引用了 append_new_attribute(), get_allocator(), node_copy_string(), sn, xml_memory_page_name_allocated_mask , 以及 xml_memory_page_value_allocated_mask.
被这些函数引用 node_copy_tree().
PUGI__FN void node_copy_string | ( | String & | dest, |
Header & | header, | ||
uintptr_t | header_mask, | ||
char_t * | source, | ||
Header & | source_header, | ||
xml_allocator * | alloc ) |
在文件 pugixml.cpp 第 4579 行定义.
引用了 strcpy_insitu(), strlength() , 以及 xml_memory_page_contents_shared_mask.
被这些函数引用 node_copy_attribute() , 以及 node_copy_contents().
PUGI__FN void node_copy_tree | ( | xml_node_struct * | dn, |
xml_node_struct * | sn ) |
在文件 pugixml.cpp 第 4615 行定义.
引用了 append_new_node(), get_allocator(), node_copy_contents(), PUGI__NODETYPE , 以及 sn.
PUGI__FN bool node_is_ancestor | ( | xml_node_struct * | parent, |
xml_node_struct * | node ) |
PUGI__FN bool node_is_before | ( | xml_node_struct * | ln, |
xml_node_struct * | rn ) |
PUGI__FN bool node_is_before_sibling | ( | xml_node_struct * | ln, |
xml_node_struct * | rn ) |
PUGI__FN void node_output | ( | xml_buffered_writer & | writer, |
xml_node_struct * | root, | ||
const char_t * | indent, | ||
unsigned int | flags, | ||
unsigned int | depth ) |
在文件 pugixml.cpp 第 4425 行定义.
引用了 indent_indent, indent_newline, node_output_end(), node_output_simple(), node_output_start(), PUGI__NODETYPE, strlength(), text_output_indent() , 以及 xml_buffered_writer::write().
PUGI__FN void node_output_attributes | ( | xml_buffered_writer & | writer, |
xml_node_struct * | node, | ||
const char_t * | indent, | ||
size_t | indent_length, | ||
unsigned int | flags, | ||
unsigned int | depth ) |
在文件 pugixml.cpp 第 4264 行定义.
引用了 ctx_special_attr, PUGIXML_TEXT, text_output(), text_output_indent(), xml_buffered_writer::write() , 以及 xml_buffered_writer::write_string().
被这些函数引用 node_output_simple() , 以及 node_output_start().
PUGI__FN void node_output_comment | ( | xml_buffered_writer & | writer, |
const char_t * | s ) |
在文件 pugixml.cpp 第 4218 行定义.
引用了 xml_buffered_writer::write() , 以及 xml_buffered_writer::write_buffer().
被这些函数引用 node_output_simple().
PUGI__FN void node_output_end | ( | xml_buffered_writer & | writer, |
xml_node_struct * | node ) |
在文件 pugixml.cpp 第 4353 行定义.
引用了 PUGIXML_TEXT, xml_buffered_writer::write() , 以及 xml_buffered_writer::write_string().
被这些函数引用 node_output().
PUGI__FN void node_output_pi_value | ( | xml_buffered_writer & | writer, |
const char_t * | s ) |
在文件 pugixml.cpp 第 4243 行定义.
引用了 xml_buffered_writer::write() , 以及 xml_buffered_writer::write_buffer().
被这些函数引用 node_output_simple().
PUGI__FN void node_output_simple | ( | xml_buffered_writer & | writer, |
xml_node_struct * | node, | ||
unsigned int | flags ) |
在文件 pugixml.cpp 第 4363 行定义.
引用了 ctx_special_pcdata, node_output_attributes(), node_output_comment(), node_output_pi_value(), PUGI__NODETYPE, PUGIXML_TEXT, text_output(), text_output_cdata(), xml_buffered_writer::write() , 以及 xml_buffered_writer::write_string().
被这些函数引用 node_output().
PUGI__FN bool node_output_start | ( | xml_buffered_writer & | writer, |
xml_node_struct * | node, | ||
const char_t * | indent, | ||
size_t | indent_length, | ||
unsigned int | flags, | ||
unsigned int | depth ) |
在文件 pugixml.cpp 第 4291 行定义.
引用了 ctx_special_pcdata, node_output_attributes(), PUGIXML_TEXT, text_output(), xml_buffered_writer::write() , 以及 xml_buffered_writer::write_string().
被这些函数引用 node_output().
PUGI__FN char_t * normalize_space | ( | char_t * | buffer | ) |
在文件 pugixml.cpp 第 8609 行定义.
引用了 ct_space , 以及 PUGI__IS_CHARTYPE.
被这些函数引用 xpath_ast_node::eval_string().
PUGI__FN FILE * open_file_wide | ( | const wchar_t * | path, |
const wchar_t * | mode ) |
在文件 pugixml.cpp 第 5188 行定义.
引用了 convert_path_heap() , 以及 xml_memory_management_function_storage< T >::deallocate.
PUGI__FN bool parse_declaration_encoding | ( | const uint8_t * | data, |
size_t | size, | ||
const uint8_t *& | out_encoding, | ||
size_t & | out_length ) |
在文件 pugixml.cpp 第 2119 行定义.
引用了 ct_space, ct_symbol, PUGI__IS_CHARTYPE, PUGI__SCANCHAR , 以及 PUGI__SCANCHARTYPE.
被这些函数引用 guess_buffer_encoding().
void partition3 | ( | T * | begin, |
T * | end, | ||
T | pivot, | ||
const Pred & | pred, | ||
T ** | out_eqbeg, | ||
T ** | out_eqend ) |
|
inline |
在文件 pugixml.cpp 第 1537 行定义.
|
inline |
在文件 pugixml.cpp 第 1447 行定义.
PUGI__FN const char_t * qualified_name | ( | const xpath_node & | node | ) |
|
inline |
在文件 pugixml.cpp 第 1577 行定义.
|
inline |
在文件 pugixml.cpp 第 1499 行定义.
void reverse | ( | I | begin, |
I | end ) |
在文件 pugixml.cpp 第 7553 行定义.
引用了 begin(), end() , 以及 swap().
被这些函数引用 pugi::xpath_node_set::sort() , 以及 xpath_sort().
PUGI__FN double round_nearest | ( | double | value | ) |
PUGI__FN double round_nearest_nzero | ( | double | value | ) |
PUGI__FN bool save_file_impl | ( | const xml_document & | doc, |
FILE * | file, | ||
const char_t * | indent, | ||
unsigned int | flags, | ||
xml_encoding | encoding ) |
在文件 pugixml.cpp 第 5208 行定义.
PUGI__FN bool set_value_ascii | ( | String & | dest, |
Header & | header, | ||
uintptr_t | header_mask, | ||
char * | buf ) |
在文件 pugixml.cpp 第 4831 行定义.
引用了 strcpy_insitu().
被这些函数引用 set_value_convert() , 以及 set_value_convert().
void sort | ( | I | begin, |
I | end, | ||
const Pred & | pred ) |
在文件 pugixml.cpp 第 7639 行定义.
引用了 begin(), end(), insertion_sort(), median3(), partition3() , 以及 sort().
被这些函数引用 xpath_node_set_raw::remove_duplicates(), sort() , 以及 xpath_sort().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN bool starts_with | ( | const char_t * | string, |
const char_t * | pattern ) |
在文件 pugixml.cpp 第 8008 行定义.
被这些函数引用 xpath_ast_node::eval_boolean(), is_xpath_attribute(), namespace_uri_predicate::operator()(), xpath_ast_node::step_push() , 以及 xpath_ast_node::step_push().
PUGI__FN char_t * strconv_cdata | ( | char_t * | s, |
char_t | endch ) |
在文件 pugixml.cpp 第 2828 行定义.
引用了 ct_parse_cdata, gap::flush(), PUGI__ENDSWITH, PUGI__IS_CHARTYPE, PUGI__SCANWHILE_UNROLL , 以及 gap::push().
被这些函数引用 xml_parser::parse_exclamation().
PUGI__FN char_t * strconv_comment | ( | char_t * | s, |
char_t | endch ) |
在文件 pugixml.cpp 第 2800 行定义.
引用了 ct_parse_comment, gap::flush(), PUGI__ENDSWITH, PUGI__IS_CHARTYPE, PUGI__SCANWHILE_UNROLL , 以及 gap::push().
被这些函数引用 xml_parser::parse_exclamation().
在文件 pugixml.cpp 第 2647 行定义.
引用了 utf8_writer::any() , 以及 gap::push().
被这些函数引用 strconv_pcdata_impl< opt_trim, opt_eol, opt_escape >::parse(), strconv_attribute_impl< opt_escape >::parse_eol(), strconv_attribute_impl< opt_escape >::parse_simple(), strconv_attribute_impl< opt_escape >::parse_wconv() , 以及 strconv_attribute_impl< opt_escape >::parse_wnorm().
PUGI__FN bool strcpy_insitu | ( | String & | dest, |
Header & | header, | ||
uintptr_t | header_mask, | ||
const char_t * | source, | ||
size_t | source_length ) |
在文件 pugixml.cpp 第 2557 行定义.
引用了 xml_allocator::allocate_string(), xml_allocator::deallocate_string(), PUGI__GETPAGE_IMPL, xml_allocator::reserve() , 以及 strcpy_insitu_allow().
被这些函数引用 node_copy_string(), set_value_ascii(), set_value_bool() , 以及 set_value_integer().
|
inline |
在文件 pugixml.cpp 第 2540 行定义.
引用了 strlength() , 以及 xml_memory_page_contents_shared_mask.
被这些函数引用 strcpy_insitu().
PUGI__FN bool strequal | ( | const char_t * | src, |
const char_t * | dst ) |
在文件 pugixml.cpp 第 265 行定义.
被这些函数引用 xpath_ast_node::eval_boolean(), xpath_string::operator!=(), xpath_string::operator==(), xpath_ast_node::step_push() , 以及 xpath_ast_node::step_push().
在文件 pugixml.cpp 第 278 行定义.
被这些函数引用 namespace_uri_predicate::operator()() , 以及 xpath_lexer_string::operator==().
PUGI__FN PUGI__UNSIGNED_OVERFLOW U string_to_integer | ( | const char_t * | value, |
U | minv, | ||
U | maxv ) |
在文件 pugixml.cpp 第 4678 行定义.
引用了 ct_space, PUGI__IS_CHARTYPE , 以及 PUGI__STATIC_ASSERT.
PUGI__FN xpath_string string_value | ( | const xpath_node & | na, |
xpath_allocator * | alloc ) |
在文件 pugixml.cpp 第 8044 行定义.
引用了 xpath_string::append() , 以及 xpath_string::from_const().
被这些函数引用 xpath_ast_node::compare_eq(), xpath_ast_node::compare_rel(), xpath_ast_node::eval_number(), xpath_ast_node::eval_string() , 以及 carla::opendrive::parser::ParseDouble().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN size_t strlength | ( | const char_t * | s | ) |
在文件 pugixml.cpp 第 252 行定义.
被这些函数引用 xpath_string::data(), xpath_string::length(), new_xpath_variable(), node_copy_string(), node_output(), strcpy_insitu_allow() , 以及 xml_buffered_writer::write_string().
void swap | ( | T & | lhs, |
T & | rhs ) |
在文件 pugixml.cpp 第 7535 行定义.
被这些函数引用 xpath_ast_node::compare_eq(), median3(), partition3() , 以及 reverse().
PUGI__FN void text_output | ( | xml_buffered_writer & | writer, |
const char_t * | s, | ||
chartypex_t | type, | ||
unsigned int | flags ) |
在文件 pugixml.cpp 第 4148 行定义.
引用了 text_output_escaped() , 以及 xml_buffered_writer::write_string().
被这些函数引用 node_output_attributes(), node_output_simple() , 以及 node_output_start().
PUGI__FN void text_output_cdata | ( | xml_buffered_writer & | writer, |
const char_t * | s ) |
在文件 pugixml.cpp 第 4156 行定义.
引用了 xml_buffered_writer::write() , 以及 xml_buffered_writer::write_buffer().
被这些函数引用 node_output_simple().
PUGI__FN void text_output_escaped | ( | xml_buffered_writer & | writer, |
const char_t * | s, | ||
chartypex_t | type ) |
在文件 pugixml.cpp 第 4107 行定义.
引用了 PUGI__IS_CHARTYPEX, PUGI__SCANWHILE_UNROLL, xml_buffered_writer::write() , 以及 xml_buffered_writer::write_buffer().
被这些函数引用 text_output().
PUGI__FN void text_output_indent | ( | xml_buffered_writer & | writer, |
const char_t * | indent, | ||
size_t | indent_length, | ||
unsigned int | depth ) |
在文件 pugixml.cpp 第 4178 行定义.
引用了 xml_buffered_writer::write() , 以及 xml_buffered_writer::write_buffer().
被这些函数引用 node_output() , 以及 node_output_attributes().
PUGI__FN char_t tolower_ascii | ( | char_t | ch | ) |
PUGI__FN char_t * translate | ( | char_t * | buffer, |
const char_t * | from, | ||
const char_t * | to, | ||
size_t | to_length ) |
在文件 pugixml.cpp 第 8637 行定义.
引用了 find_char() , 以及 PUGI__DMC_VOLATILE.
被这些函数引用 xpath_ast_node::eval_string().
PUGI__FN char_t * translate_table | ( | char_t * | buffer, |
const unsigned char * | table ) |
PUGI__FN unsigned char * translate_table_generate | ( | xpath_allocator * | alloc, |
const char_t * | from, | ||
const char_t * | to ) |
在文件 pugixml.cpp 第 8659 行定义.
引用了 xpath_allocator::allocate().
被这些函数引用 xpath_ast_node::optimize_self().
PUGI__FN void truncate_zeros | ( | char * | begin, |
char * | end ) |
I unique | ( | I | begin, |
I | end ) |
PUGI__FN xpath_node xpath_first | ( | const xpath_node * | begin, |
const xpath_node * | end, | ||
xpath_node_set::type_t | type ) |
在文件 pugixml.cpp 第 8948 行定义.
引用了 begin(), end() , 以及 min_element().
被这些函数引用 xpath_node_set_raw::first().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN xpath_node_set::type_t xpath_get_order | ( | const xpath_node * | begin, |
const xpath_node * | end ) |
PUGI__FN xpath_node_set::type_t xpath_sort | ( | xpath_node * | begin, |
xpath_node * | end, | ||
xpath_node_set::type_t | type, | ||
bool | rev ) |
在文件 pugixml.cpp 第 8925 行定义.
引用了 begin(), end(), reverse(), sort() , 以及 xpath_get_order().
被这些函数引用 xpath_node_set_raw::sort_do().
在文件 pugixml.cpp 第 4953 行定义.
引用了 get_wchar_encoding().
被这些函数引用 load_file_impl() , 以及 load_stream_impl().
|
static |
在文件 pugixml.cpp 第 2041 行定义.
|
static |
在文件 pugixml.cpp 第 2071 行定义.
|
static |
在文件 pugixml.cpp 第 8771 行定义.
|
static |
在文件 pugixml.cpp 第 518 行定义.
被这些函数引用 xml_allocator::allocate_string() , 以及 xml_allocator::deallocate_string().
|
static |
在文件 pugixml.cpp 第 522 行定义.
被这些函数引用 document_buffer_order(), node_copy_string() , 以及 strcpy_insitu_allow().
|
static |
在文件 pugixml.cpp 第 523 行定义.
被这些函数引用 node_copy_attribute() , 以及 node_copy_contents().
|
static |
在文件 pugixml.cpp 第 528 行定义.
|
static |
在文件 pugixml.cpp 第 589 行定义.
被这些函数引用 xml_allocator::allocate_memory(), xml_allocator::allocate_memory_oob() , 以及 xml_allocator::allocate_string().
|
static |
在文件 pugixml.cpp 第 525 行定义.
|
static |
在文件 pugixml.cpp 第 524 行定义.
被这些函数引用 node_copy_attribute() , 以及 node_copy_contents().
|
static |
在文件 pugixml.cpp 第 529 行定义.
|
static |
在文件 pugixml.cpp 第 7680 行定义.
被这些函数引用 xpath_allocator::allocate() , 以及 xpath_allocator::reallocate().
|
static |
在文件 pugixml.cpp 第 7672 行定义.