Commit Graph

  • cbd8131d09 Fix clang build. Arseny Kapoulkine 2014-02-23 19:38:24 +00:00
  • 934bddcfa6 Fix gap collapsing during PCDATA parsing for fragment mode. Arseny Kapoulkine 2014-02-23 19:28:27 +00:00
  • bd960159dd tests: Write temporary files to executable folder. Arseny Kapoulkine 2014-02-19 06:21:51 +00:00
  • cb99aa5065 Fix compilation warning for toolsets where wchar_t == char. Arseny Kapoulkine 2014-02-12 04:38:57 +00:00
  • 284f56f588 Add MSVC 12 (2013) to autotest list Arseny Kapoulkine 2014-02-12 04:38:54 +00:00
  • 53ba699155 docs: Add parse_fragment to documentation and changelog Arseny Kapoulkine 2014-02-11 07:31:31 +00:00
  • 47c15ad949 Implement document fragment parsing. Arseny Kapoulkine 2014-02-11 06:45:27 +00:00
  • 5fa25a878a Fix bogus Clang 3.4 warning Arseny Kapoulkine 2014-02-11 04:55:36 +00:00
  • f5a5f49802 Fix clang build. Arseny Kapoulkine 2014-02-10 17:04:17 +00:00
  • 79fb68ac41 Use a null-terminated buffer for parsing as often as possible. Arseny Kapoulkine 2014-02-10 16:57:04 +00:00
  • 9ba26b94c7 Replace memory-management functions before every test. Arseny Kapoulkine 2014-02-10 16:56:55 +00:00
  • 9d9fd0a71f Rename parse to parse_tree and convert_buffer to convert_buffer_output to reduce overloading. Arseny Kapoulkine 2014-02-10 16:56:35 +00:00
  • ce1d457fcd Update compatibility section of the manual Arseny Kapoulkine 2014-02-10 05:21:40 +00:00
  • acf9dee0dd Update PUGIXML_VERSION define Arseny Kapoulkine 2014-02-10 05:11:05 +00:00
  • 26a7f35ca8 Fix .travis.yml script Arseny Kapoulkine 2014-02-09 22:02:48 +00:00
  • 543fa8268d Add Makefile for building and running tests. Arseny Kapoulkine 2014-02-09 21:56:30 +00:00
  • 7b41dce85e Add README.md for GitHub Arseny Kapoulkine 2014-02-09 00:28:29 +00:00
  • 09647e2b29 Add scripts for Travis CI Arseny Kapoulkine 2014-02-09 00:05:19 +00:00
  • 0456f5deea Update version to 1.4 and copyright year to 2014. Add tentative changelog for 1.4 to the documentation. Since Google Code no longer allows file upload, replace download links with GitHub release links. Arseny Kapoulkine 2014-02-08 23:01:58 +00:00
  • 2bd99cff86 Enable long long support for C++11 and for MSVC 2008+ Arseny Kapoulkine 2014-02-08 21:59:14 +00:00
  • 44d3ae5e90 docs: Add long long functions and configuration documentation Arseny Kapoulkine 2014-02-08 21:06:21 +00:00
  • 8c1502e64f Add PUGIXML_HAS_LONG_LONG to pugiconfig.hpp Arseny Kapoulkine 2014-02-08 21:03:07 +00:00
  • 6056ba2f89 Simplify header-only mode usage: it's sufficient to define PUGIXML_HEADER_ONLY anywhere now, source is automatically included Arseny Kapoulkine 2014-02-08 20:44:20 +00:00
  • 0557a06764 Fix test suite stringizing macros to be C++11-compliant Arseny Kapoulkine 2014-02-08 20:39:25 +00:00
  • f9bbc39bd9 Implement long long support if PUGIXML_HAS_LONG_LONG is defined (autodetection is not implemented yet) Arseny Kapoulkine 2014-02-08 20:36:09 +00:00
  • c3550de72b Ignore stream errors generated by a failing tellg() for non-seekable streams Arseny Kapoulkine 2014-01-27 04:06:35 +00:00
  • 0938714fa0 Change xml_named_node_iterator to be bidirectional and to match xml_node_iterator in terms of internals Arseny Kapoulkine 2014-01-27 03:54:05 +00:00
  • 4d8974f1fd Replace offsetof with sizeof since some compilers don't recognize offsetof as a compile-time constant expression Arseny Kapoulkine 2014-01-15 18:13:51 +00:00
  • 7f6b062e9f Implement automatic hexadecimal decoding for xml_attribute::as_int and xml_text::as_int. This is effectively a form of strtol with base 0, but without octal support. Arseny Kapoulkine 2014-01-15 04:28:10 +00:00
  • 783af79264 Fix gcc-4.9 compilation warning when using -Wstrict-overflow arseny.kapoulkine@gmail.com 2013-12-20 08:24:38 +00:00
  • 79109a8546 Fix gcc-4.8 compilation warning when using -Wstrict-overflow arseny.kapoulkine@gmail.com 2013-11-26 04:34:41 +00:00
  • 48600c3a9d Fix _root checking inconsistency in xml_document::destroy arseny.kapoulkine@gmail.com 2013-08-02 02:43:13 +00:00
  • 888934dac6 Clarify value() behavior in header comments; hopefully that'll help with value vs child_value confusion. arseny.kapoulkine@gmail.com 2013-07-27 11:32:44 +00:00
  • cac6b8720a Make sure newlines are consistent for both .zip and .tar.gz archives arseny.kapoulkine@gmail.com 2013-07-20 05:55:22 +00:00
  • 63c0f55ee7 docs: Fix manual.xsl to work with newer xsltproc arseny.kapoulkine@gmail.com 2013-07-10 06:10:03 +00:00
  • e300701d3f docs: XPath select_single_node sample checks return value for clarity arseny.kapoulkine@gmail.com 2013-07-10 04:47:25 +00:00
  • 4c57df7cb6 docs: Minor grammar fix arseny.kapoulkine@gmail.com 2013-07-10 04:46:59 +00:00
  • ff14ae6daf Fix documentation building on Linux arseny.kapoulkine@gmail.com 2013-07-10 04:38:21 +00:00
  • 4e1add1a46 Fix invalid assertion in XPath: reallocation can result in allocating buffer of the same size due to pointer-sized alignment arseny.kapoulkine@gmail.com 2013-03-20 02:44:05 +00:00
  • 28def6fbca docs: Fix format_no_escapes documentation arseny.kapoulkine@gmail.com 2013-03-20 02:36:48 +00:00
  • 33301e9f42 Fix XPath return type for contains() and string-length() arseny.kapoulkine@gmail.com 2013-03-19 15:11:40 +00:00
  • 2e4f6c54a8 Work around clang static analysis false positives using extra assertions. arseny.kapoulkine@gmail.com 2012-12-08 04:06:37 +00:00
  • 389d1c2893 Only include wchar.h in PUGIXML_WCHAR_MODE; use a custom implementation of wcslen in case there is no wide character support. arseny.kapoulkine@gmail.com 2012-12-07 08:11:23 +00:00
  • 30549910db Fix uninitialized variable in case append_buffer fails with out of memory due to buffer copy allocation arseny.kapoulkine@gmail.com 2012-12-07 06:56:31 +00:00
  • 7b61ad6379 tests: Fix msvc11_arm toolset setup arseny.kapoulkine@gmail.com 2012-12-07 06:41:48 +00:00
  • 9b9a414ab6 Compatibility fixes (fixed warnings in gcc, msvc7, fixed errors in bcc, cw, msvc6) arseny.kapoulkine@gmail.com 2012-12-07 06:35:53 +00:00
  • 26444f90a9 docs: Added append_buffer documentation arseny.kapoulkine@gmail.com 2012-12-07 05:15:09 +00:00
  • 00d4994f24 tests: Added append_buffer tests arseny.kapoulkine@gmail.com 2012-12-07 04:49:51 +00:00
  • 456527b44a Implement xml_node::append_buffer as a faster alternative to assembling documents from fragments (compared to parse & clone) arseny.kapoulkine@gmail.com 2012-12-07 04:49:23 +00:00
  • efc634a718 archive.pl now creates a wrapping folder in both .tar.gz and .zip archives arseny.kapoulkine@gmail.com 2012-11-20 05:34:06 +00:00
  • 3af13f1cb8 scripts: Apply pugixml-soversion.patch: SOVERSION is now 1 instead of 1.2 (make install will deploy both libpugixml.so.1 and libpugixml.so.1.2) arseny.kapoulkine@gmail.com 2012-11-20 05:27:46 +00:00
  • a3aa5d39b8 XPath stack optimization: Reduce convert_number_to_string stack usage by reducing mantissa_buffer size and filling resulting string on heap without an extra copy from stack. arseny.kapoulkine@gmail.com 2012-11-18 23:11:59 +00:00
  • c95900e354 XPath: Fix BCC/DMC compilation (overloading workaround) arseny.kapoulkine@gmail.com 2012-11-18 01:14:33 +00:00
  • 4fe55906fa XPath stack optimization: Rewrite part of the recursive descent parser to precedence climbing to reduce stack usage arseny.kapoulkine@gmail.com 2012-11-18 01:11:50 +00:00
  • cee7eca229 XPath: Fix unit test that (incorrectly) relied on right-associativity of union operator to trigger out of memory condition arseny.kapoulkine@gmail.com 2012-11-17 23:51:43 +00:00
  • 48f9343c05 XPath: Add unit test for unary minus and union precedences arseny.kapoulkine@gmail.com 2012-11-17 22:50:05 +00:00
  • ed30b95a42 XPath stack optimization: Reduce stack usage during parsing by sharing scratch buffer for variable/number parsing (we only need one per parser) arseny.kapoulkine@gmail.com 2012-11-17 21:52:02 +00:00
  • 971fd96764 Fix PUGIXML_MEMORY_* constants for header-only mode arseny.kapoulkine@gmail.com 2012-11-17 04:55:24 +00:00
  • 43f3888dc1 Fix undefined pointer arithmetic for reverse() and unique() in case the range is empty (begin == end) arseny.kapoulkine@gmail.com 2012-11-08 16:01:23 +00:00
  • 973296bcb1 Minor refactoring arseny.kapoulkine@gmail.com 2012-10-31 04:56:27 +00:00
  • 09f9ab079e Adjust parsing so that it is possible to parse a document fragment into an existing subtree; can be used to implement append_buffer. arseny.kapoulkine@gmail.com 2012-10-31 04:47:17 +00:00
  • 68d533a828 tests: Remove 'con' loading from tests since it stopped working under Windows 8... arseny.kapoulkine@gmail.com 2012-10-31 04:45:38 +00:00
  • 2876af6773 Fix find_child_by_attribute assertion for attributes with null name/value. arseny.kapoulkine@gmail.com 2012-09-29 06:36:29 +00:00
  • 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. arseny.kapoulkine@gmail.com 2012-08-02 09:22:43 +00:00
  • 1c82e0cf7d scripts: Allow to customize library install location for CMake arseny.kapoulkine@gmail.com 2012-07-03 15:04:48 +00:00
  • 215ecbcff6 Add PUGIXML_CLASS to xml_named_node_iterator to make dllexport possible. Fixes issue 161. arseny.kapoulkine@gmail.com 2012-06-28 15:36:58 +00:00
  • a9a537ad40 Iterator improvements: safety assertions in xml_named_node_iterator, const_cast workaround for BCC32 bug v1.2 arseny.kapoulkine@gmail.com 2012-05-02 15:38:09 +00:00
  • a50f47f805 docs: Regenerated HTML documentation arseny.kapoulkine@gmail.com 2012-04-30 15:37:36 +00:00
  • 22a999f7e4 docs: Several typo fixes arseny.kapoulkine@gmail.com 2012-04-30 15:37:08 +00:00
  • 7e71534577 docs: Regenerated HTML documentation arseny.kapoulkine@gmail.com 2012-04-29 22:51:21 +00:00
  • a1f4ff0467 docs: Added xml_text documentation arseny.kapoulkine@gmail.com 2012-04-29 22:50:43 +00:00
  • fadead179c docs: Documented adding custom declaration node. Fixes issue 155. arseny.kapoulkine@gmail.com 2012-04-29 21:13:08 +00:00
  • 879f3bd954 docs: Included range-based for information in quickstart, other minor tweaks arseny.kapoulkine@gmail.com 2012-04-29 18:06:12 +00:00
  • 9b57b1bdd7 docs: Added range-based for documentation and sample arseny.kapoulkine@gmail.com 2012-04-29 17:58:05 +00:00
  • 420a6fe9d5 docs: Added header-only mode documentation arseny.kapoulkine@gmail.com 2012-04-29 17:29:50 +00:00
  • 89cde98e20 docs: Updated changelog, documented xml_attribute::as_string and customizable default value for xml_attribute::as_* arseny.kapoulkine@gmail.com 2012-04-28 20:27:30 +00:00
  • b1a1eef0c8 Removed diag_push for SNC since the warning bug is not fixed even in the latest version arseny.kapoulkine@gmail.com 2012-04-12 03:28:02 +00:00
  • 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) arseny.kapoulkine@gmail.com 2012-04-09 06:08:12 +00:00
  • 593e90e22c docs: Updated copyright year arseny.kapoulkine@gmail.com 2012-04-04 02:01:50 +00:00
  • 4a2d398a07 tests: Fixed PUGIXML_NO_STL compilation arseny.kapoulkine@gmail.com 2012-04-04 02:01:22 +00:00
  • bda8e935e9 Updated version number and copyright year everywhere arseny.kapoulkine@gmail.com 2012-04-03 05:04:07 +00:00
  • 7d18b33292 Whitespace-only change: set noexpandtab & retab! arseny.kapoulkine@gmail.com 2012-04-03 04:58:11 +00:00
  • cb1d83d32a Fixed xml_named_node_iterator category for MSVC6/7, IC8 and SunCC arseny.kapoulkine@gmail.com 2012-04-03 04:47:14 +00:00
  • a47bd44953 tests: Added tests for as_string and default values in as_* arseny.kapoulkine@gmail.com 2012-04-03 04:44:54 +00:00
  • 40777b2ce1 Added xml_attribute::as_string and xml_text::as_string, added default value to all as_* member functions arseny.kapoulkine@gmail.com 2012-04-03 04:44:36 +00:00
  • f4ac43c549 tests: Added xml_named_node_iterator tests arseny.kapoulkine@gmail.com 2012-03-27 05:46:44 +00:00
  • 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 arseny.kapoulkine@gmail.com 2012-03-27 05:31:33 +00:00
  • 951ff9d1a6 xml_object_range now supports Boost.ForEach arseny.kapoulkine@gmail.com 2012-03-27 05:25:49 +00:00
  • a10bb9d766 Introduced xml_named_node_iterator, introduced xml_node::children() and xml_node::attributes() for C++11 range-based for loop arseny.kapoulkine@gmail.com 2012-03-27 05:23:24 +00:00
  • 579adaf301 docs: Removed 'first block with BOM is small' note from xml_writer::write description. arseny.kapoulkine@gmail.com 2012-03-27 04:23:57 +00:00
  • 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 arseny.kapoulkine@gmail.com 2012-03-27 04:23:05 +00:00
  • 4a5d55fc86 docs: Small fix arseny.kapoulkine@gmail.com 2012-03-27 03:28:41 +00:00
  • e6fcef1b3e scripts: Added install target to CMakeLists.txt arseny.kapoulkine@gmail.com 2012-03-23 06:09:23 +00:00
  • 1cd736905b tests: Added text/binary save_file tests arseny.kapoulkine@gmail.com 2012-03-23 05:38:08 +00:00
  • 343107b3de Added format_save_file_text flag for opening the file in text mode arseny.kapoulkine@gmail.com 2012-03-23 05:37:45 +00:00
  • 046073830b Fixed header-only compilation arseny.kapoulkine@gmail.com 2012-03-23 04:26:13 +00:00
  • 5f9656c8b9 xml_document::save_file now checks for file I/O errors, fixed compilation arseny.kapoulkine@gmail.com 2012-03-23 04:24:56 +00:00
  • 898b2cbabb Extracted file saving into a separate function, fixed DMC compilation (set_value_buffer cast error) arseny.kapoulkine@gmail.com 2012-03-23 04:21:45 +00:00
  • dae6d908e5 Const-correctness 'fixes' (it's impossible to be const-correct here so remove redundant member) arseny.kapoulkine@gmail.com 2012-03-23 03:57:12 +00:00
  • 35c0c6aa5c Fixed member shadowing warnings for gcc arseny.kapoulkine@gmail.com 2012-03-23 03:51:00 +00:00