ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include "etiss/fault/xml/pugixml.hpp"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <istream>
#include <ostream>
#include <string>
#include <new>
#include <stdint.h>
Go to the source code of this file.
Namespaces | |
pugi | |
Macros | |
#define | SOURCE_PUGIXML_CPP |
pugixml parser - version 1.4 -------------------------------------------------------- Copyright (C) 2006-2014, by Arseny Kapoulkine (arsen) Report bugs and download new versions at y.ka poulk ine@ gmail .comhttp://pugixml.org/ More... | |
#define | PUGI__NO_INLINE |
#define | PUGI__STATIC_ASSERT(cond) |
#define | PUGI__DMC_VOLATILE |
#define | PUGI__NS_BEGIN |
#define | PUGI__NS_END |
#define | PUGI__FN |
#define | PUGI__FN_NO_INLINE PUGI__NO_INLINE |
#define | PUGI__IS_CHARTYPE_IMPL(c, ct, table) (table[static_cast<unsigned char>(c)] & (ct)) |
#define | PUGI__IS_CHARTYPE(c, ct) PUGI__IS_CHARTYPE_IMPL(c, ct, chartype_table) |
#define | PUGI__IS_CHARTYPEX(c, ct) PUGI__IS_CHARTYPE_IMPL(c, ct, chartypex_table) |
#define | ENDSWITH(c, e) ((c) == (e) || ((c) == 0 && endch == (e))) |
#define | PUGI__SKIPWS() |
#define | PUGI__OPTSET(OPT) (optmsk & (OPT)) |
#define | PUGI__PUSHNODE(TYPE) |
#define | PUGI__POPNODE() |
#define | PUGI__SCANFOR(X) |
#define | PUGI__SCANWHILE(X) |
#define | PUGI__ENDSEG() |
#define | PUGI__THROW_ERROR(err, m) return error_offset = m, error_status = err, static_cast<char_t *>(0) |
#define | PUGI__CHECK_ERROR(err, m) |
Typedefs | |
typedef xml_memory_management_function_storage< int > | xml_memory |
typedef wchar_selector< sizeof(wchar_t)>::counter | wchar_counter |
typedef wchar_selector< sizeof(wchar_t)>::writer | wchar_writer |
typedef char_t *(* | strconv_pcdata_t) (char_t *) |
typedef char_t *(* | strconv_attribute_t) (char_t *, char_t) |
Functions | |
PUGI__NS_BEGIN PUGI__FN void * | default_allocate (size_t size) |
PUGI__FN void | default_deallocate (void *ptr) |
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN size_t | strlength (const char_t *s) |
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) |
PUGI__FN size_t | strlength_wide (const wchar_t *s) |
xml_allocator & | get_allocator (const xml_node_struct *node) |
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) |
void | destroy_attribute (xml_attribute_struct *a, xml_allocator &alloc) |
void | destroy_node (xml_node_struct *n, xml_allocator &alloc) |
PUGI__FN_NO_INLINE xml_node_struct * | append_node (xml_node_struct *node, xml_allocator &alloc, xml_node_type type=node_element) |
PUGI__FN_NO_INLINE xml_attribute_struct * | append_attribute_ll (xml_node_struct *node, xml_allocator &alloc) |
PUGI__NS_END PUGI__NS_BEGIN uint16_t | endian_swap (uint16_t value) |
uint32_t | endian_swap (uint32_t value) |
template<typename T > | |
PUGI__FN void | convert_utf_endian_swap (T *result, const T *data, size_t length) |
PUGI__FN bool | is_little_endian () |
PUGI__FN xml_encoding | get_wchar_encoding () |
PUGI__FN xml_encoding | guess_buffer_encoding (uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) |
PUGI__FN xml_encoding | get_buffer_encoding (xml_encoding encoding, const void *contents, size_t size) |
PUGI__FN bool | get_mutable_buffer (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, bool is_mutable) |
template<typename opt_swap > | |
PUGI__FN bool | convert_buffer_utf16 (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, opt_swap) |
template<typename opt_swap > | |
PUGI__FN bool | convert_buffer_utf32 (char_t *&out_buffer, size_t &out_length, const void *contents, size_t size, opt_swap) |
PUGI__FN size_t | get_latin1_7bit_prefix_length (const uint8_t *data, size_t size) |
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 bool | convert_buffer (char_t *&out_buffer, size_t &out_length, xml_encoding encoding, const void *contents, size_t size, bool is_mutable) |
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 > | as_wide_impl (const char *str, size_t size) |
bool | strcpy_insitu_allow (size_t length, uintptr_t allocated, char_t *target) |
PUGI__FN bool | strcpy_insitu (char_t *&dest, uintptr_t &header, uintptr_t header_mask, const char_t *source) |
PUGI__FN char_t * | strconv_escape (char_t *s, gap &g) |
PUGI__FN char_t * | strconv_comment (char_t *s, char_t endch) |
PUGI__FN char_t * | strconv_cdata (char_t *s, char_t endch) |
PUGI__FN strconv_pcdata_t | get_strconv_pcdata (unsigned int optmask) |
PUGI__FN strconv_attribute_t | get_strconv_attribute (unsigned int optmask) |
xml_parse_result | make_parse_result (xml_parse_status status, ptrdiff_t offset=0) |
PUGI__FN xml_encoding | get_write_native_encoding () |
PUGI__FN xml_encoding | get_write_encoding (xml_encoding encoding) |
PUGI__FN size_t | get_valid_length (const char_t *data, size_t length) |
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) |
PUGI__FN void | text_output_escaped (xml_buffered_writer &writer, const char_t *s, chartypex_t type) |
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 | node_output_attributes (xml_buffered_writer &writer, const xml_node &node, unsigned int flags) |
PUGI__FN void | node_output (xml_buffered_writer &writer, const xml_node &node, const char_t *indent, unsigned int flags, unsigned int depth) |
bool | has_declaration (const xml_node &node) |
bool | allow_insert_child (xml_node_type parent, xml_node_type child) |
PUGI__FN void | recursive_copy_skip (xml_node &dest, const xml_node &source, const xml_node &skip) |
bool | is_text_node (xml_node_struct *node) |
PUGI__FN int | get_integer_base (const char_t *value) |
PUGI__FN int | get_value_int (const char_t *value, int def) |
PUGI__FN unsigned int | get_value_uint (const char_t *value, unsigned int def) |
PUGI__FN double | get_value_double (const char_t *value, double def) |
PUGI__FN float | get_value_float (const char_t *value, float def) |
PUGI__FN bool | get_value_bool (const char_t *value, bool def) |
PUGI__FN bool | set_value_buffer (char_t *&dest, uintptr_t &header, uintptr_t header_mask, char(&buf)[128]) |
PUGI__FN bool | set_value_convert (char_t *&dest, uintptr_t &header, uintptr_t header_mask, int value) |
PUGI__FN bool | set_value_convert (char_t *&dest, uintptr_t &header, uintptr_t header_mask, unsigned int value) |
PUGI__FN bool | set_value_convert (char_t *&dest, uintptr_t &header, uintptr_t header_mask, double value) |
PUGI__FN bool | set_value_convert (char_t *&dest, uintptr_t &header, uintptr_t header_mask, bool value) |
PUGI__FN xml_parse_status | get_file_size (FILE *file, size_t &out_result) |
PUGI__FN size_t | zero_terminate_buffer (void *buffer, size_t size, xml_encoding encoding) |
PUGI__FN xml_parse_result | load_file_impl (xml_document &doc, FILE *file, unsigned int options, xml_encoding encoding) |
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 &doc, std::basic_istream< T > &stream, unsigned int options, xml_encoding encoding) |
PUGI__FN char * | convert_path_heap (const wchar_t *str) |
PUGI__FN FILE * | open_file_wide (const wchar_t *path, const wchar_t *mode) |
PUGI__FN bool | save_file_impl (const xml_document &doc, FILE *file, const char_t *indent, unsigned int flags, xml_encoding encoding) |
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) |
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 ***) |
std::basic_string< char, std::char_traits< char >, std::allocator< char > > PUGIXML_FUNCTION | pugi::as_utf8 (const wchar_t *str) |
PUGI__FN std::string PUGIXML_FUNCTION | pugi::as_utf8 (const std::basic_string< wchar_t > &str) |
std::basic_string< wchar_t, std::char_traits< wchar_t >, std::allocator< 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) |
void PUGIXML_FUNCTION | pugi::set_memory_management_functions (allocation_function allocate, deallocation_function deallocate) |
allocation_function PUGIXML_FUNCTION | pugi::get_memory_allocation_function () |
deallocation_function PUGIXML_FUNCTION | pugi::get_memory_deallocation_function () |
template<typename T > | |
void | swap (T &lhs, T &rhs) |
template<typename I , typename Pred > | |
I | min_element (I begin, I end, const Pred &pred) |
template<typename I > | |
void | reverse (I begin, I end) |
template<typename I > | |
I | unique (I begin, I end) |
template<typename I > | |
void | copy_backwards (I begin, I end, I target) |
template<typename I , typename Pred , typename T > | |
void | insertion_sort (I begin, I end, const Pred &pred, T *) |
template<typename I , typename Pred > | |
void | partition (I begin, I middle, I end, const Pred &pred, I *out_eqbeg, I *out_eqend) |
template<typename I , typename Pred > | |
void | median3 (I first, I middle, I last, const Pred &pred) |
template<typename I , typename Pred > | |
void | median (I first, I middle, I last, const Pred &pred) |
template<typename I , typename Pred > | |
void | sort (I begin, I end, const Pred &pred) |
PUGI__FN xpath_string | xpath_string_const (const char_t *str) |
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN bool | starts_with (const char_t *string, const char_t *pattern) |
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 char_t | tolower_ascii (char_t ch) |
PUGI__FN xpath_string | string_value (const xpath_node &na, xpath_allocator *alloc) |
PUGI__FN unsigned int | node_height (xml_node n) |
PUGI__FN bool | node_is_before (xml_node ln, unsigned int lh, xml_node rn, unsigned int rh) |
PUGI__FN bool | node_is_ancestor (xml_node parent, xml_node node) |
PUGI__FN const void * | document_order (const xpath_node &xnode) |
PUGI__FN double | gen_nan () |
PUGI__FN bool | is_nan (double value) |
PUGI__FN const char_t * | convert_number_to_string_special (double value) |
PUGI__FN bool | convert_number_to_boolean (double value) |
PUGI__FN void | truncate_zeros (char *begin, char *end) |
PUGI__FN void | convert_number_to_mantissa_exponent (double value, char *buffer, size_t buffer_size, char **out_mantissa, int *out_exponent) |
PUGI__FN xpath_string | convert_number_to_string (double value, xpath_allocator *alloc) |
PUGI__FN bool | check_string_to_number_format (const char_t *string) |
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 double | round_nearest (double value) |
PUGI__FN double | round_nearest_nzero (double value) |
PUGI__FN const char_t * | qualified_name (const xpath_node &node) |
PUGI__FN const char_t * | local_name (const xpath_node &node) |
PUGI__FN const char_t * | namespace_uri (const xml_node &node) |
PUGI__FN const char_t * | namespace_uri (const xml_attribute &attr, const xml_node &parent) |
PUGI__FN const char_t * | namespace_uri (const xpath_node &node) |
PUGI__FN void | normalize_space (char_t *buffer) |
PUGI__FN void | translate (char_t *buffer, const char_t *from, const char_t *to) |
PUGI__FN unsigned int | hash_string (const char_t *str) |
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) |
template<typename T > | |
PUGI__FN void | delete_xpath_variable (T *var) |
PUGI__FN void | delete_xpath_variable (xpath_value_type type, xpath_variable *var) |
PUGI__FN xpath_variable * | get_variable_scratch (char_t(&buffer)[32], xpath_variable_set *set, const char_t *begin, const char_t *end) |
PUGI__NS_END PUGI__NS_BEGIN 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 xpath_node | xpath_first (const xpath_node *begin, const xpath_node *end, xpath_node_set::type_t type) |
PUGI__FN xpath_string | evaluate_string_impl (xpath_query_impl *impl, const xpath_node &n, xpath_stack_data &sd) |
static PUGI__FN void | pugi::unspecified_bool_xpath_node (xpath_node ***) |
static PUGI__FN void | pugi::unspecified_bool_xpath_query (xpath_query ***) |
Variables | |
PUGI__NS_END static PUGI__NS_BEGIN const size_t | xml_memory_page_size |
static const uintptr_t | xml_memory_page_alignment = 32 |
static const uintptr_t | xml_memory_page_pointer_mask = ~(xml_memory_page_alignment - 1) |
static const uintptr_t | xml_memory_page_name_allocated_mask = 16 |
static const uintptr_t | xml_memory_page_value_allocated_mask = 8 |
static const uintptr_t | xml_memory_page_type_mask = 7 |
static const unsigned char | chartype_table [256] |
static const unsigned char | chartypex_table [256] |
static const xpath_node_set | dummy_node_set |
Definition at line 1933 of file pugixml.cpp.
#define PUGI__CHECK_ERROR | ( | err, | |
m | |||
) |
Definition at line 2342 of file pugixml.cpp.
#define PUGI__DMC_VOLATILE |
Definition at line 102 of file pugixml.cpp.
#define PUGI__ENDSEG | ( | ) |
Definition at line 2335 of file pugixml.cpp.
#define PUGI__FN |
Definition at line 153 of file pugixml.cpp.
#define PUGI__FN_NO_INLINE PUGI__NO_INLINE |
Definition at line 154 of file pugixml.cpp.
#define PUGI__IS_CHARTYPE | ( | c, | |
ct | |||
) | PUGI__IS_CHARTYPE_IMPL(c, ct, chartype_table) |
Definition at line 1183 of file pugixml.cpp.
Definition at line 1180 of file pugixml.cpp.
#define PUGI__IS_CHARTYPEX | ( | c, | |
ct | |||
) | PUGI__IS_CHARTYPE_IMPL(c, ct, chartypex_table) |
Definition at line 1184 of file pugixml.cpp.
#define PUGI__NO_INLINE |
Definition at line 88 of file pugixml.cpp.
#define PUGI__NS_BEGIN |
Definition at line 141 of file pugixml.cpp.
#define PUGI__NS_END |
Definition at line 148 of file pugixml.cpp.
#define PUGI__OPTSET | ( | OPT | ) | (optmsk & (OPT)) |
Definition at line 2314 of file pugixml.cpp.
#define PUGI__POPNODE | ( | ) |
Definition at line 2321 of file pugixml.cpp.
#define PUGI__PUSHNODE | ( | TYPE | ) |
Definition at line 2315 of file pugixml.cpp.
#define PUGI__SCANFOR | ( | X | ) |
Definition at line 2325 of file pugixml.cpp.
#define PUGI__SCANWHILE | ( | X | ) |
Definition at line 2330 of file pugixml.cpp.
#define PUGI__SKIPWS | ( | ) |
Definition at line 2309 of file pugixml.cpp.
#define PUGI__STATIC_ASSERT | ( | cond | ) |
Definition at line 92 of file pugixml.cpp.
#define PUGI__THROW_ERROR | ( | err, | |
m | |||
) | return error_offset = m, error_status = err, static_cast<char_t *>(0) |
Definition at line 2341 of file pugixml.cpp.
#define SOURCE_PUGIXML_CPP |
pugixml parser - version 1.4 -------------------------------------------------------- Copyright (C) 2006-2014, by Arseny Kapoulkine (arsen) Report bugs and download new versions at y.ka poulk ine@ gmail .comhttp://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) en@t ima.n et
Definition at line 15 of file pugixml.cpp.
typedef char_t*(* strconv_attribute_t) (char_t *, char_t) |
Definition at line 2082 of file pugixml.cpp.
typedef char_t*(* strconv_pcdata_t) (char_t *) |
Definition at line 1997 of file pugixml.cpp.
typedef wchar_selector<sizeof(wchar_t)>::counter wchar_counter |
Definition at line 926 of file pugixml.cpp.
typedef wchar_selector<sizeof(wchar_t)>::writer wchar_writer |
Definition at line 927 of file pugixml.cpp.
Definition at line 197 of file pugixml.cpp.
enum ast_type_t |
Definition at line 8173 of file pugixml.cpp.
enum axis_t |
Definition at line 8236 of file pugixml.cpp.
enum chartype_t |
Enumerator | |
---|---|
ct_parse_pcdata | |
ct_parse_attr | |
ct_parse_attr_ws | |
ct_space | |
ct_parse_cdata | |
ct_parse_comment | |
ct_symbol | |
ct_start_symbol |
Definition at line 1119 of file pugixml.cpp.
enum chartypex_t |
Enumerator | |
---|---|
ctx_special_pcdata | |
ctx_special_attr | |
ctx_start_symbol | |
ctx_digit | |
ctx_symbol |
Definition at line 1149 of file pugixml.cpp.
enum lexeme_t |
Definition at line 7823 of file pugixml.cpp.
enum nodetest_t |
Enumerator | |
---|---|
nodetest_none | |
nodetest_name | |
nodetest_type_node | |
nodetest_type_comment | |
nodetest_type_pi | |
nodetest_type_text | |
nodetest_pi | |
nodetest_all | |
nodetest_all_in_namespace |
Definition at line 8253 of file pugixml.cpp.
|
inline |
Definition at line 600 of file pugixml.cpp.
References xml_allocator::allocate_memory().
Referenced by append_attribute_ll(), pugi::xml_node::insert_attribute_after(), pugi::xml_node::insert_attribute_before(), and pugi::xml_node::prepend_attribute().
|
inline |
Definition at line 608 of file pugixml.cpp.
References xml_allocator::allocate_memory(), and get_metrics::type.
Referenced by append_node(), pugi::xml_node::insert_child_after(), pugi::xml_node::insert_child_before(), and pugi::xml_node::prepend_child().
|
inline |
Definition at line 3640 of file pugixml.cpp.
References pugi::node_declaration, pugi::node_doctype, pugi::node_document, pugi::node_element, and pugi::node_null.
Referenced by pugi::xml_node::append_buffer(), pugi::xml_node::append_child(), pugi::xml_node::insert_child_after(), pugi::xml_node::insert_child_before(), and pugi::xml_node::prepend_child().
PUGI__FN_NO_INLINE xml_attribute_struct* append_attribute_ll | ( | xml_node_struct * | node, |
xml_allocator & | alloc | ||
) |
Definition at line 688 of file pugixml.cpp.
References allocate_attribute().
Referenced by pugi::xml_node::append_attribute(), and xml_parser::parse_tree().
PUGI__FN_NO_INLINE xml_node_struct* append_node | ( | xml_node_struct * | node, |
xml_allocator & | alloc, | ||
xml_node_type | type = node_element |
||
) |
Definition at line 660 of file pugixml.cpp.
References allocate_node(), and get_metrics::type.
Referenced by pugi::xml_node::append_child().
Definition at line 1622 of file pugixml.cpp.
References utf_decoder< Traits, opt_swap >::decode_wchar_block(), length(), and get_metrics::str.
Referenced by as_utf8_impl(), and convert_path_heap().
Definition at line 1628 of file pugixml.cpp.
References utf_decoder< Traits, opt_swap >::decode_wchar_block(), length(), get_metrics::str, and uint8_t.
Referenced by as_utf8_impl(), and convert_path_heap().
Definition at line 1642 of file pugixml.cpp.
References as_utf8_begin(), as_utf8_end(), length(), and get_metrics::str.
Referenced by pugi::as_utf8().
Definition at line 1658 of file pugixml.cpp.
References utf_decoder< Traits, opt_swap >::decode_utf8_block(), length(), get_metrics::str, and uint8_t.
Referenced by pugi::as_wide().
Definition at line 7300 of file pugixml.cpp.
References ct_space, ctx_digit, PUGI__IS_CHARTYPE, and PUGI__IS_CHARTYPEX.
Referenced by convert_string_to_number().
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 | ||
) |
Definition at line 1588 of file pugixml.cpp.
References convert_buffer_latin1(), convert_buffer_utf16(), convert_buffer_utf32(), pugi::encoding_latin1, pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32_be, pugi::encoding_utf32_le, pugi::encoding_utf8, get_mutable_buffer(), and is_little_endian().
Referenced by load_buffer_impl().
PUGI__FN bool convert_buffer_latin1 | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
bool | is_mutable | ||
) |
Definition at line 1548 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, utf_decoder< Traits, opt_swap >::decode_latin1_block(), get_latin1_7bit_prefix_length(), get_mutable_buffer(), length(), memcpy(), and uint8_t.
Referenced by 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 | ||
) |
Definition at line 3165 of file pugixml.cpp.
References convert_utf_endian_swap(), utf_decoder< Traits, opt_swap >::decode_utf8_block(), pugi::encoding_latin1, pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32_be, pugi::encoding_utf32_le, is_little_endian(), length(), uint16_t, uint32_t, and uint8_t.
Referenced by xml_buffered_writer::flush().
PUGI__FN bool convert_buffer_utf16 | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
opt_swap | |||
) |
Definition at line 1486 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, utf_decoder< Traits, opt_swap >::decode_utf16_block(), length(), uint16_t, and uint8_t.
Referenced by convert_buffer().
PUGI__FN bool convert_buffer_utf32 | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
opt_swap | |||
) |
Definition at line 1513 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, utf_decoder< Traits, opt_swap >::decode_utf32_block(), length(), uint32_t, and uint8_t.
Referenced by convert_buffer().
Definition at line 7169 of file pugixml.cpp.
References is_nan().
Referenced by xpath_ast_node::eval_boolean().
PUGI__FN void convert_number_to_mantissa_exponent | ( | double | value, |
char * | buffer, | ||
size_t | buffer_size, | ||
char ** | out_mantissa, | ||
int * | out_exponent | ||
) |
Definition at line 7199 of file pugixml.cpp.
References DBL_DIG, and truncate_zeros().
Referenced by convert_number_to_string().
PUGI__FN xpath_string convert_number_to_string | ( | double | value, |
xpath_allocator * | alloc | ||
) |
Definition at line 7231 of file pugixml.cpp.
References xpath_allocator::allocate(), convert_number_to_mantissa_exponent(), convert_number_to_string_special(), s, and xpath_string_const().
Referenced by xpath_ast_node::eval_string().
Definition at line 7132 of file pugixml.cpp.
References fpclassify(), PUGIXML_TEXT, and v.
Referenced by convert_number_to_string().
Definition at line 4179 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, as_utf8_begin(), as_utf8_end(), length(), get_metrics::str, and strlength_wide().
Referenced by open_file_wide().
Definition at line 7337 of file pugixml.cpp.
References check_string_to_number_format(), and gen_nan().
Referenced by xpath_ast_node::compare_eq(), xpath_ast_node::compare_rel(), convert_string_to_number_scratch(), and 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 | ||
) |
Definition at line 7351 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, convert_string_to_number(), xml_memory_management_function_storage< T >::deallocate, length(), and memcpy().
Referenced by xpath_parser::parse_primary_expression().
PUGI__FN void convert_utf_endian_swap | ( | T * | result, |
const T * | data, | ||
size_t | length | ||
) |
Definition at line 1103 of file pugixml.cpp.
References endian_swap(), and length().
Referenced by convert_buffer_output().
void copy_backwards | ( | I | begin, |
I | end, | ||
I | target | ||
) |
Definition at line 6377 of file pugixml.cpp.
Referenced by insertion_sort().
PUGI__NS_BEGIN PUGI__FN void* default_allocate | ( | size_t | size | ) |
Definition at line 175 of file pugixml.cpp.
PUGI__FN void default_deallocate | ( | void * | ptr | ) |
Definition at line 180 of file pugixml.cpp.
PUGI__FN void delete_xpath_variable | ( | T * | var | ) |
Definition at line 7624 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::deallocate.
Referenced by delete_xpath_variable(), and pugi::xpath_variable_set::~xpath_variable_set().
PUGI__FN void delete_xpath_variable | ( | xpath_value_type | type, |
xpath_variable * | var | ||
) |
Definition at line 7630 of file pugixml.cpp.
References delete_xpath_variable(), get_metrics::type, pugi::xpath_type_boolean, pugi::xpath_type_node_set, pugi::xpath_type_number, and pugi::xpath_type_string.
|
inline |
Definition at line 616 of file pugixml.cpp.
References xml_allocator::deallocate_memory(), xml_allocator::deallocate_string(), xml_memory_page_name_allocated_mask, xml_memory_page_pointer_mask, and xml_memory_page_value_allocated_mask.
Referenced by destroy_node(), and pugi::xml_node::remove_attribute().
|
inline |
Definition at line 629 of file pugixml.cpp.
References xml_allocator::deallocate_memory(), xml_allocator::deallocate_string(), destroy_attribute(), xml_memory_page_name_allocated_mask, xml_memory_page_pointer_mask, and xml_memory_page_value_allocated_mask.
Referenced by pugi::xml_node::remove_child().
PUGI__FN const void* document_order | ( | const xpath_node & | xnode | ) |
Definition at line 7006 of file pugixml.cpp.
References xml_memory_page_name_allocated_mask, and xml_memory_page_value_allocated_mask.
Referenced by document_order_comparator::operator()().
|
inline |
Definition at line 735 of file pugixml.cpp.
References uint16_t.
Referenced by convert_utf_endian_swap(), utf_decoder< Traits, opt_swap >::decode_utf16_block(), and utf_decoder< Traits, opt_swap >::decode_utf32_block().
Definition at line 740 of file pugixml.cpp.
PUGI__FN xpath_string evaluate_string_impl | ( | xpath_query_impl * | impl, |
const xpath_node & | n, | ||
xpath_stack_data & | sd | ||
) |
Definition at line 10576 of file pugixml.cpp.
References c, xpath_ast_node::eval_string(), xpath_query_impl::root, and xpath_stack_data::stack.
Referenced by pugi::xpath_query::evaluate_string().
PUGI__FN const char_t* find_char | ( | const char_t * | s, |
char_t | c | ||
) |
Definition at line 6878 of file pugixml.cpp.
Referenced by local_name(), namespace_uri_predicate::namespace_uri_predicate(), and translate().
PUGI__FN const char_t* find_substring | ( | const char_t * | s, |
const char_t * | p | ||
) |
Definition at line 6887 of file pugixml.cpp.
References s.
Referenced by xpath_ast_node::eval_boolean(), and xpath_ast_node::eval_string().
Definition at line 7103 of file pugixml.cpp.
References float, and uint32_t.
Referenced by convert_string_to_number(), pugi::xpath_query::evaluate_number(), and pugi::xpath_variable::get_number().
|
inline |
Definition at line 590 of file pugixml.cpp.
References xml_memory_page_pointer_mask.
Referenced by pugi::xml_node::append_attribute(), pugi::xml_node::append_child(), pugi::xml_node::insert_attribute_after(), pugi::xml_node::insert_attribute_before(), pugi::xml_node::insert_child_after(), pugi::xml_node::insert_child_before(), pugi::xml_node::prepend_attribute(), pugi::xml_node::prepend_child(), pugi::xml_node::remove_attribute(), and pugi::xml_node::remove_child().
PUGI__FN xml_encoding get_buffer_encoding | ( | xml_encoding | encoding, |
const void * | contents, | ||
size_t | size | ||
) |
Definition at line 1240 of file pugixml.cpp.
References pugi::encoding_auto, pugi::encoding_utf16, pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32, pugi::encoding_utf32_be, pugi::encoding_utf32_le, pugi::encoding_utf8, pugi::encoding_wchar, get_wchar_encoding(), guess_buffer_encoding(), is_little_endian(), PUGI__DMC_VOLATILE, and uint8_t.
Referenced by load_buffer_impl(), load_file_impl(), and load_stream_impl().
Definition at line 3899 of file pugixml.cpp.
References length(), pugi::status_io_error, pugi::status_ok, and pugi::status_out_of_memory.
Referenced by load_file_impl().
Definition at line 3714 of file pugixml.cpp.
References ct_space, PUGI__IS_CHARTYPE, and s.
Referenced by get_value_int(), and get_value_uint().
Definition at line 1539 of file pugixml.cpp.
Referenced by convert_buffer_latin1().
PUGI__FN bool get_mutable_buffer | ( | char_t *& | out_buffer, |
size_t & | out_length, | ||
const void * | contents, | ||
size_t | size, | ||
bool | is_mutable | ||
) |
Definition at line 1270 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, length(), and memcpy().
Referenced by convert_buffer(), and convert_buffer_latin1().
PUGI__FN strconv_attribute_t get_strconv_attribute | ( | unsigned int | optmask | ) |
Definition at line 2248 of file pugixml.cpp.
References pugi::parse_eol, pugi::parse_escapes, pugi::parse_wconv_attribute, pugi::parse_wnorm_attribute, and PUGI__STATIC_ASSERT.
Referenced by xml_parser::parse_tree().
PUGI__FN strconv_pcdata_t get_strconv_pcdata | ( | unsigned int | optmask | ) |
Definition at line 2054 of file pugixml.cpp.
References pugi::parse_eol, pugi::parse_escapes, pugi::parse_trim_pcdata, and PUGI__STATIC_ASSERT.
Referenced by xml_parser::parse_tree().
Definition at line 3147 of file pugixml.cpp.
References length(), and uint8_t.
Referenced by xml_buffered_writer::write().
Definition at line 3779 of file pugixml.cpp.
Referenced by pugi::xml_attribute::as_bool(), and pugi::xml_text::as_bool().
Definition at line 3755 of file pugixml.cpp.
Referenced by pugi::xml_attribute::as_double(), and pugi::xml_text::as_double().
Definition at line 3767 of file pugixml.cpp.
Referenced by pugi::xml_attribute::as_float(), and pugi::xml_text::as_float().
Definition at line 3727 of file pugixml.cpp.
References get_integer_base().
Referenced by pugi::xml_attribute::as_int(), and pugi::xml_text::as_int().
Definition at line 3741 of file pugixml.cpp.
References get_integer_base().
Referenced by pugi::xml_attribute::as_uint(), and pugi::xml_text::as_uint().
PUGI__FN xpath_variable* get_variable_scratch | ( | char_t(&) | buffer[32], |
xpath_variable_set * | set, | ||
const char_t * | begin, | ||
const char_t * | end | ||
) |
Definition at line 7655 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, xml_memory_management_function_storage< T >::deallocate, length(), and memcpy().
Referenced by xpath_parser::parse_primary_expression().
PUGI__FN xml_encoding get_wchar_encoding | ( | ) |
Definition at line 1193 of file pugixml.cpp.
References pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32_be, pugi::encoding_utf32_le, is_little_endian(), and PUGI__STATIC_ASSERT.
Referenced by get_buffer_encoding(), get_write_encoding(), get_write_native_encoding(), and zero_terminate_buffer().
PUGI__FN xml_encoding get_write_encoding | ( | xml_encoding | encoding | ) |
Definition at line 3047 of file pugixml.cpp.
References pugi::encoding_auto, pugi::encoding_utf16, pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32, pugi::encoding_utf32_be, pugi::encoding_utf32_le, pugi::encoding_utf8, pugi::encoding_wchar, get_wchar_encoding(), and is_little_endian().
PUGI__FN xml_encoding get_write_native_encoding | ( | ) |
Definition at line 3038 of file pugixml.cpp.
References pugi::encoding_utf8, and get_wchar_encoding().
Referenced by xml_buffered_writer::flush(), and xml_buffered_writer::write().
Definition at line 1203 of file pugixml.cpp.
References pugi::encoding_utf16_be, pugi::encoding_utf16_le, pugi::encoding_utf32_be, pugi::encoding_utf32_le, and pugi::encoding_utf8.
Referenced by get_buffer_encoding().
|
inline |
Definition at line 3625 of file pugixml.cpp.
References pugi::node_declaration, pugi::node_element, and get_metrics::type.
Referenced by pugi::xml_document::save().
Definition at line 7564 of file pugixml.cpp.
References get_metrics::str.
Referenced by pugi::xpath_variable_set::add(), and pugi::xpath_variable_set::find().
void insertion_sort | ( | I | begin, |
I | end, | ||
const Pred & | pred, | ||
T * | |||
) |
Definition at line 6384 of file pugixml.cpp.
References copy_backwards().
Referenced by sort().
Definition at line 1186 of file pugixml.cpp.
Referenced by convert_buffer(), convert_buffer_output(), get_buffer_encoding(), get_wchar_encoding(), and get_write_encoding().
Definition at line 7119 of file pugixml.cpp.
References fpclassify(), and v.
Referenced by convert_number_to_boolean(), and xpath_ast_node::eval_string().
|
inline |
Definition at line 3706 of file pugixml.cpp.
References pugi::node_cdata, pugi::node_pcdata, get_metrics::type, and xml_memory_page_type_mask.
Referenced by pugi::xml_text::_data(), and pugi::xml_node::child_value().
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 | ||
) |
Definition at line 4236 of file pugixml.cpp.
References xml_document_struct::buffer, convert_buffer(), get_buffer_encoding(), length(), make_parse_result(), options, and pugi::status_out_of_memory.
Referenced by pugi::xml_node::append_buffer(), pugi::xml_document::load_buffer(), pugi::xml_document::load_buffer_inplace(), and pugi::xml_document::load_buffer_inplace_own().
PUGI__FN xml_parse_result load_file_impl | ( | xml_document & | doc, |
FILE * | file, | ||
unsigned int | options, | ||
xml_encoding | encoding | ||
) |
Definition at line 3965 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, xml_memory_management_function_storage< T >::deallocate, get_buffer_encoding(), get_file_size(), make_parse_result(), options, pugi::status_file_not_found, pugi::status_io_error, pugi::status_ok, pugi::status_out_of_memory, and zero_terminate_buffer().
Referenced by pugi::xml_document::load_file().
PUGI__FN xml_parse_status load_stream_data_noseek | ( | std::basic_istream< T > & | stream, |
void ** | out_buffer, | ||
size_t * | out_size | ||
) |
Definition at line 4040 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, xml_stream_chunk< T >::create(), buffer_holder::data, xml_stream_chunk< T >::data, memcpy(), xml_stream_chunk< T >::next, xml_stream_chunk< T >::size, pugi::status_io_error, pugi::status_ok, and pugi::status_out_of_memory.
Referenced by load_stream_impl().
PUGI__FN xml_parse_status load_stream_data_seek | ( | std::basic_istream< T > & | stream, |
void ** | out_buffer, | ||
size_t * | out_size | ||
) |
Definition at line 4101 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, buffer_holder::data, xml_memory_management_function_storage< T >::deallocate, length(), buffer_holder::release(), pugi::status_io_error, pugi::status_ok, and pugi::status_out_of_memory.
Referenced by load_stream_impl().
PUGI__FN xml_parse_result load_stream_impl | ( | xml_document & | doc, |
std::basic_istream< T > & | stream, | ||
unsigned int | options, | ||
xml_encoding | encoding | ||
) |
Definition at line 4143 of file pugixml.cpp.
References get_buffer_encoding(), load_stream_data_noseek(), load_stream_data_seek(), make_parse_result(), options, pugi::status_io_error, pugi::status_ok, and zero_terminate_buffer().
PUGI__FN const char_t* local_name | ( | const xpath_node & | node | ) |
Definition at line 7395 of file pugixml.cpp.
References find_char(), and qualified_name().
Referenced by xpath_ast_node::eval_string().
|
inline |
Definition at line 2293 of file pugixml.cpp.
Referenced by pugi::xml_node::append_buffer(), load_buffer_impl(), load_file_impl(), load_stream_impl(), and xml_parser::parse().
void median | ( | I | first, |
I | middle, | ||
I | last, | ||
const Pred & | pred | ||
) |
Definition at line 6491 of file pugixml.cpp.
References median3(), and step().
Referenced by sort().
void median3 | ( | I | first, |
I | middle, | ||
I | last, | ||
const Pred & | pred | ||
) |
Definition at line 6480 of file pugixml.cpp.
References swap().
Referenced by median().
I min_element | ( | I | begin, |
I | end, | ||
const Pred & | pred | ||
) |
Definition at line 6332 of file pugixml.cpp.
Referenced by xpath_first().
PUGI__FN const char_t* namespace_uri | ( | const xml_attribute & | attr, |
const xml_node & | parent | ||
) |
Definition at line 7446 of file pugixml.cpp.
References namespace_uri_predicate::prefix, and PUGIXML_TEXT.
PUGI__FN const char_t* namespace_uri | ( | const xml_node & | node | ) |
Definition at line 7427 of file pugixml.cpp.
References PUGIXML_TEXT.
Referenced by xpath_ast_node::eval_string(), and namespace_uri().
PUGI__FN const char_t* namespace_uri | ( | const xpath_node & | node | ) |
Definition at line 7469 of file pugixml.cpp.
References namespace_uri().
PUGI__FN T* new_xpath_variable | ( | const char_t * | name | ) |
Definition at line 7584 of file pugixml.cpp.
References xml_memory_management_function_storage< T >::allocate, length(), memcpy(), and strlength().
Referenced by pugi::xpath_variable_set::add().
PUGI__FN xpath_variable* new_xpath_variable | ( | xpath_value_type | type, |
const char_t * | name | ||
) |
Definition at line 7602 of file pugixml.cpp.
References get_metrics::type, pugi::xpath_type_boolean, pugi::xpath_type_node_set, pugi::xpath_type_number, and pugi::xpath_type_string.
Definition at line 6954 of file pugixml.cpp.
Referenced by document_order_comparator::operator()().
Definition at line 6998 of file pugixml.cpp.
Referenced by xpath_ast_node::step_fill().
Definition at line 6967 of file pugixml.cpp.
Referenced by document_order_comparator::operator()().
PUGI__FN void node_output | ( | xml_buffered_writer & | writer, |
const xml_node & | node, | ||
const char_t * | indent, | ||
unsigned int | flags, | ||
unsigned int | depth | ||
) |
Definition at line 3487 of file pugixml.cpp.
References ctx_special_pcdata, etiss::interfaces::depth(), pugi::format_indent, pugi::format_raw, pugi::node_cdata, pugi::node_comment, pugi::node_declaration, pugi::node_doctype, pugi::node_document, pugi::node_element, node_output_attributes(), pugi::node_pcdata, pugi::node_pi, PUGIXML_TEXT, text_output(), text_output_cdata(), and get_metrics::writer.
Referenced by pugi::xml_node::print(), and pugi::xml_document::save().
PUGI__FN void node_output_attributes | ( | xml_buffered_writer & | writer, |
const xml_node & | node, | ||
unsigned int | flags | ||
) |
Definition at line 3471 of file pugixml.cpp.
References ctx_special_attr, PUGIXML_TEXT, text_output(), and get_metrics::writer.
Referenced by node_output().
PUGI__FN void normalize_space | ( | char_t * | buffer | ) |
Definition at line 7474 of file pugixml.cpp.
References ct_space, and PUGI__IS_CHARTYPE.
Referenced by xpath_ast_node::eval_string().
Definition at line 4198 of file pugixml.cpp.
References convert_path_heap(), xml_memory_management_function_storage< T >::deallocate, and get_metrics::mode.
Referenced by pugi::xml_document::load_file(), and pugi::xml_document::save_file().
void partition | ( | I | begin, |
I | middle, | ||
I | end, | ||
const Pred & | pred, | ||
I * | out_eqbeg, | ||
I * | out_eqend | ||
) |
Definition at line 6417 of file pugixml.cpp.
References swap().
Referenced by sort().
PUGI__FN const char_t* qualified_name | ( | const xpath_node & | node | ) |
Definition at line 7390 of file pugixml.cpp.
Referenced by xpath_ast_node::eval_string(), and local_name().
PUGI__FN void recursive_copy_skip | ( | xml_node & | dest, |
const xml_node & | source, | ||
const xml_node & | skip | ||
) |
Definition at line 3652 of file pugixml.cpp.
References c, pugi::node_cdata, pugi::node_comment, pugi::node_declaration, pugi::node_doctype, pugi::node_element, pugi::node_pcdata, and pugi::node_pi.
Referenced by pugi::xml_node::append_copy(), pugi::xml_node::insert_copy_after(), pugi::xml_node::insert_copy_before(), and pugi::xml_node::prepend_copy().
void reverse | ( | I | begin, |
I | end | ||
) |
Definition at line 6344 of file pugixml.cpp.
References swap().
Referenced by pugi::xpath_node_set::sort(), and xpath_sort().
Definition at line 7378 of file pugixml.cpp.
References floor.
Referenced by xpath_ast_node::eval_string().
Definition at line 7383 of file pugixml.cpp.
Referenced by xpath_ast_node::eval_number().
PUGI__FN bool save_file_impl | ( | const xml_document & | doc, |
FILE * | file, | ||
const char_t * | indent, | ||
unsigned int | flags, | ||
xml_encoding | encoding | ||
) |
Definition at line 4220 of file pugixml.cpp.
References get_metrics::writer.
Referenced by pugi::xml_document::save_file().
PUGI__FN bool set_value_buffer | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
char(&) | buf[128] | ||
) |
Definition at line 3838 of file pugixml.cpp.
References strcpy_insitu().
Referenced by set_value_convert().
PUGI__FN bool set_value_convert | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
bool | value | ||
) |
Definition at line 3874 of file pugixml.cpp.
References PUGIXML_TEXT, and strcpy_insitu().
PUGI__FN bool set_value_convert | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
double | value | ||
) |
Definition at line 3866 of file pugixml.cpp.
References set_value_buffer().
PUGI__FN bool set_value_convert | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
int | value | ||
) |
Definition at line 3850 of file pugixml.cpp.
References set_value_buffer().
Referenced by pugi::xml_text::set(), and pugi::xml_attribute::set_value().
PUGI__FN bool set_value_convert | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
unsigned int | value | ||
) |
Definition at line 3858 of file pugixml.cpp.
References set_value_buffer().
void sort | ( | I | begin, |
I | end, | ||
const Pred & | pred | ||
) |
Definition at line 6511 of file pugixml.cpp.
References insertion_sort(), median(), and partition().
Referenced by etiss::SimpleMemSystem::init_memory(), xpath_node_set_raw::remove_duplicates(), and xpath_sort().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN bool starts_with | ( | const char_t * | string, |
const char_t * | pattern | ||
) |
Definition at line 6867 of file pugixml.cpp.
Referenced by xpath_ast_node::eval_boolean(), namespace_uri_predicate::operator()(), and xpath_ast_node::step_push().
PUGI__FN char_t* strconv_cdata | ( | char_t * | s, |
char_t | endch | ||
) |
Definition at line 1966 of file pugixml.cpp.
References ct_parse_cdata, ENDSWITH, gap::flush(), PUGI__IS_CHARTYPE, gap::push(), and s.
Referenced by xml_parser::parse_exclamation().
PUGI__FN char_t* strconv_comment | ( | char_t * | s, |
char_t | endch | ||
) |
Definition at line 1935 of file pugixml.cpp.
References ct_parse_comment, ENDSWITH, gap::flush(), PUGI__IS_CHARTYPE, gap::push(), and s.
Referenced by xml_parser::parse_exclamation().
Definition at line 1790 of file pugixml.cpp.
References any(), utf8_writer::any(), gap::push(), s, and uint8_t.
Referenced by 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(), and strconv_attribute_impl< opt_escape >::parse_wnorm().
PUGI__FN bool strcpy_insitu | ( | char_t *& | dest, |
uintptr_t & | header, | ||
uintptr_t | header_mask, | ||
const char_t * | source | ||
) |
Definition at line 1698 of file pugixml.cpp.
References xml_allocator::allocate_string(), xml_allocator::deallocate_string(), memcpy(), strcpy_insitu_allow(), strlength(), and xml_memory_page_pointer_mask.
Referenced by pugi::xml_text::set(), pugi::xml_attribute::set_name(), pugi::xml_node::set_name(), pugi::xml_attribute::set_value(), pugi::xml_node::set_value(), set_value_buffer(), and set_value_convert().
Definition at line 1683 of file pugixml.cpp.
References length(), and strlength().
Referenced by strcpy_insitu().
Definition at line 215 of file pugixml.cpp.
Referenced by pugi::xpath_variable_set::add(), pugi::xml_node::attribute(), pugi::xml_node::child(), pugi::xpath_variable_set::find(), pugi::xml_node::find_child_by_attribute(), pugi::xml_node::next_sibling(), xpath_string::operator!=(), pugi::xml_named_node_iterator::operator--(), xpath_string::operator==(), pugi::xml_node::previous_sibling(), and xpath_ast_node::step_push().
Definition at line 227 of file pugixml.cpp.
Referenced by pugi::xml_node::first_element_by_path(), namespace_uri_predicate::operator()(), and xpath_lexer_string::operator==().
PUGI__FN xpath_string string_value | ( | const xpath_node & | na, |
xpath_allocator * | alloc | ||
) |
Definition at line 6903 of file pugixml.cpp.
References xpath_string::append(), pugi::node_cdata, pugi::node_comment, pugi::node_document, pugi::node_element, pugi::node_pcdata, pugi::node_pi, and xpath_string_const().
Referenced by xpath_ast_node::compare_eq(), xpath_ast_node::compare_rel(), xpath_ast_node::eval_number(), and xpath_ast_node::eval_string().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN size_t strlength | ( | const char_t * | s | ) |
Definition at line 203 of file pugixml.cpp.
References s.
Referenced by xpath_string::append(), xpath_string::duplicate_string(), xpath_string::length(), pugi::xml_document::load(), new_xpath_variable(), pugi::xpath_variable::set(), strcpy_insitu(), strcpy_insitu_allow(), translate(), and xml_buffered_writer::write().
Definition at line 237 of file pugixml.cpp.
References s.
Referenced by pugi::as_utf8(), and convert_path_heap().
void swap | ( | T & | lhs, |
T & | rhs | ||
) |
Definition at line 6324 of file pugixml.cpp.
Referenced by etiss::benchmark::averageTime(), xpath_ast_node::compare_eq(), etiss::interfaces::WishboneBus< BOOLSIG, VECTORSIG, instrBus, flipEndianess, bytewidth, VECTORSIGSTORAGETYPE >::flipEndianness(), median3(), partition(), and reverse().
PUGI__FN void text_output | ( | xml_buffered_writer & | writer, |
const char_t * | s, | ||
chartypex_t | type, | ||
unsigned int | flags | ||
) |
Definition at line 3440 of file pugixml.cpp.
References pugi::format_no_escapes, s, text_output_escaped(), get_metrics::type, and get_metrics::writer.
Referenced by node_output(), and node_output_attributes().
PUGI__FN void text_output_cdata | ( | xml_buffered_writer & | writer, |
const char_t * | s | ||
) |
Definition at line 3448 of file pugixml.cpp.
References s, and get_metrics::writer.
Referenced by node_output().
PUGI__FN void text_output_escaped | ( | xml_buffered_writer & | writer, |
const char_t * | s, | ||
chartypex_t | type | ||
) |
Definition at line 3397 of file pugixml.cpp.
References PUGI__IS_CHARTYPEX, s, get_metrics::type, and get_metrics::writer.
Referenced by text_output().
PUGI__FN char_t tolower_ascii | ( | char_t | ch | ) |
Definition at line 6898 of file pugixml.cpp.
Referenced by xpath_ast_node::eval_boolean().
PUGI__FN void translate | ( | char_t * | buffer, |
const char_t * | from, | ||
const char_t * | to | ||
) |
Definition at line 7504 of file pugixml.cpp.
References find_char(), PUGI__DMC_VOLATILE, and strlength().
Referenced by xpath_ast_node::eval_string().
PUGI__FN void truncate_zeros | ( | char * | begin, |
char * | end | ||
) |
Definition at line 7174 of file pugixml.cpp.
Referenced by convert_number_to_mantissa_exponent().
I unique | ( | I | begin, |
I | end | ||
) |
Definition at line 6351 of file pugixml.cpp.
Referenced by xpath_node_set_raw::remove_duplicates().
PUGI__FN xpath_node xpath_first | ( | const xpath_node * | begin, |
const xpath_node * | end, | ||
xpath_node_set::type_t | type | ||
) |
Definition at line 7702 of file pugixml.cpp.
References min_element(), and get_metrics::type.
Referenced by pugi::xpath_node_set::first(), and xpath_node_set_raw::first().
PUGI__NS_END PUGI__NS_BEGIN PUGI__FN xpath_node_set::type_t xpath_sort | ( | xpath_node * | begin, |
xpath_node * | end, | ||
xpath_node_set::type_t | type, | ||
bool | rev | ||
) |
Definition at line 7685 of file pugixml.cpp.
References reverse(), sort(), and get_metrics::type.
Referenced by pugi::xpath_node_set::sort(), and xpath_node_set_raw::sort_do().
PUGI__FN xpath_string xpath_string_const | ( | const char_t * | str | ) |
Definition at line 6860 of file pugixml.cpp.
References get_metrics::str.
Referenced by convert_number_to_string(), xpath_ast_node::eval_string(), and string_value().
Definition at line 3941 of file pugixml.cpp.
References pugi::encoding_utf8, get_wchar_encoding(), and length().
Referenced by load_file_impl(), and load_stream_impl().
|
static |
Definition at line 1131 of file pugixml.cpp.
|
static |
Definition at line 1158 of file pugixml.cpp.
|
static |
Definition at line 7562 of file pugixml.cpp.
Referenced by pugi::xpath_variable::get_node_set().
|
static |
Definition at line 297 of file pugixml.cpp.
Referenced by xml_allocator::allocate_page(), and pugi::xml_document::create().
|
static |
Definition at line 299 of file pugixml.cpp.
Referenced by destroy_attribute(), destroy_node(), document_order(), pugi::xml_node::offset_debug(), pugi::xml_attribute::set_name(), and pugi::xml_node::set_name().
|
static |
Definition at line 298 of file pugixml.cpp.
Referenced by pugi::xml_document::destroy(), destroy_attribute(), destroy_node(), get_allocator(), pugi::xml_node::root(), and strcpy_insitu().
|
static |
Definition at line 289 of file pugixml.cpp.
Referenced by xml_allocator::allocate_memory(), xml_allocator::allocate_memory_oob(), and pugi::xml_document::create().
|
static |
Definition at line 301 of file pugixml.cpp.
Referenced by pugi::xml_document::document_element(), xml_parser::has_element_node_siblings(), is_text_node(), xml_parser::parse_tree(), and pugi::xml_node::type().
|
static |
Definition at line 300 of file pugixml.cpp.
Referenced by destroy_attribute(), destroy_node(), document_order(), pugi::xml_node::offset_debug(), pugi::xml_text::set(), pugi::xml_attribute::set_value(), and pugi::xml_node::set_value().