Commit Graph

71 Commits

Author SHA1 Message Date
arseny.kapoulkine
664638059a Minor coverage improvements
git-svn-id: http://pugixml.googlecode.com/svn/trunk@392 99668b35-9821-0410-8761-19e4c4f06640
2010-05-08 21:35:42 +00:00
arseny.kapoulkine
8b6be5c02e Don't use global no-deprecate switch for newer GCC/MinGW, fixed warnings because of deprecation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@390 99668b35-9821-0410-8761-19e4c4f06640
2010-05-08 20:36:20 +00:00
arseny.kapoulkine
6706a3f8ba Deprecated all wildcard functions and parse_wnorm_attribute
git-svn-id: http://pugixml.googlecode.com/svn/trunk@389 99668b35-9821-0410-8761-19e4c4f06640
2010-05-08 20:30:29 +00:00
arseny.kapoulkine
021574a484 Added 0.5-compatible interfaces for compatibility
git-svn-id: http://pugixml.googlecode.com/svn/trunk@386 99668b35-9821-0410-8761-19e4c4f06640
2010-05-08 16:44:04 +00:00
arseny.kapoulkine
18819327e9 Updated copyright year, updated changelog in documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@385 99668b35-9821-0410-8761-19e4c4f06640
2010-05-06 20:54:02 +00:00
arseny.kapoulkine
d217517975 Changed version number to 0.6, merged Unicode utilities to pugixml.cpp
git-svn-id: http://pugixml.googlecode.com/svn/trunk@384 99668b35-9821-0410-8761-19e4c4f06640
2010-05-06 20:39:14 +00:00
arseny.kapoulkine
f542c5ebb8 Integrated changes from unicode branch to trunk
git-svn-id: http://pugixml.googlecode.com/svn/trunk@383 99668b35-9821-0410-8761-19e4c4f06640
2010-05-06 20:28:36 +00:00
arseny.kapoulkine
efee7df3f4 Fixed invalid document contents when document parsing fails
git-svn-id: http://pugixml.googlecode.com/svn/trunk@282 99668b35-9821-0410-8761-19e4c4f06640
2010-04-21 06:48:32 +00:00
arseny.kapoulkine
a78e1ec91c Replaced int with ptrdiff_t for offset_debug() and last parsed offset in xml_parse_result
git-svn-id: http://pugixml.googlecode.com/svn/trunk@248 99668b35-9821-0410-8761-19e4c4f06640
2010-02-08 11:52:45 +00:00
arseny.kapoulkine
f5bdc4b9dc Added inline directive to ischartype in case automatic inlining is not enabled
git-svn-id: http://pugixml.googlecode.com/svn/trunk@247 99668b35-9821-0410-8761-19e4c4f06640
2010-02-06 12:02:24 +00:00
arseny.kapoulkine
9429411e99 Renamed ERROR to THROW_ERROR to solve macro name conflicts
git-svn-id: http://pugixml.googlecode.com/svn/trunk@240 99668b35-9821-0410-8761-19e4c4f06640
2010-01-21 21:12:07 +00:00
arseny.kapoulkine
db550f5f80 Fixed several code analysis warnings
git-svn-id: http://pugixml.googlecode.com/svn/trunk@239 99668b35-9821-0410-8761-19e4c4f06640
2010-01-20 22:15:15 +00:00
arseny.kapoulkine
a3c386c4bd More branch probability tuning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@236 99668b35-9821-0410-8761-19e4c4f06640
2009-11-10 11:26:42 +00:00
arseny.kapoulkine
8a2b1b6e7a Parsing optimization: removed some redundant checks, reordered branches by probability, extracted two unlikely code paths in separate functions, node construction tuning
git-svn-id: http://pugixml.googlecode.com/svn/trunk@235 99668b35-9821-0410-8761-19e4c4f06640
2009-11-10 09:26:40 +00:00
arseny.kapoulkine
c389916348 Updated header/footer comments - included MIT license text as per user request, removed old notes, updated version number
git-svn-id: http://pugixml.googlecode.com/svn/trunk@230 99668b35-9821-0410-8761-19e4c4f06640
2009-11-08 18:34:59 +00:00
arseny.kapoulkine
c8a8b30bdd XPath: Fixed const-correctness, added boolean operators and operator! for Borland compilers, added operator[], minor other changes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@220 99668b35-9821-0410-8761-19e4c4f06640
2009-11-08 13:52:11 +00:00
arseny.kapoulkine
0815f85d7a Fixed MSVC6 compilation error
git-svn-id: http://pugixml.googlecode.com/svn/trunk@184 99668b35-9821-0410-8761-19e4c4f06640
2009-10-28 20:07:43 +00:00
arseny.kapoulkine
327096ae0d Added memory allocation function getters (can't write generic function to parse with ownership transfer without them)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@164 99668b35-9821-0410-8761-19e4c4f06640
2009-10-20 21:36:02 +00:00
arseny.kapoulkine
a2249c1304 Removed dead code (UTF8 sequences of length 5 are considered broken, removed dead branch in PI parsing)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@161 99668b35-9821-0410-8761-19e4c4f06640
2009-10-20 20:25:13 +00:00
arseny.kapoulkine
5624befce1 Fixed node_pi and node_declaration copying
git-svn-id: http://pugixml.googlecode.com/svn/trunk@160 99668b35-9821-0410-8761-19e4c4f06640
2009-10-20 19:21:34 +00:00
arseny.kapoulkine
e1013bfcd8 PCDATA is now output with trailing newline if format_raw is not set and PCDATA is not the only child
git-svn-id: http://pugixml.googlecode.com/svn/trunk@153 99668b35-9821-0410-8761-19e4c4f06640
2009-10-12 16:27:05 +00:00
arseny.kapoulkine
9c7d93817e Fixed xml_node::remove_attribute in case of empty attribute as a parameter
git-svn-id: http://pugixml.googlecode.com/svn/trunk@151 99668b35-9821-0410-8761-19e4c4f06640
2009-10-12 10:34:49 +00:00
arseny.kapoulkine
50214146de Const-correctness fix for print/save functions
git-svn-id: http://pugixml.googlecode.com/svn/trunk@149 99668b35-9821-0410-8761-19e4c4f06640
2009-10-11 10:24:37 +00:00
arseny.kapoulkine
f3ef88386c traverse now sets depth to -1 for both begin() and end()
git-svn-id: http://pugixml.googlecode.com/svn/trunk@146 99668b35-9821-0410-8761-19e4c4f06640
2009-10-11 08:40:11 +00:00
arseny.kapoulkine
b50199492b Fixed offset_debug for pi nodes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@144 99668b35-9821-0410-8761-19e4c4f06640
2009-10-11 07:47:43 +00:00
arseny.kapoulkine
10b1a0c481 Changed header version
git-svn-id: http://pugixml.googlecode.com/svn/trunk@129 99668b35-9821-0410-8761-19e4c4f06640
2009-09-17 18:19:44 +00:00
arseny.kapoulkine
fcce7152ac Fixed compilation warnings on BCC
git-svn-id: http://pugixml.googlecode.com/svn/trunk@128 99668b35-9821-0410-8761-19e4c4f06640
2009-09-17 18:14:05 +00:00
arseny.kapoulkine
01d8a24051 Added xml_attribute::set_value overloads
git-svn-id: http://pugixml.googlecode.com/svn/trunk@127 99668b35-9821-0410-8761-19e4c4f06640
2009-09-17 18:02:21 +00:00
arseny.kapoulkine
3a9e08becd Fixed iterator functions and xml_node::print to work correctly with empty nodes, replaced empty() with direct _root/_attr check everywhere
git-svn-id: http://pugixml.googlecode.com/svn/trunk@126 99668b35-9821-0410-8761-19e4c4f06640
2009-08-31 14:11:23 +00:00
arseny.kapoulkine
bc98c9e585 Added optional PUGIXML_API, PUGIXML_CLASS and PUGIXML_FUNCTION defines to control class/function attributes (DLL export/import, calling conventions, etc.)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@125 99668b35-9821-0410-8761-19e4c4f06640
2009-08-31 13:40:20 +00:00
arseny.kapoulkine
530b0dec21 Fixed xml_node::all_elements_by_name include dependencies
git-svn-id: http://pugixml.googlecode.com/svn/trunk@124 99668b35-9821-0410-8761-19e4c4f06640
2009-08-31 12:32:21 +00:00
arseny.kapoulkine
c95b553a81 Fixed destroying of attribute/node name/values (it now uses custom deallocation function, if any)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@121 99668b35-9821-0410-8761-19e4c4f06640
2009-04-10 10:06:47 +00:00
arseny.kapoulkine
1e37455c1b Const-correctness fixes for find_child_by_attribute
git-svn-id: http://pugixml.googlecode.com/svn/trunk@120 99668b35-9821-0410-8761-19e4c4f06640
2009-03-29 06:37:39 +00:00
arseny.kapoulkine
9e3d8be0d0 Fixed compilation warning for gcc-4.3
git-svn-id: http://pugixml.googlecode.com/svn/trunk@119 99668b35-9821-0410-8761-19e4c4f06640
2009-03-04 22:11:06 +00:00
arseny.kapoulkine
e5bd53e319 Fixed compilation warning in case char type is signed
git-svn-id: http://pugixml.googlecode.com/svn/trunk@118 99668b35-9821-0410-8761-19e4c4f06640
2009-02-28 18:00:42 +00:00
arseny.kapoulkine
a3ef08eed7 Updated version (source, documentation)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@117 99668b35-9821-0410-8761-19e4c4f06640
2009-02-08 07:44:14 +00:00
arseny.kapoulkine
af27b0937b Fixed bug in xml_buffer_writer::write
git-svn-id: http://pugixml.googlecode.com/svn/trunk@116 99668b35-9821-0410-8761-19e4c4f06640
2009-02-08 07:39:49 +00:00
arseny.kapoulkine
3579de9141 Fixed nostl mode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@115 99668b35-9821-0410-8761-19e4c4f06640
2009-01-26 06:10:36 +00:00
arseny.kapoulkine
46da814b42 Added xml_node::print for stream to make migration easier
git-svn-id: http://pugixml.googlecode.com/svn/trunk@112 99668b35-9821-0410-8761-19e4c4f06640
2009-01-25 20:49:53 +00:00
arseny.kapoulkine
600c3814e9 Added proper parse errors with description, parsed offsets and stuff
git-svn-id: http://pugixml.googlecode.com/svn/trunk@111 99668b35-9821-0410-8761-19e4c4f06640
2009-01-25 20:40:10 +00:00
arseny.kapoulkine
0949bd80b6 Added invalidate_document_order, now detaching deleted nodes and setting name/value to 0 after deleting (less bugs/debugging confusion)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@110 99668b35-9821-0410-8761-19e4c4f06640
2009-01-19 11:21:49 +00:00
arseny.kapoulkine
f57ab52894 Added offset_debug
git-svn-id: http://pugixml.googlecode.com/svn/trunk@108 99668b35-9821-0410-8761-19e4c4f06640
2009-01-18 11:44:57 +00:00
arseny.kapoulkine
9bc19368f2 Added find_child_by_attribute
git-svn-id: http://pugixml.googlecode.com/svn/trunk@107 99668b35-9821-0410-8761-19e4c4f06640
2009-01-18 11:18:35 +00:00
arseny.kapoulkine
355d0f0697 Implemented attribute and node copying
git-svn-id: http://pugixml.googlecode.com/svn/trunk@106 99668b35-9821-0410-8761-19e4c4f06640
2009-01-08 19:30:42 +00:00
arseny.kapoulkine
e305a07249 Custom memory management functions implemented
git-svn-id: http://pugixml.googlecode.com/svn/trunk@105 99668b35-9821-0410-8761-19e4c4f06640
2009-01-06 13:14:13 +00:00
arseny.kapoulkine
5054325378 Added node_declaration node type for <?xml nodes, added corresponding parse_declaration and format_no_declaration flags and parsing/saving/DOM functionality
git-svn-id: http://pugixml.googlecode.com/svn/trunk@104 99668b35-9821-0410-8761-19e4c4f06640
2009-01-06 12:20:22 +00:00
arseny.kapoulkine
c507d9b10e Less header dependencies, some compilation fixes for Borland/Intel/MW compilers
git-svn-id: http://pugixml.googlecode.com/svn/trunk@103 99668b35-9821-0410-8761-19e4c4f06640
2009-01-06 00:02:42 +00:00
arseny.kapoulkine
5a2fa3fe50 Unsigned integer support for attributes (as_uint, operator=)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@101 99668b35-9821-0410-8761-19e4c4f06640
2009-01-05 22:47:35 +00:00
arseny.kapoulkine
245e26de92 Updated pugixml version
git-svn-id: http://pugixml.googlecode.com/svn/trunk@99 99668b35-9821-0410-8761-19e4c4f06640
2009-01-05 22:33:00 +00:00
arseny.kapoulkine
29e7b7bfd3 Node/document saving is now performed via new xml_writer interface, save_file now works without STL
git-svn-id: http://pugixml.googlecode.com/svn/trunk@97 99668b35-9821-0410-8761-19e4c4f06640
2009-01-05 22:16:46 +00:00