0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-31 00:13:01 +08:00

922 Commits

Author SHA1 Message Date
arseny.kapoulkine@gmail.com
ed30b95a42 XPath stack optimization: Reduce stack usage during parsing by sharing scratch buffer for variable/number parsing (we only need one per parser)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@928 99668b35-9821-0410-8761-19e4c4f06640
2012-11-17 21:52:02 +00:00
arseny.kapoulkine@gmail.com
971fd96764 Fix PUGIXML_MEMORY_* constants for header-only mode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@927 99668b35-9821-0410-8761-19e4c4f06640
2012-11-17 04:55:24 +00:00
arseny.kapoulkine@gmail.com
43f3888dc1 Fix undefined pointer arithmetic for reverse() and unique() in case the range is empty (begin == end)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@926 99668b35-9821-0410-8761-19e4c4f06640
2012-11-08 16:01:23 +00:00
arseny.kapoulkine@gmail.com
973296bcb1 Minor refactoring
git-svn-id: http://pugixml.googlecode.com/svn/trunk@923 99668b35-9821-0410-8761-19e4c4f06640
2012-10-31 04:56:27 +00:00
arseny.kapoulkine@gmail.com
09f9ab079e Adjust parsing so that it is possible to parse a document fragment into an existing subtree; can be used to implement append_buffer.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@922 99668b35-9821-0410-8761-19e4c4f06640
2012-10-31 04:47:17 +00:00
arseny.kapoulkine@gmail.com
68d533a828 tests: Remove 'con' loading from tests since it stopped working under Windows 8...
git-svn-id: http://pugixml.googlecode.com/svn/trunk@921 99668b35-9821-0410-8761-19e4c4f06640
2012-10-31 04:45:38 +00:00
arseny.kapoulkine@gmail.com
2876af6773 Fix find_child_by_attribute assertion for attributes with null name/value.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@920 99668b35-9821-0410-8761-19e4c4f06640
2012-09-29 06:36:29 +00:00
arseny.kapoulkine@gmail.com
ff715f672f Add xml_object_range::iterator to work around Boost.ForEach errors without BOOST_FOREACH_RUN_TIME_CONST_RVALUE_DETECTION feature (i.e. SunCC 12). Fixes issue 164.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@919 99668b35-9821-0410-8761-19e4c4f06640
2012-08-02 09:22:43 +00:00
arseny.kapoulkine@gmail.com
1c82e0cf7d scripts: Allow to customize library install location for CMake
git-svn-id: http://pugixml.googlecode.com/svn/trunk@918 99668b35-9821-0410-8761-19e4c4f06640
2012-07-03 15:04:48 +00:00
arseny.kapoulkine@gmail.com
215ecbcff6 Add PUGIXML_CLASS to xml_named_node_iterator to make dllexport possible. Fixes issue 161.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@917 99668b35-9821-0410-8761-19e4c4f06640
2012-06-28 15:36:58 +00:00
arseny.kapoulkine@gmail.com
a9a537ad40 Iterator improvements: safety assertions in xml_named_node_iterator, const_cast workaround for BCC32 bug
git-svn-id: http://pugixml.googlecode.com/svn/trunk@915 99668b35-9821-0410-8761-19e4c4f06640
v1.2
2012-05-02 15:38:09 +00:00
arseny.kapoulkine@gmail.com
a50f47f805 docs: Regenerated HTML documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@910 99668b35-9821-0410-8761-19e4c4f06640
2012-04-30 15:37:36 +00:00
arseny.kapoulkine@gmail.com
22a999f7e4 docs: Several typo fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@909 99668b35-9821-0410-8761-19e4c4f06640
2012-04-30 15:37:08 +00:00
arseny.kapoulkine@gmail.com
7e71534577 docs: Regenerated HTML documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@908 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 22:51:21 +00:00
arseny.kapoulkine@gmail.com
a1f4ff0467 docs: Added xml_text documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@907 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 22:50:43 +00:00
arseny.kapoulkine@gmail.com
fadead179c docs: Documented adding custom declaration node. Fixes issue 155.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@906 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 21:13:08 +00:00
arseny.kapoulkine@gmail.com
879f3bd954 docs: Included range-based for information in quickstart, other minor tweaks
git-svn-id: http://pugixml.googlecode.com/svn/trunk@905 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 18:06:12 +00:00
arseny.kapoulkine@gmail.com
9b57b1bdd7 docs: Added range-based for documentation and sample
git-svn-id: http://pugixml.googlecode.com/svn/trunk@904 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 17:58:05 +00:00
arseny.kapoulkine@gmail.com
420a6fe9d5 docs: Added header-only mode documentation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@903 99668b35-9821-0410-8761-19e4c4f06640
2012-04-29 17:29:50 +00:00
arseny.kapoulkine@gmail.com
89cde98e20 docs: Updated changelog, documented xml_attribute::as_string and customizable default value for xml_attribute::as_*
git-svn-id: http://pugixml.googlecode.com/svn/trunk@902 99668b35-9821-0410-8761-19e4c4f06640
2012-04-28 20:27:30 +00:00
arseny.kapoulkine@gmail.com
b1a1eef0c8 Removed diag_push for SNC since the warning bug is not fixed even in the latest version
git-svn-id: http://pugixml.googlecode.com/svn/trunk@901 99668b35-9821-0410-8761-19e4c4f06640
2012-04-12 03:28:02 +00:00
arseny.kapoulkine@gmail.com
78f8662d33 scripts: Updated CMakeLists.txt to match the Gentoo distribution version more closely (install header files into include/ - this is how Fedora's distribution is set up too)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@900 99668b35-9821-0410-8761-19e4c4f06640
2012-04-09 06:08:12 +00:00
arseny.kapoulkine@gmail.com
593e90e22c docs: Updated copyright year
git-svn-id: http://pugixml.googlecode.com/svn/trunk@899 99668b35-9821-0410-8761-19e4c4f06640
2012-04-04 02:01:50 +00:00
arseny.kapoulkine@gmail.com
4a2d398a07 tests: Fixed PUGIXML_NO_STL compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@898 99668b35-9821-0410-8761-19e4c4f06640
2012-04-04 02:01:22 +00:00
arseny.kapoulkine@gmail.com
bda8e935e9 Updated version number and copyright year everywhere
git-svn-id: http://pugixml.googlecode.com/svn/trunk@897 99668b35-9821-0410-8761-19e4c4f06640
2012-04-03 05:04:07 +00:00
arseny.kapoulkine@gmail.com
7d18b33292 Whitespace-only change: set noexpandtab & retab!
git-svn-id: http://pugixml.googlecode.com/svn/trunk@896 99668b35-9821-0410-8761-19e4c4f06640
2012-04-03 04:58:11 +00:00
arseny.kapoulkine@gmail.com
cb1d83d32a Fixed xml_named_node_iterator category for MSVC6/7, IC8 and SunCC
git-svn-id: http://pugixml.googlecode.com/svn/trunk@895 99668b35-9821-0410-8761-19e4c4f06640
2012-04-03 04:47:14 +00:00
arseny.kapoulkine@gmail.com
a47bd44953 tests: Added tests for as_string and default values in as_*
git-svn-id: http://pugixml.googlecode.com/svn/trunk@894 99668b35-9821-0410-8761-19e4c4f06640
2012-04-03 04:44:54 +00:00
arseny.kapoulkine@gmail.com
40777b2ce1 Added xml_attribute::as_string and xml_text::as_string, added default value to all as_* member functions
git-svn-id: http://pugixml.googlecode.com/svn/trunk@893 99668b35-9821-0410-8761-19e4c4f06640
2012-04-03 04:44:36 +00:00
arseny.kapoulkine@gmail.com
f4ac43c549 tests: Added xml_named_node_iterator tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@892 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 05:46:44 +00:00
arseny.kapoulkine@gmail.com
eefd32c2e7 contrib: Foreach contrib file is not really needed any more; left for compatibility, + removed node/attribute adapters since we now have object range support in pugixml.hpp
git-svn-id: http://pugixml.googlecode.com/svn/trunk@891 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 05:31:33 +00:00
arseny.kapoulkine@gmail.com
951ff9d1a6 xml_object_range now supports Boost.ForEach
git-svn-id: http://pugixml.googlecode.com/svn/trunk@890 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 05:25:49 +00:00
arseny.kapoulkine@gmail.com
a10bb9d766 Introduced xml_named_node_iterator, introduced xml_node::children() and xml_node::attributes() for C++11 range-based for loop
git-svn-id: http://pugixml.googlecode.com/svn/trunk@889 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 05:23:24 +00:00
arseny.kapoulkine@gmail.com
579adaf301 docs: Removed 'first block with BOM is small' note from xml_writer::write description.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@888 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 04:23:57 +00:00
arseny.kapoulkine@gmail.com
62204df423 Write BOM as U+FEFF to buffered writer; this makes sure we don't have a very small unbuffered write with custom writer implementations
git-svn-id: http://pugixml.googlecode.com/svn/trunk@887 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 04:23:05 +00:00
arseny.kapoulkine@gmail.com
4a5d55fc86 docs: Small fix
git-svn-id: http://pugixml.googlecode.com/svn/trunk@886 99668b35-9821-0410-8761-19e4c4f06640
2012-03-27 03:28:41 +00:00
arseny.kapoulkine@gmail.com
e6fcef1b3e scripts: Added install target to CMakeLists.txt
git-svn-id: http://pugixml.googlecode.com/svn/trunk@885 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 06:09:23 +00:00
arseny.kapoulkine@gmail.com
1cd736905b tests: Added text/binary save_file tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@884 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 05:38:08 +00:00
arseny.kapoulkine@gmail.com
343107b3de Added format_save_file_text flag for opening the file in text mode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@883 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 05:37:45 +00:00
arseny.kapoulkine@gmail.com
046073830b Fixed header-only compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@882 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 04:26:13 +00:00
arseny.kapoulkine@gmail.com
5f9656c8b9 xml_document::save_file now checks for file I/O errors, fixed compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@881 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 04:24:56 +00:00
arseny.kapoulkine@gmail.com
898b2cbabb Extracted file saving into a separate function, fixed DMC compilation (set_value_buffer cast error)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@880 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 04:21:45 +00:00
arseny.kapoulkine@gmail.com
dae6d908e5 Const-correctness 'fixes' (it's impossible to be const-correct here so remove redundant member)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@879 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:57:12 +00:00
arseny.kapoulkine@gmail.com
35c0c6aa5c Fixed member shadowing warnings for gcc
git-svn-id: http://pugixml.googlecode.com/svn/trunk@878 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:51:00 +00:00
arseny.kapoulkine@gmail.com
9269e24a4b tests: Added tests for xml_text mutation operations
git-svn-id: http://pugixml.googlecode.com/svn/trunk@877 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:40:30 +00:00
arseny.kapoulkine@gmail.com
5e33adbc68 Added xml_text::data() (for regular xml_node operations, i.e. remove_child)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@876 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:40:12 +00:00
arseny.kapoulkine@gmail.com
0237fb466e tests: Added tests for read-only xml_text operations
git-svn-id: http://pugixml.googlecode.com/svn/trunk@875 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:25:03 +00:00
arseny.kapoulkine@gmail.com
43fac19d81 Added xml_text &&/|| operators for Borland C++
git-svn-id: http://pugixml.googlecode.com/svn/trunk@874 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:24:44 +00:00
arseny.kapoulkine@gmail.com
48391dbe8c Moved default value selection logic into get_value functions, added xml_node::text() accessor
git-svn-id: http://pugixml.googlecode.com/svn/trunk@873 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:08:38 +00:00
arseny.kapoulkine@gmail.com
096a6d0e9c Implemented xml_text helper (work in progress)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@872 99668b35-9821-0410-8761-19e4c4f06640
2012-03-23 03:02:57 +00:00