| 1 | /** |
| 2 | * pugixml parser - version 1.4 |
| 3 | * -------------------------------------------------------- |
| 4 | * Copyright (C) 2006-2014, by Arseny Kapoulkine ([email protected]) |
| 5 | * Report bugs and download new versions at http://pugixml.org/ |
| 6 | * |
| 7 | * This library is distributed under the MIT License. See notice at the end |
| 8 | * of this file. |
| 9 | * |
| 10 | * This work is based on the pugxml parser, which is: |
| 11 | * Copyright (C) 2003, by Kristen Wegner ([email protected]) |
| 12 | */ |
| 13 | |
| 14 | #ifndef PUGIXML_VERSION |
| 15 | // Define version macro; evaluates to major * 100 + minor so that it's safe to use in less-than comparisons |
| 16 | # define PUGIXML_VERSIONcxx . . $ `src/common/pugixml.h:16:10`! 140 |
| 17 | #endif |
| 18 | |
| 19 | // Include user configuration file (this can define various configuration macros) |
| 20 | #include "pugiconfig.h"cxx . . $ `<file>/src/common/pugiconfig.h`/ |
| 21 | |
| 22 | #ifndef HEADER_PUGIXML_HPP |
| 23 | #define HEADER_PUGIXML_HPPcxx . . $ `src/common/pugixml.h:23:9`! |
| 24 | |
| 25 | // Include stddef.h for size_t and ptrdiff_t |
| 26 | #include <stddef.h> |
| 27 | |
| 28 | // Include exception header for XPath |
| 29 | #if !defined(PUGIXML_NO_XPATH) && !defined(PUGIXML_NO_EXCEPTIONS) |
| 30 | # include <exception> |
| 31 | #endif |
| 32 | |
| 33 | // Include STL headers |
| 34 | #ifndef PUGIXML_NO_STL |
| 35 | # include <iterator> |
| 36 | # include <iosfwd> |
| 37 | # include <string> |
| 38 | #endif |
| 39 | |
| 40 | // Macro for deprecated features |
| 41 | #ifndef PUGIXML_DEPRECATED |
| 42 | # if defined(__GNUC__cxx . . $ `<built-in>:8:9`!) |
| 43 | # define PUGIXML_DEPRECATEDcxx . . $ `src/common/pugixml.h:43:11`! __attribute__((deprecated)) |
| 44 | # elif defined(_MSC_VER) && _MSC_VER >= 1300 |
| 45 | # define PUGIXML_DEPRECATED __declspec(deprecated) |
| 46 | # else |
| 47 | # define PUGIXML_DEPRECATED |
| 48 | # endif |
| 49 | #endif |
| 50 | |
| 51 | // If no API is defined, assume default |
| 52 | #ifndef PUGIXML_API |
| 53 | # define PUGIXML_APIcxx . . $ `src/common/pugixml.h:53:10`! |
| 54 | #endif |
| 55 | |
| 56 | // If no API for classes is defined, assume default |
| 57 | #ifndef PUGIXML_CLASS |
| 58 | # define PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! PUGIXML_APIcxx . . $ `src/common/pugixml.h:53:10`! |
| 59 | #endif |
| 60 | |
| 61 | // If no API for functions is defined, assume default |
| 62 | #ifndef PUGIXML_FUNCTION |
| 63 | # define PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! PUGIXML_APIcxx . . $ `src/common/pugixml.h:53:10`! |
| 64 | #endif |
| 65 | |
| 66 | // If the platform is known to have long long support, enable long long functions |
| 67 | #ifndef PUGIXML_HAS_LONG_LONG |
| 68 | # if defined(__cpluspluscxx . . $ `<built-in>:472:9`!) && __cpluspluscxx . . $ `<built-in>:472:9`! >= 201103 |
| 69 | # define PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 70 | # elif defined(_MSC_VER) && _MSC_VER >= 1400 |
| 71 | # define PUGIXML_HAS_LONG_LONG |
| 72 | # endif |
| 73 | #endif |
| 74 | |
| 75 | // Character interface macros |
| 76 | #ifdef PUGIXML_WCHAR_MODE |
| 77 | # define PUGIXML_TEXT(t) L ## t |
| 78 | # define PUGIXML_CHAR wchar_t |
| 79 | #else |
| 80 | # define PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!(t) t |
| 81 | # define PUGIXML_CHARcxx . . $ `src/common/pugixml.h:81:10`! char |
| 82 | #endif |
| 83 | |
| 84 | namespace pugicxx . . $ pugi/ |
| 85 | { |
| 86 | // Character type used for all internal storage and operations; depends on PUGIXML_WCHAR_MODE |
| 87 | typedef PUGIXML_CHARcxx . . $ `src/common/pugixml.h:81:10`! char_tcxx . . $ pugi/char_t#; |
| 88 | |
| 89 | #ifndef PUGIXML_NO_STL |
| 90 | // String type used for operations that work with STL string; depends on PUGIXML_WCHAR_MODE |
| 91 | typedef stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<PUGIXML_CHARcxx . . $ `src/common/pugixml.h:81:10`!, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<PUGIXML_CHARcxx . . $ `src/common/pugixml.h:81:10`!>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<PUGIXML_CHARcxx . . $ `src/common/pugixml.h:81:10`!> > string_tcxx . . $ pugi/string_t#; |
| 92 | #endif |
| 93 | } |
| 94 | |
| 95 | // The PugiXML namespace |
| 96 | namespace pugicxx . . $ pugi/ |
| 97 | { |
| 98 | // Tree node types |
| 99 | enum xml_node_typecxx . . $ pugi/xml_node_type# |
| 100 | { |
| 101 | node_nullcxx . . $ pugi/node_null., // Empty (null) node handle |
| 102 | node_documentcxx . . $ pugi/node_document., // A document tree's absolute root |
| 103 | node_elementcxx . . $ pugi/node_element., // Element tag, i.e. '<node/>' |
| 104 | node_pcdatacxx . . $ pugi/node_pcdata., // Plain character data, i.e. 'text' |
| 105 | node_cdatacxx . . $ pugi/node_cdata., // Character data, i.e. '<![CDATA[text]]>' |
| 106 | node_commentcxx . . $ pugi/node_comment., // Comment tag, i.e. '<!-- text -->' |
| 107 | node_picxx . . $ pugi/node_pi., // Processing instruction, i.e. '<?name?>' |
| 108 | node_declarationcxx . . $ pugi/node_declaration., // Document declaration, i.e. '<?xml version="1.0"?>' |
| 109 | node_doctypecxx . . $ pugi/node_doctype. // Document type declaration, i.e. '<!DOCTYPE doc>' |
| 110 | }; |
| 111 | |
| 112 | // Parsing options |
| 113 | |
| 114 | // Minimal parsing mode (equivalent to turning all other flags off). |
| 115 | // Only elements and PCDATA sections are added to the DOM tree, no text conversions are performed. |
| 116 | const unsigned int parse_minimalcxx . . $ pugi/parse_minimal. = 0x0000; |
| 117 | |
| 118 | // This flag determines if processing instructions (node_pi) are added to the DOM tree. This flag is off by default. |
| 119 | const unsigned int parse_picxx . . $ pugi/parse_pi. = 0x0001; |
| 120 | |
| 121 | // This flag determines if comments (node_comment) are added to the DOM tree. This flag is off by default. |
| 122 | const unsigned int parse_commentscxx . . $ pugi/parse_comments. = 0x0002; |
| 123 | |
| 124 | // This flag determines if CDATA sections (node_cdata) are added to the DOM tree. This flag is on by default. |
| 125 | const unsigned int parse_cdatacxx . . $ pugi/parse_cdata. = 0x0004; |
| 126 | |
| 127 | // This flag determines if plain character data (node_pcdata) that consist only of whitespace are added to the DOM tree. |
| 128 | // This flag is off by default; turning it on usually results in slower parsing and more memory consumption. |
| 129 | const unsigned int parse_ws_pcdatacxx . . $ pugi/parse_ws_pcdata. = 0x0008; |
| 130 | |
| 131 | // This flag determines if character and entity references are expanded during parsing. This flag is on by default. |
| 132 | const unsigned int parse_escapescxx . . $ pugi/parse_escapes. = 0x0010; |
| 133 | |
| 134 | // This flag determines if EOL characters are normalized (converted to #xA) during parsing. This flag is on by default. |
| 135 | const unsigned int parse_eolcxx . . $ pugi/parse_eol. = 0x0020; |
| 136 | |
| 137 | // This flag determines if attribute values are normalized using CDATA normalization rules during parsing. This flag is on by default. |
| 138 | const unsigned int parse_wconv_attributecxx . . $ pugi/parse_wconv_attribute. = 0x0040; |
| 139 | |
| 140 | // This flag determines if attribute values are normalized using NMTOKENS normalization rules during parsing. This flag is off by default. |
| 141 | const unsigned int parse_wnorm_attributecxx . . $ pugi/parse_wnorm_attribute. = 0x0080; |
| 142 | |
| 143 | // This flag determines if document declaration (node_declaration) is added to the DOM tree. This flag is off by default. |
| 144 | const unsigned int parse_declarationcxx . . $ pugi/parse_declaration. = 0x0100; |
| 145 | |
| 146 | // This flag determines if document type declaration (node_doctype) is added to the DOM tree. This flag is off by default. |
| 147 | const unsigned int parse_doctypecxx . . $ pugi/parse_doctype. = 0x0200; |
| 148 | |
| 149 | // This flag determines if plain character data (node_pcdata) that is the only child of the parent node and that consists only |
| 150 | // of whitespace is added to the DOM tree. |
| 151 | // This flag is off by default; turning it on may result in slower parsing and more memory consumption. |
| 152 | const unsigned int parse_ws_pcdata_singlecxx . . $ pugi/parse_ws_pcdata_single. = 0x0400; |
| 153 | |
| 154 | // This flag determines if leading and trailing whitespace is to be removed from plain character data. This flag is off by default. |
| 155 | const unsigned int parse_trim_pcdatacxx . . $ pugi/parse_trim_pcdata. = 0x0800; |
| 156 | |
| 157 | // This flag determines if plain character data that does not have a parent node is added to the DOM tree, and if an empty document |
| 158 | // is a valid document. This flag is off by default. |
| 159 | const unsigned int parse_fragmentcxx . . $ pugi/parse_fragment. = 0x1000; |
| 160 | |
| 161 | // The default parsing mode. |
| 162 | // Elements, PCDATA and CDATA sections are added to the DOM tree, character/reference entities are expanded, |
| 163 | // End-of-Line characters are normalized, attribute values are normalized using CDATA normalization rules. |
| 164 | const unsigned int parse_defaultcxx . . $ pugi/parse_default. = parse_cdatacxx . . $ pugi/parse_cdata. | parse_escapescxx . . $ pugi/parse_escapes. | parse_wconv_attributecxx . . $ pugi/parse_wconv_attribute. | parse_eolcxx . . $ pugi/parse_eol.; |
| 165 | |
| 166 | // The full parsing mode. |
| 167 | // Nodes of all types are added to the DOM tree, character/reference entities are expanded, |
| 168 | // End-of-Line characters are normalized, attribute values are normalized using CDATA normalization rules. |
| 169 | const unsigned int parse_fullcxx . . $ pugi/parse_full. = parse_defaultcxx . . $ pugi/parse_default. | parse_picxx . . $ pugi/parse_pi. | parse_commentscxx . . $ pugi/parse_comments. | parse_declarationcxx . . $ pugi/parse_declaration. | parse_doctypecxx . . $ pugi/parse_doctype.; |
| 170 | |
| 171 | // These flags determine the encoding of input data for XML document |
| 172 | enum xml_encodingcxx . . $ pugi/xml_encoding# |
| 173 | { |
| 174 | encoding_autocxx . . $ pugi/encoding_auto., // Auto-detect input encoding using BOM or < / <? detection; use UTF8 if BOM is not found |
| 175 | encoding_utf8cxx . . $ pugi/encoding_utf8., // UTF8 encoding |
| 176 | encoding_utf16_lecxx . . $ pugi/encoding_utf16_le., // Little-endian UTF16 |
| 177 | encoding_utf16_becxx . . $ pugi/encoding_utf16_be., // Big-endian UTF16 |
| 178 | encoding_utf16cxx . . $ pugi/encoding_utf16., // UTF16 with native endianness |
| 179 | encoding_utf32_lecxx . . $ pugi/encoding_utf32_le., // Little-endian UTF32 |
| 180 | encoding_utf32_becxx . . $ pugi/encoding_utf32_be., // Big-endian UTF32 |
| 181 | encoding_utf32cxx . . $ pugi/encoding_utf32., // UTF32 with native endianness |
| 182 | encoding_wcharcxx . . $ pugi/encoding_wchar., // The same encoding wchar_t has (either UTF16 or UTF32) |
| 183 | encoding_latin1cxx . . $ pugi/encoding_latin1. |
| 184 | }; |
| 185 | |
| 186 | // Formatting flags |
| 187 | |
| 188 | // Indent the nodes that are written to output stream with as many indentation strings as deep the node is in DOM tree. This flag is on by default. |
| 189 | const unsigned int format_indentcxx . . $ pugi/format_indent. = 0x01; |
| 190 | |
| 191 | // Write encoding-specific BOM to the output stream. This flag is off by default. |
| 192 | const unsigned int format_write_bomcxx . . $ pugi/format_write_bom. = 0x02; |
| 193 | |
| 194 | // Use raw output mode (no indentation and no line breaks are written). This flag is off by default. |
| 195 | const unsigned int format_rawcxx . . $ pugi/format_raw. = 0x04; |
| 196 | |
| 197 | // Omit default XML declaration even if there is no declaration in the document. This flag is off by default. |
| 198 | const unsigned int format_no_declarationcxx . . $ pugi/format_no_declaration. = 0x08; |
| 199 | |
| 200 | // Don't escape attribute values and PCDATA contents. This flag is off by default. |
| 201 | const unsigned int format_no_escapescxx . . $ pugi/format_no_escapes. = 0x10; |
| 202 | |
| 203 | // Open file using text mode in xml_document::save_file. This enables special character (i.e. new-line) conversions on some systems. This flag is off by default. |
| 204 | const unsigned int format_save_file_textcxx . . $ pugi/format_save_file_text. = 0x20; |
| 205 | |
| 206 | // The default set of formatting flags. |
| 207 | // Nodes are indented depending on their depth in DOM tree, a default declaration is output if document has none. |
| 208 | const unsigned int format_defaultcxx . . $ pugi/format_default. = format_indentcxx . . $ pugi/format_indent.; |
| 209 | |
| 210 | // Forward declarations |
| 211 | struct xml_attribute_structcxx . . $ pugi/xml_attribute_struct#; |
| 212 | struct xml_node_structcxx . . $ pugi/xml_node_struct#; |
| 213 | |
| 214 | class xml_node_iteratorcxx . . $ pugi/xml_node_iterator#; |
| 215 | class xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#; |
| 216 | class xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#; |
| 217 | |
| 218 | class xml_tree_walkercxx . . $ pugi/xml_tree_walker#; |
| 219 | |
| 220 | struct xml_parse_resultcxx . . $ pugi/xml_parse_result#; |
| 221 | |
| 222 | class xml_nodecxx . . $ pugi/xml_node#; |
| 223 | |
| 224 | class xml_textcxx . . $ pugi/xml_text#; |
| 225 | |
| 226 | #ifndef PUGIXML_NO_XPATH |
| 227 | class xpath_nodecxx . . $ pugi/xpath_node#; |
| 228 | class xpath_node_setcxx . . $ pugi/xpath_node_set#; |
| 229 | class xpath_querycxx . . $ pugi/xpath_query#; |
| 230 | class xpath_variable_setcxx . . $ pugi/xpath_variable_set#; |
| 231 | #endif |
| 232 | |
| 233 | // Range-based for loop support |
| 234 | template <typename It> class xml_object_rangecxx . . $ pugi/xml_object_range# |
| 235 | { |
| 236 | public: |
| 237 | typedef It const_iteratorcxx . . $ pugi/xml_object_range#const_iterator#; |
| 238 | typedef It iteratorcxx . . $ pugi/xml_object_range#iterator#; |
| 239 | |
| 240 | xml_object_rangecxx . . $ pugi/xml_object_range#`xml_object_range<It>`(249673c20e2b8d5).(It b, It e): _begincxx . . $ pugi/xml_object_range#_begin.(b), _endcxx . . $ pugi/xml_object_range#_end.(e) |
| 241 | { |
| 242 | } |
| 243 | |
| 244 | It begincxx . . $ pugi/xml_object_range#begin(8f5363d873dd4781).() const { return _begincxx . . $ pugi/xml_object_range#_begin.; } |
| 245 | It endcxx . . $ pugi/xml_object_range#end(8f5363d873dd4781).() const { return _endcxx . . $ pugi/xml_object_range#_end.; } |
| 246 | |
| 247 | private: |
| 248 | It _begincxx . . $ pugi/xml_object_range#_begin., _endcxx . . $ pugi/xml_object_range#_end.; |
| 249 | }; |
| 250 | |
| 251 | // Writer interface for node printing (see xml_node::print) |
| 252 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_writercxx . . $ pugi/xml_writer# |
| 253 | { |
| 254 | public: |
| 255 | virtual ~cxx . . $ pugi/xml_writer#`~xml_writer`(ced63f7c635d850d).xml_writercxx . . $ pugi/xml_writer#() {} |
| 256 | |
| 257 | // Write memory chunk into stream/file/whatever |
| 258 | virtual void writecxx . . $ pugi/xml_writer#write(8c7266571c1d65cc).(const void* data, size_tcxx . . $ size_t# size) = 0; |
| 259 | }; |
| 260 | |
| 261 | // xml_writer implementation for FILE* |
| 262 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_writer_filecxx . . $ pugi/xml_writer_file#: public xml_writercxx . . $ pugi/xml_writer# |
| 263 | { |
| 264 | public: |
| 265 | // Construct writer from a FILE* object; void* is used to avoid header dependencies on stdio |
| 266 | xml_writer_filecxx . . $ pugi/xml_writer_file#xml_writer_file(5d22bdacc48458e8).(void* file); |
| 267 | |
| 268 | virtual void writecxx . . $ pugi/xml_writer_file#write(8c7266571c1d65cc).(const void* data, size_tcxx . . $ size_t# size); |
| 269 | |
| 270 | private: |
| 271 | void* filecxx . . $ pugi/xml_writer_file#file.; |
| 272 | }; |
| 273 | |
| 274 | #ifndef PUGIXML_NO_STL |
| 275 | // xml_writer implementation for streams |
| 276 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_writer_streamcxx . . $ pugi/xml_writer_stream#: public xml_writercxx . . $ pugi/xml_writer# |
| 277 | { |
| 278 | public: |
| 279 | // Construct writer from an output stream object |
| 280 | xml_writer_streamcxx . . $ pugi/xml_writer_stream#xml_writer_stream(f7f45734e6842120).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char> >& stream); |
| 281 | xml_writer_streamcxx . . $ pugi/xml_writer_stream#xml_writer_stream(6a9dfb923c0aa091).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t> >& stream); |
| 282 | |
| 283 | virtual void writecxx . . $ pugi/xml_writer_stream#write(8c7266571c1d65cc).(const void* data, size_tcxx . . $ size_t# size); |
| 284 | |
| 285 | private: |
| 286 | stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char> >* narrow_streamcxx . . $ pugi/xml_writer_stream#narrow_stream.; |
| 287 | stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t> >* wide_streamcxx . . $ pugi/xml_writer_stream#wide_stream.; |
| 288 | }; |
| 289 | #endif |
| 290 | |
| 291 | // A light-weight handle for manipulating attributes in DOM tree |
| 292 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_attributecxx . . $ pugi/xml_attribute# |
| 293 | { |
| 294 | friend class xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#; |
| 295 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 296 | |
| 297 | private: |
| 298 | xml_attribute_structcxx . . $ pugi/xml_attribute_struct#* _attrcxx . . $ pugi/xml_attribute#_attr.; |
| 299 | |
| 300 | typedef void (*unspecified_bool_typecxx . . $ pugi/xml_attribute#unspecified_bool_type#)(xml_attributecxx . . $ pugi/xml_attribute#***); |
| 301 | |
| 302 | public: |
| 303 | // Default constructor. Constructs an empty attribute. |
| 304 | xml_attributecxx . . $ pugi/xml_attribute#xml_attribute(49f6e7a06ebc5aa8).(); |
| 305 | |
| 306 | // Constructs attribute from internal pointer |
| 307 | explicit xml_attributecxx . . $ pugi/xml_attribute#xml_attribute(2e9330b696ddd9ab).(xml_attribute_structcxx . . $ pugi/xml_attribute_struct#* attr); |
| 308 | |
| 309 | // Safe bool conversion operator |
| 310 | operatorcxx . . $ pugi/xml_attribute#`operator void (*)(pugi::xml_attribute ***)`(920d8624f01e6884). unspecified_bool_typecxx . . $ pugi/xml_attribute#unspecified_bool_type#() const; |
| 311 | |
| 312 | // Borland C++ workaround |
| 313 | bool operatorcxx . . $ pugi/xml_attribute#`operator!`(50ce9a9e25b4a850).!() const; |
| 314 | |
| 315 | // Comparison operators (compares wrapped attribute pointers) |
| 316 | bool operatorcxx . . $ pugi/xml_attribute#`operator==`(c4f30c1835da086a).==(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 317 | bool operatorcxx . . $ pugi/xml_attribute#`operator!=`(c4f30c1835da086a).!=(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 318 | bool operatorcxx . . $ pugi/xml_attribute#`operator<`(c4f30c1835da086a).<(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 319 | bool operatorcxx . . $ pugi/xml_attribute#`operator>`(c4f30c1835da086a).>(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 320 | bool operatorcxx . . $ pugi/xml_attribute#`operator<=`(c4f30c1835da086a).<=(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 321 | bool operatorcxx . . $ pugi/xml_attribute#`operator>=`(c4f30c1835da086a).>=(const xml_attributecxx . . $ pugi/xml_attribute#& r) const; |
| 322 | |
| 323 | // Check if attribute is empty |
| 324 | bool emptycxx . . $ pugi/xml_attribute#empty(50ce9a9e25b4a850).() const; |
| 325 | |
| 326 | // Get attribute name/value, or "" if attribute is empty |
| 327 | const char_tcxx . . $ pugi/char_t#* namecxx . . $ pugi/xml_attribute#name(a9f41ea0e82d88cf).() const; |
| 328 | const char_tcxx . . $ pugi/char_t#* valuecxx . . $ pugi/xml_attribute#value(a9f41ea0e82d88cf).() const; |
| 329 | |
| 330 | // Get attribute value, or the default value if attribute is empty |
| 331 | const char_tcxx . . $ pugi/char_t#* as_stringcxx . . $ pugi/xml_attribute#as_string(865ea18671f48fc1).(const char_tcxx . . $ pugi/char_t#* def = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("")) const; |
| 332 | |
| 333 | // Get attribute value as a number, or the default value if conversion did not succeed or attribute is empty |
| 334 | int as_intcxx . . $ pugi/xml_attribute#as_int(7ccb52b1bfe01045).(int def = 0) const; |
| 335 | unsigned int as_uintcxx . . $ pugi/xml_attribute#as_uint(560347b7e9428769).(unsigned int def = 0) const; |
| 336 | double as_doublecxx . . $ pugi/xml_attribute#as_double(7e3a3c6b59947c6d).(double def = 0) const; |
| 337 | float as_floatcxx . . $ pugi/xml_attribute#as_float(d2a77f88c0402a72).(float def = 0) const; |
| 338 | |
| 339 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 340 | long long as_llongcxx . . $ pugi/xml_attribute#as_llong(c945cdbef923ac74).(long long def = 0) const; |
| 341 | unsigned long long as_ullongcxx . . $ pugi/xml_attribute#as_ullong(73358dd5f2354239).(unsigned long long def = 0) const; |
| 342 | #endif |
| 343 | |
| 344 | // Get attribute value as bool (returns true if first character is in '1tTyY' set), or the default value if attribute is empty |
| 345 | bool as_boolcxx . . $ pugi/xml_attribute#as_bool(962fae8be55e1d9).(bool def = false) const; |
| 346 | |
| 347 | // Set attribute name/value (returns false if attribute is empty or there is not enough memory) |
| 348 | bool set_namecxx . . $ pugi/xml_attribute#set_name(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* rhs); |
| 349 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* rhs); |
| 350 | |
| 351 | // Set attribute value with type conversion (numbers are converted to strings, boolean is converted to "true"/"false") |
| 352 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(83c267b20bac841a).(int rhs); |
| 353 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(dfa6e707f7696010).(unsigned int rhs); |
| 354 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(f8197d536af80c96).(double rhs); |
| 355 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(efaadfb7dc14930a).(bool rhs); |
| 356 | |
| 357 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 358 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(49597d8fcab147c1).(long long rhs); |
| 359 | bool set_valuecxx . . $ pugi/xml_attribute#set_value(c0ba31ea806f542d).(unsigned long long rhs); |
| 360 | #endif |
| 361 | |
| 362 | // Set attribute value (equivalent to set_value without error checking) |
| 363 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(e97dd6b1417bcd5a).=(const char_tcxx . . $ pugi/char_t#* rhs); |
| 364 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(769340c9bf9aab17).=(int rhs); |
| 365 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(a5b0244a840dd85d).=(unsigned int rhs); |
| 366 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(8ee70d80cf5999de).=(double rhs); |
| 367 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(e4ef2dfcdb6b654d).=(bool rhs); |
| 368 | |
| 369 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 370 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(a693303408c398c5).=(long long rhs); |
| 371 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute#`operator=`(835563329b83b0d1).=(unsigned long long rhs); |
| 372 | #endif |
| 373 | |
| 374 | // Get next/previous attribute in the attribute list of the parent node |
| 375 | xml_attributecxx . . $ pugi/xml_attribute# next_attributecxx . . $ pugi/xml_attribute#next_attribute(c767bc6c12a471c9).() const; |
| 376 | xml_attributecxx . . $ pugi/xml_attribute# previous_attributecxx . . $ pugi/xml_attribute#previous_attribute(c767bc6c12a471c9).() const; |
| 377 | |
| 378 | // Get hash value (unique for handles to the same object) |
| 379 | size_tcxx . . $ size_t# hash_valuecxx . . $ pugi/xml_attribute#hash_value(fe4d2d262d4164a8).() const; |
| 380 | |
| 381 | // Get internal pointer |
| 382 | xml_attribute_structcxx . . $ pugi/xml_attribute_struct#* internal_objectcxx . . $ pugi/xml_attribute#internal_object(998206308aa08ba1).() const; |
| 383 | }; |
| 384 | |
| 385 | #ifdef __BORLANDC__ |
| 386 | // Borland C++ workaround |
| 387 | bool PUGIXML_FUNCTION operator&&(const xml_attribute& lhs, bool rhs); |
| 388 | bool PUGIXML_FUNCTION operator||(const xml_attribute& lhs, bool rhs); |
| 389 | #endif |
| 390 | |
| 391 | // A light-weight handle for manipulating nodes in DOM tree |
| 392 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_nodecxx . . $ pugi/xml_node# |
| 393 | { |
| 394 | friend class xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#; |
| 395 | friend class xml_node_iteratorcxx . . $ pugi/xml_node_iterator#; |
| 396 | friend class xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#; |
| 397 | |
| 398 | protected: |
| 399 | xml_node_structcxx . . $ pugi/xml_node_struct#* _rootcxx . . $ pugi/xml_node#_root.; |
| 400 | |
| 401 | typedef void (*unspecified_bool_typecxx . . $ pugi/xml_node#unspecified_bool_type#)(xml_nodecxx . . $ pugi/xml_node#***); |
| 402 | |
| 403 | public: |
| 404 | // Default constructor. Constructs an empty node. |
| 405 | xml_nodecxx . . $ pugi/xml_node#xml_node(49f6e7a06ebc5aa8).(); |
| 406 | |
| 407 | // Constructs node from internal pointer |
| 408 | explicit xml_nodecxx . . $ pugi/xml_node#xml_node(44213a76eba1672d).(xml_node_structcxx . . $ pugi/xml_node_struct#* p); |
| 409 | |
| 410 | // Safe bool conversion operator |
| 411 | operatorcxx . . $ pugi/xml_node#`operator void (*)(pugi::xml_node ***)`(3f3bf13c4a247109). unspecified_bool_typecxx . . $ pugi/xml_node#unspecified_bool_type#() const; |
| 412 | |
| 413 | // Borland C++ workaround |
| 414 | bool operatorcxx . . $ pugi/xml_node#`operator!`(50ce9a9e25b4a850).!() const; |
| 415 | |
| 416 | // Comparison operators (compares wrapped node pointers) |
| 417 | bool operatorcxx . . $ pugi/xml_node#`operator==`(50061cec71f5c224).==(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 418 | bool operatorcxx . . $ pugi/xml_node#`operator!=`(50061cec71f5c224).!=(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 419 | bool operatorcxx . . $ pugi/xml_node#`operator<`(50061cec71f5c224).<(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 420 | bool operatorcxx . . $ pugi/xml_node#`operator>`(50061cec71f5c224).>(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 421 | bool operatorcxx . . $ pugi/xml_node#`operator<=`(50061cec71f5c224).<=(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 422 | bool operatorcxx . . $ pugi/xml_node#`operator>=`(50061cec71f5c224).>=(const xml_nodecxx . . $ pugi/xml_node#& r) const; |
| 423 | |
| 424 | // Check if node is empty. |
| 425 | bool emptycxx . . $ pugi/xml_node#empty(50ce9a9e25b4a850).() const; |
| 426 | |
| 427 | // Get node type |
| 428 | xml_node_typecxx . . $ pugi/xml_node_type# typecxx . . $ pugi/xml_node#type(8cf4a7660f863485).() const; |
| 429 | |
| 430 | // Get node name, or "" if node is empty or it has no name |
| 431 | const char_tcxx . . $ pugi/char_t#* namecxx . . $ pugi/xml_node#name(a9f41ea0e82d88cf).() const; |
| 432 | |
| 433 | // Get node value, or "" if node is empty or it has no value |
| 434 | // Note: For <node>text</node> node.value() does not return "text"! Use child_value() or text() methods to access text inside nodes. |
| 435 | const char_tcxx . . $ pugi/char_t#* valuecxx . . $ pugi/xml_node#value(a9f41ea0e82d88cf).() const; |
| 436 | |
| 437 | // Get attribute list |
| 438 | xml_attributecxx . . $ pugi/xml_attribute# first_attributecxx . . $ pugi/xml_node#first_attribute(c767bc6c12a471c9).() const; |
| 439 | xml_attributecxx . . $ pugi/xml_attribute# last_attributecxx . . $ pugi/xml_node#last_attribute(c767bc6c12a471c9).() const; |
| 440 | |
| 441 | // Get children list |
| 442 | xml_nodecxx . . $ pugi/xml_node# first_childcxx . . $ pugi/xml_node#first_child(692a06b88ec72efc).() const; |
| 443 | xml_nodecxx . . $ pugi/xml_node# last_childcxx . . $ pugi/xml_node#last_child(692a06b88ec72efc).() const; |
| 444 | |
| 445 | // Get next/previous sibling in the children list of the parent node |
| 446 | xml_nodecxx . . $ pugi/xml_node# next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).() const; |
| 447 | xml_nodecxx . . $ pugi/xml_node# previous_siblingcxx . . $ pugi/xml_node#previous_sibling(692a06b88ec72efc).() const; |
| 448 | |
| 449 | // Get parent node |
| 450 | xml_nodecxx . . $ pugi/xml_node# parentcxx . . $ pugi/xml_node#parent(692a06b88ec72efc).() const; |
| 451 | |
| 452 | // Get root of DOM tree this node belongs to |
| 453 | xml_nodecxx . . $ pugi/xml_node# rootcxx . . $ pugi/xml_node#root(692a06b88ec72efc).() const; |
| 454 | |
| 455 | // Get text object for the current node |
| 456 | xml_textcxx . . $ pugi/xml_text# textcxx . . $ pugi/xml_node#text(8332fa247f021ab).() const; |
| 457 | |
| 458 | // Get child, attribute or next/previous sibling with the specified name |
| 459 | xml_nodecxx . . $ pugi/xml_node# childcxx . . $ pugi/xml_node#child(19545ac55d8e08f4).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 460 | xml_attributecxx . . $ pugi/xml_attribute# attributecxx . . $ pugi/xml_node#attribute(760b1819de0561d9).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 461 | xml_nodecxx . . $ pugi/xml_node# next_siblingcxx . . $ pugi/xml_node#next_sibling(19545ac55d8e08f4).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 462 | xml_nodecxx . . $ pugi/xml_node# previous_siblingcxx . . $ pugi/xml_node#previous_sibling(19545ac55d8e08f4).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 463 | |
| 464 | // Get child value of current node; that is, value of the first child node of type PCDATA/CDATA |
| 465 | const char_tcxx . . $ pugi/char_t#* child_valuecxx . . $ pugi/xml_node#child_value(a9f41ea0e82d88cf).() const; |
| 466 | |
| 467 | // Get child value of child with specified name. Equivalent to child(name).child_value(). |
| 468 | const char_tcxx . . $ pugi/char_t#* child_valuecxx . . $ pugi/xml_node#child_value(865ea18671f48fc1).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 469 | |
| 470 | // Set node name/value (returns false if node is empty, there is not enough memory, or node can not have name/value) |
| 471 | bool set_namecxx . . $ pugi/xml_node#set_name(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* rhs); |
| 472 | bool set_valuecxx . . $ pugi/xml_node#set_value(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* rhs); |
| 473 | |
| 474 | // Add attribute with specified name. Returns added attribute, or empty attribute on errors. |
| 475 | xml_attributecxx . . $ pugi/xml_attribute# append_attributecxx . . $ pugi/xml_node#append_attribute(ebf82b7b6f96d3a9).(const char_tcxx . . $ pugi/char_t#* name); |
| 476 | xml_attributecxx . . $ pugi/xml_attribute# prepend_attributecxx . . $ pugi/xml_node#prepend_attribute(ebf82b7b6f96d3a9).(const char_tcxx . . $ pugi/char_t#* name); |
| 477 | xml_attributecxx . . $ pugi/xml_attribute# insert_attribute_aftercxx . . $ pugi/xml_node#insert_attribute_after(80e8b57b8cc484fa).(const char_tcxx . . $ pugi/char_t#* name, const xml_attributecxx . . $ pugi/xml_attribute#& attr); |
| 478 | xml_attributecxx . . $ pugi/xml_attribute# insert_attribute_beforecxx . . $ pugi/xml_node#insert_attribute_before(80e8b57b8cc484fa).(const char_tcxx . . $ pugi/char_t#* name, const xml_attributecxx . . $ pugi/xml_attribute#& attr); |
| 479 | |
| 480 | // Add a copy of the specified attribute. Returns added attribute, or empty attribute on errors. |
| 481 | xml_attributecxx . . $ pugi/xml_attribute# append_copycxx . . $ pugi/xml_node#append_copy(3db597fe756f704d).(const xml_attributecxx . . $ pugi/xml_attribute#& proto); |
| 482 | xml_attributecxx . . $ pugi/xml_attribute# prepend_copycxx . . $ pugi/xml_node#prepend_copy(3db597fe756f704d).(const xml_attributecxx . . $ pugi/xml_attribute#& proto); |
| 483 | xml_attributecxx . . $ pugi/xml_attribute# insert_copy_aftercxx . . $ pugi/xml_node#insert_copy_after(f58490f476007e25).(const xml_attributecxx . . $ pugi/xml_attribute#& proto, const xml_attributecxx . . $ pugi/xml_attribute#& attr); |
| 484 | xml_attributecxx . . $ pugi/xml_attribute# insert_copy_beforecxx . . $ pugi/xml_node#insert_copy_before(f58490f476007e25).(const xml_attributecxx . . $ pugi/xml_attribute#& proto, const xml_attributecxx . . $ pugi/xml_attribute#& attr); |
| 485 | |
| 486 | // Add child node with specified type. Returns added node, or empty node on errors. |
| 487 | xml_nodecxx . . $ pugi/xml_node# append_childcxx . . $ pugi/xml_node#append_child(f09df2f03c382a5c).(xml_node_typecxx . . $ pugi/xml_node_type# type = node_elementcxx . . $ pugi/node_element.); |
| 488 | xml_nodecxx . . $ pugi/xml_node# prepend_childcxx . . $ pugi/xml_node#prepend_child(f09df2f03c382a5c).(xml_node_typecxx . . $ pugi/xml_node_type# type = node_elementcxx . . $ pugi/node_element.); |
| 489 | xml_nodecxx . . $ pugi/xml_node# insert_child_aftercxx . . $ pugi/xml_node#insert_child_after(135a818aa2f9032b).(xml_node_typecxx . . $ pugi/xml_node_type# type, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 490 | xml_nodecxx . . $ pugi/xml_node# insert_child_beforecxx . . $ pugi/xml_node#insert_child_before(135a818aa2f9032b).(xml_node_typecxx . . $ pugi/xml_node_type# type, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 491 | |
| 492 | // Add child element with specified name. Returns added node, or empty node on errors. |
| 493 | xml_nodecxx . . $ pugi/xml_node# append_childcxx . . $ pugi/xml_node#append_child(625782b904aa9aa5).(const char_tcxx . . $ pugi/char_t#* name); |
| 494 | xml_nodecxx . . $ pugi/xml_node# prepend_childcxx . . $ pugi/xml_node#prepend_child(625782b904aa9aa5).(const char_tcxx . . $ pugi/char_t#* name); |
| 495 | xml_nodecxx . . $ pugi/xml_node# insert_child_aftercxx . . $ pugi/xml_node#insert_child_after(9cce67e436e93286).(const char_tcxx . . $ pugi/char_t#* name, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 496 | xml_nodecxx . . $ pugi/xml_node# insert_child_beforecxx . . $ pugi/xml_node#insert_child_before(9cce67e436e93286).(const char_tcxx . . $ pugi/char_t#* name, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 497 | |
| 498 | // Add a copy of the specified node as a child. Returns added node, or empty node on errors. |
| 499 | xml_nodecxx . . $ pugi/xml_node# append_copycxx . . $ pugi/xml_node#append_copy(5dc47c61b4d55eb9).(const xml_nodecxx . . $ pugi/xml_node#& proto); |
| 500 | xml_nodecxx . . $ pugi/xml_node# prepend_copycxx . . $ pugi/xml_node#prepend_copy(5dc47c61b4d55eb9).(const xml_nodecxx . . $ pugi/xml_node#& proto); |
| 501 | xml_nodecxx . . $ pugi/xml_node# insert_copy_aftercxx . . $ pugi/xml_node#insert_copy_after(fd334fde1f0b17fe).(const xml_nodecxx . . $ pugi/xml_node#& proto, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 502 | xml_nodecxx . . $ pugi/xml_node# insert_copy_beforecxx . . $ pugi/xml_node#insert_copy_before(fd334fde1f0b17fe).(const xml_nodecxx . . $ pugi/xml_node#& proto, const xml_nodecxx . . $ pugi/xml_node#& node); |
| 503 | |
| 504 | // Remove specified attribute |
| 505 | bool remove_attributecxx . . $ pugi/xml_node#remove_attribute(4c40478a1060334).(const xml_attributecxx . . $ pugi/xml_attribute#& a); |
| 506 | bool remove_attributecxx . . $ pugi/xml_node#remove_attribute(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* name); |
| 507 | |
| 508 | // Remove specified child |
| 509 | bool remove_childcxx . . $ pugi/xml_node#remove_child(5efe928ed53bf96b).(const xml_nodecxx . . $ pugi/xml_node#& n); |
| 510 | bool remove_childcxx . . $ pugi/xml_node#remove_child(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* name); |
| 511 | |
| 512 | // Parses buffer as an XML document fragment and appends all nodes as children of the current node. |
| 513 | // Copies/converts the buffer, so it may be deleted or changed after the function returns. |
| 514 | // Note: append_buffer allocates memory that has the lifetime of the owning document; removing the appended nodes does not immediately reclaim that memory. |
| 515 | xml_parse_resultcxx . . $ pugi/xml_parse_result# append_buffercxx . . $ pugi/xml_node#append_buffer(518c74e7940a8c16).(const void* contents, size_tcxx . . $ size_t# size, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 516 | |
| 517 | // Find attribute using predicate. Returns first attribute for which predicate returned true. |
| 518 | template <typename Predicate> xml_attributecxx . . $ pugi/xml_attribute# find_attributecxx . . $ pugi/xml_node#find_attribute(d5d7a1cb5bac806e).(Predicate pred) const |
| 519 | { |
| 520 | if (!_rootcxx . . $ pugi/xml_node#_root.) return xml_attributecxx . . $ pugi/xml_attribute#(); |
| 521 | |
| 522 | for (xml_attributecxx . . $ pugi/xml_attribute# attrib = first_attributecxx . . $ pugi/xml_node#first_attribute(c767bc6c12a471c9).(); attrib; attrib =cxx . . $ pugi/xml_attribute#`operator=`(9d023a4c42f435a5). attrib.next_attributecxx . . $ pugi/xml_attribute#next_attribute(c767bc6c12a471c9).()) |
| 523 | if (pred(attrib)) |
| 524 | return attrib; |
| 525 | |
| 526 | return xml_attributecxx . . $ pugi/xml_attribute#(); |
| 527 | } |
| 528 | |
| 529 | // Find child node using predicate. Returns first child for which predicate returned true. |
| 530 | template <typename Predicate> xml_nodecxx . . $ pugi/xml_node# find_childcxx . . $ pugi/xml_node#find_child(4699405ca595259d).(Predicate pred) const |
| 531 | { |
| 532 | if (!_rootcxx . . $ pugi/xml_node#_root.) return xml_nodecxx . . $ pugi/xml_node#xml_node(49f6e7a06ebc5aa8).(); |
| 533 | |
| 534 | for (xml_nodecxx . . $ pugi/xml_node# node = first_childcxx . . $ pugi/xml_node#first_child(692a06b88ec72efc).(); node; node =cxx . . $ pugi/xml_node#`operator=`(60f758adcaa60a9c). node.next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).()) |
| 535 | if (pred(node)) |
| 536 | return node; |
| 537 | |
| 538 | return xml_nodecxx . . $ pugi/xml_node#xml_node(49f6e7a06ebc5aa8).(); |
| 539 | } |
| 540 | |
| 541 | // Find node from subtree using predicate. Returns first node from subtree (depth-first), for which predicate returned true. |
| 542 | template <typename Predicate> xml_nodecxx . . $ pugi/xml_node# find_nodecxx . . $ pugi/xml_node#find_node(4699405ca595259d).(Predicate pred) const |
| 543 | { |
| 544 | if (!_rootcxx . . $ pugi/xml_node#_root.) return xml_nodecxx . . $ pugi/xml_node#xml_node(49f6e7a06ebc5aa8).(); |
| 545 | |
| 546 | xml_nodecxx . . $ pugi/xml_node# cur = first_childcxx . . $ pugi/xml_node#first_child(692a06b88ec72efc).(); |
| 547 | |
| 548 | while (cur._rootcxx . . $ pugi/xml_node#_root. && cur._rootcxx . . $ pugi/xml_node#_root. != _rootcxx . . $ pugi/xml_node#_root.) |
| 549 | { |
| 550 | if (pred(cur)) return cur; |
| 551 | |
| 552 | if (cur.first_childcxx . . $ pugi/xml_node#first_child(692a06b88ec72efc).()) cur =cxx . . $ pugi/xml_node#`operator=`(60f758adcaa60a9c). cur.first_childcxx . . $ pugi/xml_node#first_child(692a06b88ec72efc).(); |
| 553 | else if (cur.next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).()) cur =cxx . . $ pugi/xml_node#`operator=`(60f758adcaa60a9c). cur.next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).(); |
| 554 | else |
| 555 | { |
| 556 | while (!cxx . . $ pugi/xml_node#`operator!`(50ce9a9e25b4a850).cur.next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).() && cur._rootcxx . . $ pugi/xml_node#_root. != _rootcxx . . $ pugi/xml_node#_root.) cur =cxx . . $ pugi/xml_node#`operator=`(60f758adcaa60a9c). cur.parentcxx . . $ pugi/xml_node#parent(692a06b88ec72efc).(); |
| 557 | |
| 558 | if (cur._rootcxx . . $ pugi/xml_node#_root. != _rootcxx . . $ pugi/xml_node#_root.) cur =cxx . . $ pugi/xml_node#`operator=`(60f758adcaa60a9c). cur.next_siblingcxx . . $ pugi/xml_node#next_sibling(692a06b88ec72efc).(); |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | return xml_nodecxx . . $ pugi/xml_node#xml_node(49f6e7a06ebc5aa8).(); |
| 563 | } |
| 564 | |
| 565 | // Find child node by attribute name/value |
| 566 | xml_nodecxx . . $ pugi/xml_node# find_child_by_attributecxx . . $ pugi/xml_node#find_child_by_attribute(dee6aea95b3df810).(const char_tcxx . . $ pugi/char_t#* name, const char_tcxx . . $ pugi/char_t#* attr_name, const char_tcxx . . $ pugi/char_t#* attr_value) const; |
| 567 | xml_nodecxx . . $ pugi/xml_node# find_child_by_attributecxx . . $ pugi/xml_node#find_child_by_attribute(4fba0d41e7f1949c).(const char_tcxx . . $ pugi/char_t#* attr_name, const char_tcxx . . $ pugi/char_t#* attr_value) const; |
| 568 | |
| 569 | #ifndef PUGIXML_NO_STL |
| 570 | // Get the absolute node path from root as a text string. |
| 571 | string_tcxx . . $ pugi/string_t# pathcxx . . $ pugi/xml_node#path(4eecb59caf9bca09).(char_tcxx . . $ pugi/char_t# delimiter = '/') const; |
| 572 | #endif |
| 573 | |
| 574 | // Search for a node by path consisting of node names and . or .. elements. |
| 575 | xml_nodecxx . . $ pugi/xml_node# first_element_by_pathcxx . . $ pugi/xml_node#first_element_by_path(4919cc1e86f06592).(const char_tcxx . . $ pugi/char_t#* path, char_tcxx . . $ pugi/char_t# delimiter = '/') const; |
| 576 | |
| 577 | // Recursively traverse subtree with xml_tree_walker |
| 578 | bool traversecxx . . $ pugi/xml_node#traverse(3a562d63f3402609).(xml_tree_walkercxx . . $ pugi/xml_tree_walker#& walker); |
| 579 | |
| 580 | #ifndef PUGIXML_NO_XPATH |
| 581 | // Select single node by evaluating XPath query. Returns first node from the resulting node set. |
| 582 | xpath_nodecxx . . $ pugi/xpath_node# select_single_nodecxx . . $ pugi/xml_node#select_single_node(a764c2285d04d07d).(const char_tcxx . . $ pugi/char_t#* query, xpath_variable_setcxx . . $ pugi/xpath_variable_set#* variables = 0) const; |
| 583 | xpath_nodecxx . . $ pugi/xpath_node# select_single_nodecxx . . $ pugi/xml_node#select_single_node(2af0bb80130a3b7c).(const xpath_querycxx . . $ pugi/xpath_query#& query) const; |
| 584 | |
| 585 | // Select node set by evaluating XPath query |
| 586 | xpath_node_setcxx . . $ pugi/xpath_node_set# select_nodescxx . . $ pugi/xml_node#select_nodes(46dffaa74d4cf55f).(const char_tcxx . . $ pugi/char_t#* query, xpath_variable_setcxx . . $ pugi/xpath_variable_set#* variables = 0) const; |
| 587 | xpath_node_setcxx . . $ pugi/xpath_node_set# select_nodescxx . . $ pugi/xml_node#select_nodes(6dc0cbac0d626613).(const xpath_querycxx . . $ pugi/xpath_query#& query) const; |
| 588 | #endif |
| 589 | |
| 590 | // Print subtree using a writer object |
| 591 | void printcxx . . $ pugi/xml_node#print(4b4089ef58c2390a).(xml_writercxx . . $ pugi/xml_writer#& writer, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto., unsigned int depth = 0) const; |
| 592 | |
| 593 | #ifndef PUGIXML_NO_STL |
| 594 | // Print subtree to stream |
| 595 | void printcxx . . $ pugi/xml_node#print(6042b58511dc21ed).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char> >& os, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto., unsigned int depth = 0) const; |
| 596 | void printcxx . . $ pugi/xml_node#print(266a612b9d8229a).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t> >& os, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., unsigned int depth = 0) const; |
| 597 | #endif |
| 598 | |
| 599 | // Child nodes iterators |
| 600 | typedef xml_node_iteratorcxx . . $ pugi/xml_node_iterator# iteratorcxx . . $ pugi/xml_node#iterator#; |
| 601 | |
| 602 | iteratorcxx . . $ pugi/xml_node#iterator# begincxx . . $ pugi/xml_node#begin(7b72138da537c57f).() const; |
| 603 | iteratorcxx . . $ pugi/xml_node#iterator# endcxx . . $ pugi/xml_node#end(7b72138da537c57f).() const; |
| 604 | |
| 605 | // Attribute iterators |
| 606 | typedef xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator# attribute_iteratorcxx . . $ pugi/xml_node#attribute_iterator#; |
| 607 | |
| 608 | attribute_iteratorcxx . . $ pugi/xml_node#attribute_iterator# attributes_begincxx . . $ pugi/xml_node#attributes_begin(abfdb734d44fb52f).() const; |
| 609 | attribute_iteratorcxx . . $ pugi/xml_node#attribute_iterator# attributes_endcxx . . $ pugi/xml_node#attributes_end(abfdb734d44fb52f).() const; |
| 610 | |
| 611 | // Range-based for support |
| 612 | xml_object_rangecxx . . $ pugi/xml_object_range#<xml_node_iteratorcxx . . $ pugi/xml_node_iterator#> childrencxx . . $ pugi/xml_node#children(8720982d897523b6).() const; |
| 613 | xml_object_rangecxx . . $ pugi/xml_object_range#<xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#> childrencxx . . $ pugi/xml_node#children(fb3a101a730faf93).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 614 | xml_object_rangecxx . . $ pugi/xml_object_range#<xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#> attributescxx . . $ pugi/xml_node#attributes(10c1f86acb168825).() const; |
| 615 | |
| 616 | // Get node offset in parsed file/string (in char_t units) for debugging purposes |
| 617 | ptrdiff_tcxx . . $ ptrdiff_t# offset_debugcxx . . $ pugi/xml_node#offset_debug(57a65ae535d7db84).() const; |
| 618 | |
| 619 | // Get hash value (unique for handles to the same object) |
| 620 | size_tcxx . . $ size_t# hash_valuecxx . . $ pugi/xml_node#hash_value(fe4d2d262d4164a8).() const; |
| 621 | |
| 622 | // Get internal pointer |
| 623 | xml_node_structcxx . . $ pugi/xml_node_struct#* internal_objectcxx . . $ pugi/xml_node#internal_object(366a6618f283094b).() const; |
| 624 | }; |
| 625 | |
| 626 | #ifdef __BORLANDC__ |
| 627 | // Borland C++ workaround |
| 628 | bool PUGIXML_FUNCTION operator&&(const xml_node& lhs, bool rhs); |
| 629 | bool PUGIXML_FUNCTION operator||(const xml_node& lhs, bool rhs); |
| 630 | #endif |
| 631 | |
| 632 | // A helper for working with text inside PCDATA nodes |
| 633 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_textcxx . . $ pugi/xml_text# |
| 634 | { |
| 635 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 636 | |
| 637 | xml_node_structcxx . . $ pugi/xml_node_struct#* _rootcxx . . $ pugi/xml_text#_root.; |
| 638 | |
| 639 | typedef void (*unspecified_bool_typecxx . . $ pugi/xml_text#unspecified_bool_type#)(xml_textcxx . . $ pugi/xml_text#***); |
| 640 | |
| 641 | explicit xml_textcxx . . $ pugi/xml_text#xml_text(44213a76eba1672d).(xml_node_structcxx . . $ pugi/xml_node_struct#* root); |
| 642 | |
| 643 | xml_node_structcxx . . $ pugi/xml_node_struct#* _data_newcxx . . $ pugi/xml_text#_data_new(28e1c5fd330ac9c7).(); |
| 644 | xml_node_structcxx . . $ pugi/xml_node_struct#* _datacxx . . $ pugi/xml_text#_data(366a6618f283094b).() const; |
| 645 | |
| 646 | public: |
| 647 | // Default constructor. Constructs an empty object. |
| 648 | xml_textcxx . . $ pugi/xml_text#xml_text(49f6e7a06ebc5aa8).(); |
| 649 | |
| 650 | // Safe bool conversion operator |
| 651 | operatorcxx . . $ pugi/xml_text#`operator void (*)(pugi::xml_text ***)`(d4696fad1b115e12). unspecified_bool_typecxx . . $ pugi/xml_text#unspecified_bool_type#() const; |
| 652 | |
| 653 | // Borland C++ workaround |
| 654 | bool operatorcxx . . $ pugi/xml_text#`operator!`(50ce9a9e25b4a850).!() const; |
| 655 | |
| 656 | // Check if text object is empty |
| 657 | bool emptycxx . . $ pugi/xml_text#empty(50ce9a9e25b4a850).() const; |
| 658 | |
| 659 | // Get text, or "" if object is empty |
| 660 | const char_tcxx . . $ pugi/char_t#* getcxx . . $ pugi/xml_text#get(a9f41ea0e82d88cf).() const; |
| 661 | |
| 662 | // Get text, or the default value if object is empty |
| 663 | const char_tcxx . . $ pugi/char_t#* as_stringcxx . . $ pugi/xml_text#as_string(865ea18671f48fc1).(const char_tcxx . . $ pugi/char_t#* def = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("")) const; |
| 664 | |
| 665 | // Get text as a number, or the default value if conversion did not succeed or object is empty |
| 666 | int as_intcxx . . $ pugi/xml_text#as_int(7ccb52b1bfe01045).(int def = 0) const; |
| 667 | unsigned int as_uintcxx . . $ pugi/xml_text#as_uint(560347b7e9428769).(unsigned int def = 0) const; |
| 668 | double as_doublecxx . . $ pugi/xml_text#as_double(7e3a3c6b59947c6d).(double def = 0) const; |
| 669 | float as_floatcxx . . $ pugi/xml_text#as_float(d2a77f88c0402a72).(float def = 0) const; |
| 670 | |
| 671 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 672 | long long as_llongcxx . . $ pugi/xml_text#as_llong(c945cdbef923ac74).(long long def = 0) const; |
| 673 | unsigned long long as_ullongcxx . . $ pugi/xml_text#as_ullong(73358dd5f2354239).(unsigned long long def = 0) const; |
| 674 | #endif |
| 675 | |
| 676 | // Get text as bool (returns true if first character is in '1tTyY' set), or the default value if object is empty |
| 677 | bool as_boolcxx . . $ pugi/xml_text#as_bool(962fae8be55e1d9).(bool def = false) const; |
| 678 | |
| 679 | // Set text (returns false if object is empty or there is not enough memory) |
| 680 | bool setcxx . . $ pugi/xml_text#set(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* rhs); |
| 681 | |
| 682 | // Set text with type conversion (numbers are converted to strings, boolean is converted to "true"/"false") |
| 683 | bool setcxx . . $ pugi/xml_text#set(83c267b20bac841a).(int rhs); |
| 684 | bool setcxx . . $ pugi/xml_text#set(dfa6e707f7696010).(unsigned int rhs); |
| 685 | bool setcxx . . $ pugi/xml_text#set(f8197d536af80c96).(double rhs); |
| 686 | bool setcxx . . $ pugi/xml_text#set(efaadfb7dc14930a).(bool rhs); |
| 687 | |
| 688 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 689 | bool setcxx . . $ pugi/xml_text#set(49597d8fcab147c1).(long long rhs); |
| 690 | bool setcxx . . $ pugi/xml_text#set(c0ba31ea806f542d).(unsigned long long rhs); |
| 691 | #endif |
| 692 | |
| 693 | // Set text (equivalent to set without error checking) |
| 694 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(b4510beae557d307).=(const char_tcxx . . $ pugi/char_t#* rhs); |
| 695 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(202b904538bd6ee0).=(int rhs); |
| 696 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(98cd645c24481b7a).=(unsigned int rhs); |
| 697 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(2cd664d11a0d86f7).=(double rhs); |
| 698 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(674b478500e2d0ac).=(bool rhs); |
| 699 | |
| 700 | #ifdef PUGIXML_HAS_LONG_LONGcxx . . $ `src/common/pugixml.h:69:11`! |
| 701 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(9404139c4f1a724b).=(long long rhs); |
| 702 | xml_textcxx . . $ pugi/xml_text#& operatorcxx . . $ pugi/xml_text#`operator=`(ba864986fe70d353).=(unsigned long long rhs); |
| 703 | #endif |
| 704 | |
| 705 | // Get the data node (node_pcdata or node_cdata) for this object |
| 706 | xml_nodecxx . . $ pugi/xml_node# datacxx . . $ pugi/xml_text#data(692a06b88ec72efc).() const; |
| 707 | }; |
| 708 | |
| 709 | #ifdef __BORLANDC__ |
| 710 | // Borland C++ workaround |
| 711 | bool PUGIXML_FUNCTION operator&&(const xml_text& lhs, bool rhs); |
| 712 | bool PUGIXML_FUNCTION operator||(const xml_text& lhs, bool rhs); |
| 713 | #endif |
| 714 | |
| 715 | // Child node iterator (a bidirectional iterator over a collection of xml_node) |
| 716 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_node_iteratorcxx . . $ pugi/xml_node_iterator# |
| 717 | { |
| 718 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 719 | |
| 720 | private: |
| 721 | mutable xml_nodecxx . . $ pugi/xml_node# _wrapcxx . . $ pugi/xml_node_iterator#_wrap.; |
| 722 | xml_nodecxx . . $ pugi/xml_node# _parentcxx . . $ pugi/xml_node_iterator#_parent.; |
| 723 | |
| 724 | xml_node_iteratorcxx . . $ pugi/xml_node_iterator#xml_node_iterator(7e2b8de2703ddc8d).(xml_node_structcxx . . $ pugi/xml_node_struct#* ref, xml_node_structcxx . . $ pugi/xml_node_struct#* parent); |
| 725 | |
| 726 | public: |
| 727 | // Iterator traits |
| 728 | typedef ptrdiff_tcxx . . $ ptrdiff_t# difference_typecxx . . $ pugi/xml_node_iterator#difference_type#; |
| 729 | typedef xml_nodecxx . . $ pugi/xml_node# value_typecxx . . $ pugi/xml_node_iterator#value_type#; |
| 730 | typedef xml_nodecxx . . $ pugi/xml_node#* pointercxx . . $ pugi/xml_node_iterator#pointer#; |
| 731 | typedef xml_nodecxx . . $ pugi/xml_node#& referencecxx . . $ pugi/xml_node_iterator#reference#; |
| 732 | |
| 733 | #ifndef PUGIXML_NO_STL |
| 734 | typedef stdcxx . . $ std/::bidirectional_iterator_tagcxx . . $ std/bidirectional_iterator_tag# iterator_categorycxx . . $ pugi/xml_node_iterator#iterator_category#; |
| 735 | #endif |
| 736 | |
| 737 | // Default constructor |
| 738 | xml_node_iteratorcxx . . $ pugi/xml_node_iterator#xml_node_iterator(49f6e7a06ebc5aa8).(); |
| 739 | |
| 740 | // Construct an iterator which points to the specified node |
| 741 | xml_node_iteratorcxx . . $ pugi/xml_node_iterator#xml_node_iterator(ad773084382c4c72).(const xml_nodecxx . . $ pugi/xml_node#& node); |
| 742 | |
| 743 | // Iterator operators |
| 744 | bool operatorcxx . . $ pugi/xml_node_iterator#`operator==`(314f7f7176757ff0).==(const xml_node_iteratorcxx . . $ pugi/xml_node_iterator#& rhs) const; |
| 745 | bool operatorcxx . . $ pugi/xml_node_iterator#`operator!=`(314f7f7176757ff0).!=(const xml_node_iteratorcxx . . $ pugi/xml_node_iterator#& rhs) const; |
| 746 | |
| 747 | xml_nodecxx . . $ pugi/xml_node#& operatorcxx . . $ pugi/xml_node_iterator#`operator*`(a7f32d5eb46d6b2f).*() const; |
| 748 | xml_nodecxx . . $ pugi/xml_node#* operatorcxx . . $ pugi/xml_node_iterator#`operator->`(2ea2741e17660a2b).->() const; |
| 749 | |
| 750 | const xml_node_iteratorcxx . . $ pugi/xml_node_iterator#& operatorcxx . . $ pugi/xml_node_iterator#operator++(af3d7b82cd41e74).++(); |
| 751 | xml_node_iteratorcxx . . $ pugi/xml_node_iterator# operatorcxx . . $ pugi/xml_node_iterator#operator++(777fb2e91767b48d).++(int); |
| 752 | |
| 753 | const xml_node_iteratorcxx . . $ pugi/xml_node_iterator#& operatorcxx . . $ pugi/xml_node_iterator#operator--(af3d7b82cd41e74).--(); |
| 754 | xml_node_iteratorcxx . . $ pugi/xml_node_iterator# operatorcxx . . $ pugi/xml_node_iterator#operator--(777fb2e91767b48d).--(int); |
| 755 | }; |
| 756 | |
| 757 | // Attribute iterator (a bidirectional iterator over a collection of xml_attribute) |
| 758 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator# |
| 759 | { |
| 760 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 761 | |
| 762 | private: |
| 763 | mutable xml_attributecxx . . $ pugi/xml_attribute# _wrapcxx . . $ pugi/xml_attribute_iterator#_wrap.; |
| 764 | xml_nodecxx . . $ pugi/xml_node# _parentcxx . . $ pugi/xml_attribute_iterator#_parent.; |
| 765 | |
| 766 | xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#xml_attribute_iterator(bfadb11c8ea80d43).(xml_attribute_structcxx . . $ pugi/xml_attribute_struct#* ref, xml_node_structcxx . . $ pugi/xml_node_struct#* parent); |
| 767 | |
| 768 | public: |
| 769 | // Iterator traits |
| 770 | typedef ptrdiff_tcxx . . $ ptrdiff_t# difference_typecxx . . $ pugi/xml_attribute_iterator#difference_type#; |
| 771 | typedef xml_attributecxx . . $ pugi/xml_attribute# value_typecxx . . $ pugi/xml_attribute_iterator#value_type#; |
| 772 | typedef xml_attributecxx . . $ pugi/xml_attribute#* pointercxx . . $ pugi/xml_attribute_iterator#pointer#; |
| 773 | typedef xml_attributecxx . . $ pugi/xml_attribute#& referencecxx . . $ pugi/xml_attribute_iterator#reference#; |
| 774 | |
| 775 | #ifndef PUGIXML_NO_STL |
| 776 | typedef stdcxx . . $ std/::bidirectional_iterator_tagcxx . . $ std/bidirectional_iterator_tag# iterator_categorycxx . . $ pugi/xml_attribute_iterator#iterator_category#; |
| 777 | #endif |
| 778 | |
| 779 | // Default constructor |
| 780 | xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#xml_attribute_iterator(49f6e7a06ebc5aa8).(); |
| 781 | |
| 782 | // Construct an iterator which points to the specified attribute |
| 783 | xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#xml_attribute_iterator(f63bdbc95229af5a).(const xml_attributecxx . . $ pugi/xml_attribute#& attr, const xml_nodecxx . . $ pugi/xml_node#& parent); |
| 784 | |
| 785 | // Iterator operators |
| 786 | bool operatorcxx . . $ pugi/xml_attribute_iterator#`operator==`(aa7c9404faee6bc4).==(const xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#& rhs) const; |
| 787 | bool operatorcxx . . $ pugi/xml_attribute_iterator#`operator!=`(aa7c9404faee6bc4).!=(const xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#& rhs) const; |
| 788 | |
| 789 | xml_attributecxx . . $ pugi/xml_attribute#& operatorcxx . . $ pugi/xml_attribute_iterator#`operator*`(66f07d12ec14c237).*() const; |
| 790 | xml_attributecxx . . $ pugi/xml_attribute#* operatorcxx . . $ pugi/xml_attribute_iterator#`operator->`(9c3ea15789bc920d).->() const; |
| 791 | |
| 792 | const xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#& operatorcxx . . $ pugi/xml_attribute_iterator#operator++(4b9371c4fd76321f).++(); |
| 793 | xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator# operatorcxx . . $ pugi/xml_attribute_iterator#operator++(ea5d6ae427fc1339).++(int); |
| 794 | |
| 795 | const xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator#& operatorcxx . . $ pugi/xml_attribute_iterator#operator--(4b9371c4fd76321f).--(); |
| 796 | xml_attribute_iteratorcxx . . $ pugi/xml_attribute_iterator# operatorcxx . . $ pugi/xml_attribute_iterator#operator--(ea5d6ae427fc1339).--(int); |
| 797 | }; |
| 798 | |
| 799 | // Named node range helper |
| 800 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator# |
| 801 | { |
| 802 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 803 | |
| 804 | public: |
| 805 | // Iterator traits |
| 806 | typedef ptrdiff_tcxx . . $ ptrdiff_t# difference_typecxx . . $ pugi/xml_named_node_iterator#difference_type#; |
| 807 | typedef xml_nodecxx . . $ pugi/xml_node# value_typecxx . . $ pugi/xml_named_node_iterator#value_type#; |
| 808 | typedef xml_nodecxx . . $ pugi/xml_node#* pointercxx . . $ pugi/xml_named_node_iterator#pointer#; |
| 809 | typedef xml_nodecxx . . $ pugi/xml_node#& referencecxx . . $ pugi/xml_named_node_iterator#reference#; |
| 810 | |
| 811 | #ifndef PUGIXML_NO_STL |
| 812 | typedef stdcxx . . $ std/::bidirectional_iterator_tagcxx . . $ std/bidirectional_iterator_tag# iterator_categorycxx . . $ pugi/xml_named_node_iterator#iterator_category#; |
| 813 | #endif |
| 814 | |
| 815 | // Default constructor |
| 816 | xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#xml_named_node_iterator(49f6e7a06ebc5aa8).(); |
| 817 | |
| 818 | // Construct an iterator which points to the specified node |
| 819 | xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#xml_named_node_iterator(e33345e2ebb9211).(const xml_nodecxx . . $ pugi/xml_node#& node, const char_tcxx . . $ pugi/char_t#* name); |
| 820 | |
| 821 | // Iterator operators |
| 822 | bool operatorcxx . . $ pugi/xml_named_node_iterator#`operator==`(ece3b88680d222e5).==(const xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#& rhs) const; |
| 823 | bool operatorcxx . . $ pugi/xml_named_node_iterator#`operator!=`(ece3b88680d222e5).!=(const xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#& rhs) const; |
| 824 | |
| 825 | xml_nodecxx . . $ pugi/xml_node#& operatorcxx . . $ pugi/xml_named_node_iterator#`operator*`(a7f32d5eb46d6b2f).*() const; |
| 826 | xml_nodecxx . . $ pugi/xml_node#* operatorcxx . . $ pugi/xml_named_node_iterator#`operator->`(2ea2741e17660a2b).->() const; |
| 827 | |
| 828 | const xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#& operatorcxx . . $ pugi/xml_named_node_iterator#operator++(88baf634022f69c2).++(); |
| 829 | xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator# operatorcxx . . $ pugi/xml_named_node_iterator#operator++(953b191fbdcb9a3).++(int); |
| 830 | |
| 831 | const xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#& operatorcxx . . $ pugi/xml_named_node_iterator#operator--(88baf634022f69c2).--(); |
| 832 | xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator# operatorcxx . . $ pugi/xml_named_node_iterator#operator--(953b191fbdcb9a3).--(int); |
| 833 | |
| 834 | private: |
| 835 | mutable xml_nodecxx . . $ pugi/xml_node# _wrapcxx . . $ pugi/xml_named_node_iterator#_wrap.; |
| 836 | xml_nodecxx . . $ pugi/xml_node# _parentcxx . . $ pugi/xml_named_node_iterator#_parent.; |
| 837 | const char_tcxx . . $ pugi/char_t#* _namecxx . . $ pugi/xml_named_node_iterator#_name.; |
| 838 | |
| 839 | xml_named_node_iteratorcxx . . $ pugi/xml_named_node_iterator#xml_named_node_iterator(a212f80a4bed16f9).(xml_node_structcxx . . $ pugi/xml_node_struct#* ref, xml_node_structcxx . . $ pugi/xml_node_struct#* parent, const char_tcxx . . $ pugi/char_t#* name); |
| 840 | }; |
| 841 | |
| 842 | // Abstract tree walker class (see xml_node::traverse) |
| 843 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_tree_walkercxx . . $ pugi/xml_tree_walker# |
| 844 | { |
| 845 | friend class xml_nodecxx . . $ pugi/xml_node#; |
| 846 | |
| 847 | private: |
| 848 | int _depthcxx . . $ pugi/xml_tree_walker#_depth.; |
| 849 | |
| 850 | protected: |
| 851 | // Get current traversal depth |
| 852 | int depthcxx . . $ pugi/xml_tree_walker#depth(455f465bc33b4cdf).() const; |
| 853 | |
| 854 | public: |
| 855 | xml_tree_walkercxx . . $ pugi/xml_tree_walker#xml_tree_walker(49f6e7a06ebc5aa8).(); |
| 856 | virtual ~cxx . . $ pugi/xml_tree_walker#`~xml_tree_walker`(ced63f7c635d850d).xml_tree_walkercxx . . $ pugi/xml_tree_walker#(); |
| 857 | |
| 858 | // Callback that is called when traversal begins |
| 859 | virtual bool begincxx . . $ pugi/xml_tree_walker#begin(d7e61f6cb17f4e47).(xml_nodecxx . . $ pugi/xml_node#& node); |
| 860 | |
| 861 | // Callback that is called for each node traversed |
| 862 | virtual bool for_eachcxx . . $ pugi/xml_tree_walker#for_each(d7e61f6cb17f4e47).(xml_nodecxx . . $ pugi/xml_node#& node) = 0; |
| 863 | |
| 864 | // Callback that is called when traversal ends |
| 865 | virtual bool endcxx . . $ pugi/xml_tree_walker#end(d7e61f6cb17f4e47).(xml_nodecxx . . $ pugi/xml_node#& node); |
| 866 | }; |
| 867 | |
| 868 | // Parsing status, returned as part of xml_parse_result object |
| 869 | enum xml_parse_statuscxx . . $ pugi/xml_parse_status# |
| 870 | { |
| 871 | status_okcxx . . $ pugi/status_ok. = 0, // No error |
| 872 | |
| 873 | status_file_not_foundcxx . . $ pugi/status_file_not_found., // File was not found during load_file() |
| 874 | status_io_errorcxx . . $ pugi/status_io_error., // Error reading from file/stream |
| 875 | status_out_of_memorycxx . . $ pugi/status_out_of_memory., // Could not allocate memory |
| 876 | status_internal_errorcxx . . $ pugi/status_internal_error., // Internal error occurred |
| 877 | |
| 878 | status_unrecognized_tagcxx . . $ pugi/status_unrecognized_tag., // Parser could not determine tag type |
| 879 | |
| 880 | status_bad_picxx . . $ pugi/status_bad_pi., // Parsing error occurred while parsing document declaration/processing instruction |
| 881 | status_bad_commentcxx . . $ pugi/status_bad_comment., // Parsing error occurred while parsing comment |
| 882 | status_bad_cdatacxx . . $ pugi/status_bad_cdata., // Parsing error occurred while parsing CDATA section |
| 883 | status_bad_doctypecxx . . $ pugi/status_bad_doctype., // Parsing error occurred while parsing document type declaration |
| 884 | status_bad_pcdatacxx . . $ pugi/status_bad_pcdata., // Parsing error occurred while parsing PCDATA section |
| 885 | status_bad_start_elementcxx . . $ pugi/status_bad_start_element., // Parsing error occurred while parsing start element tag |
| 886 | status_bad_attributecxx . . $ pugi/status_bad_attribute., // Parsing error occurred while parsing element attribute |
| 887 | status_bad_end_elementcxx . . $ pugi/status_bad_end_element., // Parsing error occurred while parsing end element tag |
| 888 | status_end_element_mismatchcxx . . $ pugi/status_end_element_mismatch.,// There was a mismatch of start-end tags (closing tag had incorrect name, some tag was not closed or there was an excessive closing tag) |
| 889 | |
| 890 | status_append_invalid_rootcxx . . $ pugi/status_append_invalid_root., // Unable to append nodes since root type is not node_element or node_document (exclusive to xml_node::append_buffer) |
| 891 | |
| 892 | status_no_document_elementcxx . . $ pugi/status_no_document_element. // Parsing resulted in a document without element nodes |
| 893 | }; |
| 894 | |
| 895 | // Parsing result |
| 896 | struct PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_parse_resultcxx . . $ pugi/xml_parse_result# |
| 897 | { |
| 898 | // Parsing status (see xml_parse_status) |
| 899 | xml_parse_statuscxx . . $ pugi/xml_parse_status# statuscxx . . $ pugi/xml_parse_result#status.; |
| 900 | |
| 901 | // Last parsed offset (in char_t units from start of input data) |
| 902 | ptrdiff_tcxx . . $ ptrdiff_t# offsetcxx . . $ pugi/xml_parse_result#offset.; |
| 903 | |
| 904 | // Source document encoding |
| 905 | xml_encodingcxx . . $ pugi/xml_encoding# encodingcxx . . $ pugi/xml_parse_result#encoding.; |
| 906 | |
| 907 | // Default constructor, initializes object to failed state |
| 908 | xml_parse_resultcxx . . $ pugi/xml_parse_result#xml_parse_result(49f6e7a06ebc5aa8).(); |
| 909 | |
| 910 | // Cast to bool operator |
| 911 | operatorcxx . . $ pugi/xml_parse_result#`operator bool`(50ce9a9e25b4a850). bool() const; |
| 912 | |
| 913 | // Get error description |
| 914 | const char* descriptioncxx . . $ pugi/xml_parse_result#description(a9f41ea0e82d88cf).() const; |
| 915 | }; |
| 916 | |
| 917 | // Document class (DOM tree root) |
| 918 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xml_documentcxx . . $ pugi/xml_document#: public xml_nodecxx . . $ pugi/xml_node# |
| 919 | { |
| 920 | private: |
| 921 | char_tcxx . . $ pugi/char_t#* _buffercxx . . $ pugi/xml_document#_buffer.; |
| 922 | |
| 923 | char _memorycxx . . $ pugi/xml_document#_memory.[192]; |
| 924 | |
| 925 | // Non-copyable semantics |
| 926 | xml_documentcxx . . $ pugi/xml_document#xml_document(a3d137629e52f1b0).(const xml_documentcxx . . $ pugi/xml_document#&); |
| 927 | const xml_documentcxx . . $ pugi/xml_document#& operatorcxx . . $ pugi/xml_document#`operator=`(2a09f9321ca119b6).=(const xml_documentcxx . . $ pugi/xml_document#&); |
| 928 | |
| 929 | void createcxx . . $ pugi/xml_document#create(49f6e7a06ebc5aa8).(); |
| 930 | void destroycxx . . $ pugi/xml_document#destroy(49f6e7a06ebc5aa8).(); |
| 931 | |
| 932 | public: |
| 933 | // Default constructor, makes empty document |
| 934 | xml_documentcxx . . $ pugi/xml_document#xml_document(49f6e7a06ebc5aa8).(); |
| 935 | |
| 936 | // Destructor, invalidates all node/attribute handles to this document |
| 937 | ~cxx . . $ pugi/xml_document#`~xml_document`(ced63f7c635d850d).xml_documentcxx . . $ pugi/xml_document#(); |
| 938 | |
| 939 | // Removes all nodes, leaving the empty document |
| 940 | void resetcxx . . $ pugi/xml_document#reset(49f6e7a06ebc5aa8).(); |
| 941 | |
| 942 | // Removes all nodes, then copies the entire contents of the specified document |
| 943 | void resetcxx . . $ pugi/xml_document#reset(a3d137629e52f1b0).(const xml_documentcxx . . $ pugi/xml_document#& proto); |
| 944 | |
| 945 | #ifndef PUGIXML_NO_STL |
| 946 | // Load document from stream. |
| 947 | xml_parse_resultcxx . . $ pugi/xml_parse_result# loadcxx . . $ pugi/xml_document#load(bb2f6cf225e5cb01).(stdcxx . . $ std/::basic_istreamcxx . . $ std/basic_istream#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char> >& stream, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 948 | xml_parse_resultcxx . . $ pugi/xml_parse_result# loadcxx . . $ pugi/xml_document#load(cb2a0e0ea284e152).(stdcxx . . $ std/::basic_istreamcxx . . $ std/basic_istream#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t> >& stream, unsigned int options = parse_defaultcxx . . $ pugi/parse_default.); |
| 949 | #endif |
| 950 | |
| 951 | // Load document from zero-terminated string. No encoding conversions are applied. |
| 952 | xml_parse_resultcxx . . $ pugi/xml_parse_result# loadcxx . . $ pugi/xml_document#load(b88d2f56d323a99c).(const char_tcxx . . $ pugi/char_t#* contents, unsigned int options = parse_defaultcxx . . $ pugi/parse_default.); |
| 953 | |
| 954 | // Load document from file |
| 955 | xml_parse_resultcxx . . $ pugi/xml_parse_result# load_filecxx . . $ pugi/xml_document#load_file(f7f2c4c0d31325b1).(const char* path, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 956 | xml_parse_resultcxx . . $ pugi/xml_parse_result# load_filecxx . . $ pugi/xml_document#load_file(eb378474a6489c1f).(const wchar_t* path, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 957 | |
| 958 | // Load document from buffer. Copies/converts the buffer, so it may be deleted or changed after the function returns. |
| 959 | xml_parse_resultcxx . . $ pugi/xml_parse_result# load_buffercxx . . $ pugi/xml_document#load_buffer(518c74e7940a8c16).(const void* contents, size_tcxx . . $ size_t# size, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 960 | |
| 961 | // Load document from buffer, using the buffer for in-place parsing (the buffer is modified and used for storage of document data). |
| 962 | // You should ensure that buffer data will persist throughout the document's lifetime, and free the buffer memory manually once document is destroyed. |
| 963 | xml_parse_resultcxx . . $ pugi/xml_parse_result# load_buffer_inplacecxx . . $ pugi/xml_document#load_buffer_inplace(183bf97c5e252a74).(void* contents, size_tcxx . . $ size_t# size, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 964 | |
| 965 | // Load document from buffer, using the buffer for in-place parsing (the buffer is modified and used for storage of document data). |
| 966 | // You should allocate the buffer with pugixml allocation function; document will free the buffer when it is no longer needed (you can't use it anymore). |
| 967 | xml_parse_resultcxx . . $ pugi/xml_parse_result# load_buffer_inplace_owncxx . . $ pugi/xml_document#load_buffer_inplace_own(183bf97c5e252a74).(void* contents, size_tcxx . . $ size_t# size, unsigned int options = parse_defaultcxx . . $ pugi/parse_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.); |
| 968 | |
| 969 | // Save XML document to writer (semantics is slightly different from xml_node::print, see documentation for details). |
| 970 | void savecxx . . $ pugi/xml_document#save(210ef26f4deb2c78).(xml_writercxx . . $ pugi/xml_writer#& writer, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.) const; |
| 971 | |
| 972 | #ifndef PUGIXML_NO_STL |
| 973 | // Save XML document to stream (semantics is slightly different from xml_node::print, see documentation for details). |
| 974 | void savecxx . . $ pugi/xml_document#save(92404d06827c4818).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char> >& stream, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.) const; |
| 975 | void savecxx . . $ pugi/xml_document#save(1a52c283023675dd).(stdcxx . . $ std/::basic_ostreamcxx . . $ std/basic_ostream#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t> >& stream, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default.) const; |
| 976 | #endif |
| 977 | |
| 978 | // Save XML to file |
| 979 | bool save_filecxx . . $ pugi/xml_document#save_file(457b17d7c99dd1d7).(const char* path, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.) const; |
| 980 | bool save_filecxx . . $ pugi/xml_document#save_file(821149716c909d7e).(const wchar_t* path, const char_tcxx . . $ pugi/char_t#* indent = PUGIXML_TEXTcxx . . $ `src/common/pugixml.h:80:10`!("\t"), unsigned int flags = format_defaultcxx . . $ pugi/format_default., xml_encodingcxx . . $ pugi/xml_encoding# encoding = encoding_autocxx . . $ pugi/encoding_auto.) const; |
| 981 | |
| 982 | // Get document element |
| 983 | xml_nodecxx . . $ pugi/xml_node# document_elementcxx . . $ pugi/xml_document#document_element(692a06b88ec72efc).() const; |
| 984 | }; |
| 985 | |
| 986 | #ifndef PUGIXML_NO_XPATH |
| 987 | // XPath query return type |
| 988 | enum xpath_value_typecxx . . $ pugi/xpath_value_type# |
| 989 | { |
| 990 | xpath_type_nonecxx . . $ pugi/xpath_type_none., // Unknown type (query failed to compile) |
| 991 | xpath_type_node_setcxx . . $ pugi/xpath_type_node_set., // Node set (xpath_node_set) |
| 992 | xpath_type_numbercxx . . $ pugi/xpath_type_number., // Number |
| 993 | xpath_type_stringcxx . . $ pugi/xpath_type_string., // String |
| 994 | xpath_type_booleancxx . . $ pugi/xpath_type_boolean. // Boolean |
| 995 | }; |
| 996 | |
| 997 | // XPath parsing result |
| 998 | struct PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_parse_resultcxx . . $ pugi/xpath_parse_result# |
| 999 | { |
| 1000 | // Error message (0 if no error) |
| 1001 | const char* errorcxx . . $ pugi/xpath_parse_result#error.; |
| 1002 | |
| 1003 | // Last parsed offset (in char_t units from string start) |
| 1004 | ptrdiff_tcxx . . $ ptrdiff_t# offsetcxx . . $ pugi/xpath_parse_result#offset.; |
| 1005 | |
| 1006 | // Default constructor, initializes object to failed state |
| 1007 | xpath_parse_resultcxx . . $ pugi/xpath_parse_result#xpath_parse_result(49f6e7a06ebc5aa8).(); |
| 1008 | |
| 1009 | // Cast to bool operator |
| 1010 | operatorcxx . . $ pugi/xpath_parse_result#`operator bool`(50ce9a9e25b4a850). bool() const; |
| 1011 | |
| 1012 | // Get error description |
| 1013 | const char* descriptioncxx . . $ pugi/xpath_parse_result#description(a9f41ea0e82d88cf).() const; |
| 1014 | }; |
| 1015 | |
| 1016 | // A single XPath variable |
| 1017 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_variablecxx . . $ pugi/xpath_variable# |
| 1018 | { |
| 1019 | friend class xpath_variable_setcxx . . $ pugi/xpath_variable_set#; |
| 1020 | |
| 1021 | protected: |
| 1022 | xpath_value_typecxx . . $ pugi/xpath_value_type# _typecxx . . $ pugi/xpath_variable#_type.; |
| 1023 | xpath_variablecxx . . $ pugi/xpath_variable#* _nextcxx . . $ pugi/xpath_variable#_next.; |
| 1024 | |
| 1025 | xpath_variablecxx . . $ pugi/xpath_variable#xpath_variable(49f6e7a06ebc5aa8).(); |
| 1026 | |
| 1027 | // Non-copyable semantics |
| 1028 | xpath_variablecxx . . $ pugi/xpath_variable#xpath_variable(207a05a3fd071770).(const xpath_variablecxx . . $ pugi/xpath_variable#&); |
| 1029 | xpath_variablecxx . . $ pugi/xpath_variable#& operatorcxx . . $ pugi/xpath_variable#`operator=`(728f3c6988be190b).=(const xpath_variablecxx . . $ pugi/xpath_variable#&); |
| 1030 | |
| 1031 | public: |
| 1032 | // Get variable name |
| 1033 | const char_tcxx . . $ pugi/char_t#* namecxx . . $ pugi/xpath_variable#name(a9f41ea0e82d88cf).() const; |
| 1034 | |
| 1035 | // Get variable type |
| 1036 | xpath_value_typecxx . . $ pugi/xpath_value_type# typecxx . . $ pugi/xpath_variable#type(87ca278870f831e0).() const; |
| 1037 | |
| 1038 | // Get variable value; no type conversion is performed, default value (false, NaN, empty string, empty node set) is returned on type mismatch error |
| 1039 | bool get_booleancxx . . $ pugi/xpath_variable#get_boolean(50ce9a9e25b4a850).() const; |
| 1040 | double get_numbercxx . . $ pugi/xpath_variable#get_number(21b6c25e127938e2).() const; |
| 1041 | const char_tcxx . . $ pugi/char_t#* get_stringcxx . . $ pugi/xpath_variable#get_string(a9f41ea0e82d88cf).() const; |
| 1042 | const xpath_node_setcxx . . $ pugi/xpath_node_set#& get_node_setcxx . . $ pugi/xpath_variable#get_node_set(ca7571b46eccc962).() const; |
| 1043 | |
| 1044 | // Set variable value; no type conversion is performed, false is returned on type mismatch error |
| 1045 | bool setcxx . . $ pugi/xpath_variable#set(efaadfb7dc14930a).(bool value); |
| 1046 | bool setcxx . . $ pugi/xpath_variable#set(f8197d536af80c96).(double value); |
| 1047 | bool setcxx . . $ pugi/xpath_variable#set(c5f7da30cbc0f4e9).(const char_tcxx . . $ pugi/char_t#* value); |
| 1048 | bool setcxx . . $ pugi/xpath_variable#set(ce9fd7f38f0b528b).(const xpath_node_setcxx . . $ pugi/xpath_node_set#& value); |
| 1049 | }; |
| 1050 | |
| 1051 | // A set of XPath variables |
| 1052 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_variable_setcxx . . $ pugi/xpath_variable_set# |
| 1053 | { |
| 1054 | private: |
| 1055 | xpath_variablecxx . . $ pugi/xpath_variable#* _datacxx . . $ pugi/xpath_variable_set#_data.[64]; |
| 1056 | |
| 1057 | // Non-copyable semantics |
| 1058 | xpath_variable_setcxx . . $ pugi/xpath_variable_set#xpath_variable_set(21280532bbb592a5).(const xpath_variable_setcxx . . $ pugi/xpath_variable_set#&); |
| 1059 | xpath_variable_setcxx . . $ pugi/xpath_variable_set#& operatorcxx . . $ pugi/xpath_variable_set#`operator=`(313f6178ddb01e82).=(const xpath_variable_setcxx . . $ pugi/xpath_variable_set#&); |
| 1060 | |
| 1061 | xpath_variablecxx . . $ pugi/xpath_variable#* findcxx . . $ pugi/xpath_variable_set#find(36c06b75f52279ed).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 1062 | |
| 1063 | public: |
| 1064 | // Default constructor/destructor |
| 1065 | xpath_variable_setcxx . . $ pugi/xpath_variable_set#xpath_variable_set(49f6e7a06ebc5aa8).(); |
| 1066 | ~cxx . . $ pugi/xpath_variable_set#`~xpath_variable_set`(ced63f7c635d850d).xpath_variable_setcxx . . $ pugi/xpath_variable_set#(); |
| 1067 | |
| 1068 | // Add a new variable or get the existing one, if the types match |
| 1069 | xpath_variablecxx . . $ pugi/xpath_variable#* addcxx . . $ pugi/xpath_variable_set#add(876f3f6dd23b48bb).(const char_tcxx . . $ pugi/char_t#* name, xpath_value_typecxx . . $ pugi/xpath_value_type# type); |
| 1070 | |
| 1071 | // Set value of an existing variable; no type conversion is performed, false is returned if there is no such variable or if types mismatch |
| 1072 | bool setcxx . . $ pugi/xpath_variable_set#set(e96b1cf346ae2c6).(const char_tcxx . . $ pugi/char_t#* name, bool value); |
| 1073 | bool setcxx . . $ pugi/xpath_variable_set#set(fbabcc4b81353ae).(const char_tcxx . . $ pugi/char_t#* name, double value); |
| 1074 | bool setcxx . . $ pugi/xpath_variable_set#set(b7a7aa4a824b7595).(const char_tcxx . . $ pugi/char_t#* name, const char_tcxx . . $ pugi/char_t#* value); |
| 1075 | bool setcxx . . $ pugi/xpath_variable_set#set(b2e0d9168f7dbd8a).(const char_tcxx . . $ pugi/char_t#* name, const xpath_node_setcxx . . $ pugi/xpath_node_set#& value); |
| 1076 | |
| 1077 | // Get existing variable by name |
| 1078 | xpath_variablecxx . . $ pugi/xpath_variable#* getcxx . . $ pugi/xpath_variable_set#get(d0c572b09ba7df08).(const char_tcxx . . $ pugi/char_t#* name); |
| 1079 | const xpath_variablecxx . . $ pugi/xpath_variable#* getcxx . . $ pugi/xpath_variable_set#get(49c320aade69b53d).(const char_tcxx . . $ pugi/char_t#* name) const; |
| 1080 | }; |
| 1081 | |
| 1082 | // A compiled XPath query object |
| 1083 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_querycxx . . $ pugi/xpath_query# |
| 1084 | { |
| 1085 | private: |
| 1086 | void* _implcxx . . $ pugi/xpath_query#_impl.; |
| 1087 | xpath_parse_resultcxx . . $ pugi/xpath_parse_result# _resultcxx . . $ pugi/xpath_query#_result.; |
| 1088 | |
| 1089 | typedef void (*unspecified_bool_typecxx . . $ pugi/xpath_query#unspecified_bool_type#)(xpath_querycxx . . $ pugi/xpath_query#***); |
| 1090 | |
| 1091 | // Non-copyable semantics |
| 1092 | xpath_querycxx . . $ pugi/xpath_query#xpath_query(6398626e2fdb45d4).(const xpath_querycxx . . $ pugi/xpath_query#&); |
| 1093 | xpath_querycxx . . $ pugi/xpath_query#& operatorcxx . . $ pugi/xpath_query#`operator=`(bb45cd222015e667).=(const xpath_querycxx . . $ pugi/xpath_query#&); |
| 1094 | |
| 1095 | public: |
| 1096 | // Construct a compiled object from XPath expression. |
| 1097 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws xpath_exception on compilation errors. |
| 1098 | explicit xpath_querycxx . . $ pugi/xpath_query#xpath_query(344adcd6a638c3c1).(const char_tcxx . . $ pugi/char_t#* query, xpath_variable_setcxx . . $ pugi/xpath_variable_set#* variables = 0); |
| 1099 | |
| 1100 | // Destructor |
| 1101 | ~cxx . . $ pugi/xpath_query#`~xpath_query`(ced63f7c635d850d).xpath_querycxx . . $ pugi/xpath_query#(); |
| 1102 | |
| 1103 | // Get query expression return type |
| 1104 | xpath_value_typecxx . . $ pugi/xpath_value_type# return_typecxx . . $ pugi/xpath_query#return_type(87ca278870f831e0).() const; |
| 1105 | |
| 1106 | // Evaluate expression as boolean value in the specified context; performs type conversion if necessary. |
| 1107 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws std::bad_alloc on out of memory errors. |
| 1108 | bool evaluate_booleancxx . . $ pugi/xpath_query#evaluate_boolean(bd6fc35ca023d061).(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1109 | |
| 1110 | // Evaluate expression as double value in the specified context; performs type conversion if necessary. |
| 1111 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws std::bad_alloc on out of memory errors. |
| 1112 | double evaluate_numbercxx . . $ pugi/xpath_query#evaluate_number(37c4e53372368947).(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1113 | |
| 1114 | #ifndef PUGIXML_NO_STL |
| 1115 | // Evaluate expression as string value in the specified context; performs type conversion if necessary. |
| 1116 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws std::bad_alloc on out of memory errors. |
| 1117 | string_tcxx . . $ pugi/string_t# evaluate_stringcxx . . $ pugi/xpath_query#evaluate_string(ce8836b9eeebbc9).(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1118 | #endif |
| 1119 | |
| 1120 | // Evaluate expression as string value in the specified context; performs type conversion if necessary. |
| 1121 | // At most capacity characters are written to the destination buffer, full result size is returned (includes terminating zero). |
| 1122 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws std::bad_alloc on out of memory errors. |
| 1123 | // If PUGIXML_NO_EXCEPTIONS is defined, returns empty set instead. |
| 1124 | size_tcxx . . $ size_t# evaluate_stringcxx . . $ pugi/xpath_query#evaluate_string(88868208347d2f8b).(char_tcxx . . $ pugi/char_t#* buffer, size_tcxx . . $ size_t# capacity, const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1125 | |
| 1126 | // Evaluate expression as node set in the specified context. |
| 1127 | // If PUGIXML_NO_EXCEPTIONS is not defined, throws xpath_exception on type mismatch and std::bad_alloc on out of memory errors. |
| 1128 | // If PUGIXML_NO_EXCEPTIONS is defined, returns empty node set instead. |
| 1129 | xpath_node_setcxx . . $ pugi/xpath_node_set# evaluate_node_setcxx . . $ pugi/xpath_query#evaluate_node_set(30d621f93a0794e0).(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1130 | |
| 1131 | // Get parsing result (used to get compilation errors in PUGIXML_NO_EXCEPTIONS mode) |
| 1132 | const xpath_parse_resultcxx . . $ pugi/xpath_parse_result#& resultcxx . . $ pugi/xpath_query#result(30c0a747c85e9667).() const; |
| 1133 | |
| 1134 | // Safe bool conversion operator |
| 1135 | operatorcxx . . $ pugi/xpath_query#`operator void (*)(pugi::xpath_query ***)`(d117cdf59cdaa009). unspecified_bool_typecxx . . $ pugi/xpath_query#unspecified_bool_type#() const; |
| 1136 | |
| 1137 | // Borland C++ workaround |
| 1138 | bool operatorcxx . . $ pugi/xpath_query#`operator!`(50ce9a9e25b4a850).!() const; |
| 1139 | }; |
| 1140 | |
| 1141 | #ifndef PUGIXML_NO_EXCEPTIONS |
| 1142 | // XPath exception class |
| 1143 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_exceptioncxx . . $ pugi/xpath_exception#: public stdcxx . . $ std/::exception |
| 1144 | { |
| 1145 | private: |
| 1146 | xpath_parse_resultcxx . . $ pugi/xpath_parse_result# _resultcxx . . $ pugi/xpath_exception#_result.; |
| 1147 | |
| 1148 | public: |
| 1149 | // Construct exception from parse result |
| 1150 | explicit xpath_exceptioncxx . . $ pugi/xpath_exception#xpath_exception(f76189c3ff08c613).(const xpath_parse_resultcxx . . $ pugi/xpath_parse_result#& result); |
| 1151 | |
| 1152 | // Get error message |
| 1153 | virtual const char* whatcxx . . $ pugi/xpath_exception#what(ba32b354807b2b81).() const throw(); |
| 1154 | |
| 1155 | // Get parse result |
| 1156 | const xpath_parse_resultcxx . . $ pugi/xpath_parse_result#& resultcxx . . $ pugi/xpath_exception#result(30c0a747c85e9667).() const; |
| 1157 | }; |
| 1158 | #endif |
| 1159 | |
| 1160 | // XPath node class (either xml_node or xml_attribute) |
| 1161 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_nodecxx . . $ pugi/xpath_node# |
| 1162 | { |
| 1163 | private: |
| 1164 | xml_nodecxx . . $ pugi/xml_node# _nodecxx . . $ pugi/xpath_node#_node.; |
| 1165 | xml_attributecxx . . $ pugi/xml_attribute# _attributecxx . . $ pugi/xpath_node#_attribute.; |
| 1166 | |
| 1167 | typedef void (*unspecified_bool_typecxx . . $ pugi/xpath_node#unspecified_bool_type#)(xpath_nodecxx . . $ pugi/xpath_node#***); |
| 1168 | |
| 1169 | public: |
| 1170 | // Default constructor; constructs empty XPath node |
| 1171 | xpath_nodecxx . . $ pugi/xpath_node#xpath_node(49f6e7a06ebc5aa8).(); |
| 1172 | |
| 1173 | // Construct XPath node from XML node/attribute |
| 1174 | xpath_nodecxx . . $ pugi/xpath_node#xpath_node(ad773084382c4c72).(const xml_nodecxx . . $ pugi/xml_node#& node); |
| 1175 | xpath_nodecxx . . $ pugi/xpath_node#xpath_node(f63bdbc95229af5a).(const xml_attributecxx . . $ pugi/xml_attribute#& attribute, const xml_nodecxx . . $ pugi/xml_node#& parent); |
| 1176 | |
| 1177 | // Get node/attribute, if any |
| 1178 | xml_nodecxx . . $ pugi/xml_node# nodecxx . . $ pugi/xpath_node#node(692a06b88ec72efc).() const; |
| 1179 | xml_attributecxx . . $ pugi/xml_attribute# attributecxx . . $ pugi/xpath_node#attribute(c767bc6c12a471c9).() const; |
| 1180 | |
| 1181 | // Get parent of contained node/attribute |
| 1182 | xml_nodecxx . . $ pugi/xml_node# parentcxx . . $ pugi/xpath_node#parent(692a06b88ec72efc).() const; |
| 1183 | |
| 1184 | // Safe bool conversion operator |
| 1185 | operatorcxx . . $ pugi/xpath_node#`operator void (*)(pugi::xpath_node ***)`(4322d95706f08cf8). unspecified_bool_typecxx . . $ pugi/xpath_node#unspecified_bool_type#() const; |
| 1186 | |
| 1187 | // Borland C++ workaround |
| 1188 | bool operatorcxx . . $ pugi/xpath_node#`operator!`(50ce9a9e25b4a850).!() const; |
| 1189 | |
| 1190 | // Comparison operators |
| 1191 | bool operatorcxx . . $ pugi/xpath_node#`operator==`(bd6fc35ca023d061).==(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1192 | bool operatorcxx . . $ pugi/xpath_node#`operator!=`(bd6fc35ca023d061).!=(const xpath_nodecxx . . $ pugi/xpath_node#& n) const; |
| 1193 | }; |
| 1194 | |
| 1195 | #ifdef __BORLANDC__ |
| 1196 | // Borland C++ workaround |
| 1197 | bool PUGIXML_FUNCTION operator&&(const xpath_node& lhs, bool rhs); |
| 1198 | bool PUGIXML_FUNCTION operator||(const xpath_node& lhs, bool rhs); |
| 1199 | #endif |
| 1200 | |
| 1201 | // A fixed-size collection of XPath nodes |
| 1202 | class PUGIXML_CLASScxx . . $ `src/common/pugixml.h:58:10`! xpath_node_setcxx . . $ pugi/xpath_node_set# |
| 1203 | { |
| 1204 | public: |
| 1205 | // Collection type |
| 1206 | enum type_tcxx . . $ pugi/xpath_node_set#type_t# |
| 1207 | { |
| 1208 | type_unsortedcxx . . $ pugi/xpath_node_set#type_unsorted., // Not ordered |
| 1209 | type_sortedcxx . . $ pugi/xpath_node_set#type_sorted., // Sorted by document order (ascending) |
| 1210 | type_sorted_reversecxx . . $ pugi/xpath_node_set#type_sorted_reverse. // Sorted by document order (descending) |
| 1211 | }; |
| 1212 | |
| 1213 | // Constant iterator type |
| 1214 | typedef const xpath_nodecxx . . $ pugi/xpath_node#* const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator#; |
| 1215 | |
| 1216 | // Default constructor. Constructs empty set. |
| 1217 | xpath_node_setcxx . . $ pugi/xpath_node_set#xpath_node_set(49f6e7a06ebc5aa8).(); |
| 1218 | |
| 1219 | // Constructs a set from iterator range; data is not checked for duplicates and is not sorted according to provided type, so be careful |
| 1220 | xpath_node_setcxx . . $ pugi/xpath_node_set#xpath_node_set(bc4d79a2a74a4ee3).(const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# begin, const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# end, type_tcxx . . $ pugi/xpath_node_set#type_t# type = type_unsortedcxx . . $ pugi/xpath_node_set#type_unsorted.); |
| 1221 | |
| 1222 | // Destructor |
| 1223 | ~cxx . . $ pugi/xpath_node_set#`~xpath_node_set`(ced63f7c635d850d).xpath_node_setcxx . . $ pugi/xpath_node_set#(); |
| 1224 | |
| 1225 | // Copy constructor/assignment operator |
| 1226 | xpath_node_setcxx . . $ pugi/xpath_node_set#xpath_node_set(7bd07dac9993a676).(const xpath_node_setcxx . . $ pugi/xpath_node_set#& ns); |
| 1227 | xpath_node_setcxx . . $ pugi/xpath_node_set#& operatorcxx . . $ pugi/xpath_node_set#`operator=`(1ef11dabadbd6d48).=(const xpath_node_setcxx . . $ pugi/xpath_node_set#& ns); |
| 1228 | |
| 1229 | // Get collection type |
| 1230 | type_tcxx . . $ pugi/xpath_node_set#type_t# typecxx . . $ pugi/xpath_node_set#type(94b4f9a56075f616).() const; |
| 1231 | |
| 1232 | // Get collection size |
| 1233 | size_tcxx . . $ size_t# sizecxx . . $ pugi/xpath_node_set#size(fe4d2d262d4164a8).() const; |
| 1234 | |
| 1235 | // Indexing operator |
| 1236 | const xpath_nodecxx . . $ pugi/xpath_node#& operatorcxx . . $ pugi/xpath_node_set#`operator[]`(4a760846a33c5694).[](size_tcxx . . $ size_t# index) const; |
| 1237 | |
| 1238 | // Collection iterators |
| 1239 | const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# begincxx . . $ pugi/xpath_node_set#begin(9a8ce9a745d5f64c).() const; |
| 1240 | const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# endcxx . . $ pugi/xpath_node_set#end(9a8ce9a745d5f64c).() const; |
| 1241 | |
| 1242 | // Sort the collection in ascending/descending order by document order |
| 1243 | void sortcxx . . $ pugi/xpath_node_set#sort(b45ddcbc8423892c).(bool reverse = false); |
| 1244 | |
| 1245 | // Get first node in the collection by document order |
| 1246 | xpath_nodecxx . . $ pugi/xpath_node# firstcxx . . $ pugi/xpath_node_set#first(2cca31774c06837b).() const; |
| 1247 | |
| 1248 | // Check if collection is empty |
| 1249 | bool emptycxx . . $ pugi/xpath_node_set#empty(50ce9a9e25b4a850).() const; |
| 1250 | |
| 1251 | private: |
| 1252 | type_tcxx . . $ pugi/xpath_node_set#type_t# _typecxx . . $ pugi/xpath_node_set#_type.; |
| 1253 | |
| 1254 | xpath_nodecxx . . $ pugi/xpath_node# _storagecxx . . $ pugi/xpath_node_set#_storage.; |
| 1255 | |
| 1256 | xpath_nodecxx . . $ pugi/xpath_node#* _begincxx . . $ pugi/xpath_node_set#_begin.; |
| 1257 | xpath_nodecxx . . $ pugi/xpath_node#* _endcxx . . $ pugi/xpath_node_set#_end.; |
| 1258 | |
| 1259 | void _assigncxx . . $ pugi/xpath_node_set#_assign(dc3e2500e64d63df).(const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# begin, const_iteratorcxx . . $ pugi/xpath_node_set#const_iterator# end); |
| 1260 | }; |
| 1261 | #endif |
| 1262 | |
| 1263 | #ifndef PUGIXML_NO_STL |
| 1264 | // Convert wide string to UTF8 |
| 1265 | stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<char> > PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! as_utf8cxx . . $ pugi/as_utf8(1883a228f78a2092).(const wchar_t* str); |
| 1266 | stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<char> > PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! as_utf8cxx . . $ pugi/as_utf8(57c741327210d95).(const stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<wchar_t> >& str); |
| 1267 | |
| 1268 | // Convert UTF8 to wide string |
| 1269 | stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<wchar_t> > PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! as_widecxx . . $ pugi/as_wide(d8218a404455691a).(const char* str); |
| 1270 | stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<wchar_t, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<wchar_t>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<wchar_t> > PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! as_widecxx . . $ pugi/as_wide(90548be92937be4a).(const stdcxx . . $ std/::basic_stringcxx . . $ std/__cxx11/basic_string#<char, stdcxx . . $ std/::char_traitscxx . . $ std/char_traits#<char>, stdcxx . . $ std/::allocatorcxx . . $ std/allocator#<char> >& str); |
| 1271 | #endif |
| 1272 | |
| 1273 | // Memory allocation function interface; returns pointer to allocated memory or NULL on failure |
| 1274 | typedef void* (*allocation_functioncxx . . $ pugi/allocation_function#)(size_tcxx . . $ size_t# size); |
| 1275 | |
| 1276 | // Memory deallocation function interface |
| 1277 | typedef void (*deallocation_functioncxx . . $ pugi/deallocation_function#)(void* ptr); |
| 1278 | |
| 1279 | // Override default memory management functions. All subsequent allocations/deallocations will be performed via supplied functions. |
| 1280 | void PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! set_memory_management_functionscxx . . $ pugi/set_memory_management_functions(8696de7b76188f79).(allocation_functioncxx . . $ pugi/allocation_function# allocate, deallocation_functioncxx . . $ pugi/deallocation_function# deallocate); |
| 1281 | |
| 1282 | // Get current memory management functions |
| 1283 | allocation_functioncxx . . $ pugi/allocation_function# PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! get_memory_allocation_functioncxx . . $ pugi/get_memory_allocation_function(adc5fd7a61d96b3c).(); |
| 1284 | deallocation_functioncxx . . $ pugi/deallocation_function# PUGIXML_FUNCTIONcxx . . $ `src/common/pugixml.h:63:10`! get_memory_deallocation_functioncxx . . $ pugi/get_memory_deallocation_function(92574403eac32d86).(); |
| 1285 | } |
| 1286 | |
| 1287 | #if !defined(PUGIXML_NO_STL) && (defined(_MSC_VER) || defined(__ICC)) |
| 1288 | namespace std |
| 1289 | { |
| 1290 | // Workarounds for (non-standard) iterator category detection for older versions (MSVC7/IC8 and earlier) |
| 1291 | std::bidirectional_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_node_iterator&); |
| 1292 | std::bidirectional_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_attribute_iterator&); |
| 1293 | std::bidirectional_iterator_tag PUGIXML_FUNCTION _Iter_cat(const pugi::xml_named_node_iterator&); |
| 1294 | } |
| 1295 | #endif |
| 1296 | |
| 1297 | #if !defined(PUGIXML_NO_STL) && defined(__SUNPRO_CC) |
| 1298 | namespace std |
| 1299 | { |
| 1300 | // Workarounds for (non-standard) iterator category detection |
| 1301 | std::bidirectional_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_node_iterator&); |
| 1302 | std::bidirectional_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_attribute_iterator&); |
| 1303 | std::bidirectional_iterator_tag PUGIXML_FUNCTION __iterator_category(const pugi::xml_named_node_iterator&); |
| 1304 | } |
| 1305 | #endif |
| 1306 | |
| 1307 | #endif |
| 1308 | |
| 1309 | /** |
| 1310 | * Copyright (c) 2006-2014 Arseny Kapoulkine |
| 1311 | * |
| 1312 | * Permission is hereby granted, free of charge, to any person |
| 1313 | * obtaining a copy of this software and associated documentation |
| 1314 | * files (the "Software"), to deal in the Software without |
| 1315 | * restriction, including without limitation the rights to use, |
| 1316 | * copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 1317 | * copies of the Software, and to permit persons to whom the |
| 1318 | * Software is furnished to do so, subject to the following |
| 1319 | * conditions: |
| 1320 | * |
| 1321 | * The above copyright notice and this permission notice shall be |
| 1322 | * included in all copies or substantial portions of the Software. |
| 1323 | * |
| 1324 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 1325 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 1326 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 1327 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 1328 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 1329 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 1330 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 1331 | * OTHER DEALINGS IN THE SOFTWARE. |
| 1332 | */ |