arseny.kapoulkine@gmail.com
|
4e1add1a46
|
Fix invalid assertion in XPath: reallocation can result in allocating buffer of the same size due to pointer-sized alignment
git-svn-id: http://pugixml.googlecode.com/svn/trunk@946 99668b35-9821-0410-8761-19e4c4f06640
|
2013-03-20 02:44:05 +00:00 |
|
arseny.kapoulkine@gmail.com
|
33301e9f42
|
Fix XPath return type for contains() and string-length()
git-svn-id: http://pugixml.googlecode.com/svn/trunk@944 99668b35-9821-0410-8761-19e4c4f06640
|
2013-03-19 15:11:40 +00:00 |
|
arseny.kapoulkine@gmail.com
|
2e4f6c54a8
|
Work around clang static analysis false positives using extra assertions.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@943 99668b35-9821-0410-8761-19e4c4f06640
|
2012-12-08 04:06:37 +00:00 |
|
arseny.kapoulkine@gmail.com
|
389d1c2893
|
Only include wchar.h in PUGIXML_WCHAR_MODE; use a custom implementation of wcslen in case there is no wide character support.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@942 99668b35-9821-0410-8761-19e4c4f06640
|
2012-12-07 08:11:23 +00:00 |
|
arseny.kapoulkine@gmail.com
|
30549910db
|
Fix uninitialized variable in case append_buffer fails with out of memory due to buffer copy allocation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@941 99668b35-9821-0410-8761-19e4c4f06640
|
2012-12-07 06:56:31 +00:00 |
|
arseny.kapoulkine@gmail.com
|
9b9a414ab6
|
Compatibility fixes (fixed warnings in gcc, msvc7, fixed errors in bcc, cw, msvc6)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@939 99668b35-9821-0410-8761-19e4c4f06640
|
2012-12-07 06:35:53 +00:00 |
|
arseny.kapoulkine@gmail.com
|
456527b44a
|
Implement xml_node::append_buffer as a faster alternative to assembling documents from fragments (compared to parse & clone)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@936 99668b35-9821-0410-8761-19e4c4f06640
|
2012-12-07 04:49:23 +00:00 |
|
arseny.kapoulkine@gmail.com
|
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.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@933 99668b35-9821-0410-8761-19e4c4f06640
|
2012-11-18 23:11:59 +00:00 |
|
arseny.kapoulkine@gmail.com
|
c95900e354
|
XPath: Fix BCC/DMC compilation (overloading workaround)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@932 99668b35-9821-0410-8761-19e4c4f06640
|
2012-11-18 01:14:33 +00:00 |
|
arseny.kapoulkine@gmail.com
|
4fe55906fa
|
XPath stack optimization: Rewrite part of the recursive descent parser to precedence climbing to reduce stack usage
git-svn-id: http://pugixml.googlecode.com/svn/trunk@931 99668b35-9821-0410-8761-19e4c4f06640
|
2012-11-18 01:11:50 +00:00 |
|
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
|
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
|
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
|
2012-05-02 15:38:09 +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
|
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
|
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
|
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
|
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
|
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
|
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
|
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 |
|
arseny.kapoulkine@gmail.com
|
17bd46eee6
|
Extracted xml_attribute value setter/getter code to separate functions (for xml_text)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@871 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-23 02:37:18 +00:00 |
|
arseny.kapoulkine@gmail.com
|
2f3c31dcd3
|
Reverted accidental submit
git-svn-id: http://pugixml.googlecode.com/svn/trunk@870 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 07:07:22 +00:00 |
|
arseny.kapoulkine@gmail.com
|
5e8e325d85
|
Fixed strict aliasing violation warning in output buffer conversion via union. Fixed BlackBerry NDK -O3 compilation in header-only wchar mode.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@869 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 07:07:01 +00:00 |
|
arseny.kapoulkine@gmail.com
|
3a282e2f0b
|
STL forward declaration experiment failed; revert to using STL headers. Reasons: bugs in old compilers (i.e. SunCC, DMC, BCC require using the same names in forward declarations as in actual declarations), incompatibility between buggy compilers and different STL versions (i.e. SunCC has two STL versions with mismatching names), problems with C++0x inline namespaces (used in Clang libc++, see http://llvm.org/bugs/show_bug.cgi?id=5590), and this is an undefined behavior so other problems may come up.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@868 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 06:19:31 +00:00 |
|
arseny.kapoulkine@gmail.com
|
4935e2356f
|
MinGW does not have _wfopen in strict ANSI mode (fixes mingw45 C++0x compilation)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@867 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 06:16:01 +00:00 |
|
arseny.kapoulkine@gmail.com
|
40ed110136
|
Explicitly ignore fwrite result - nothing else can be done with the current writer interface, unfortunately
git-svn-id: http://pugixml.googlecode.com/svn/trunk@866 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 05:47:55 +00:00 |
|
arseny.kapoulkine@gmail.com
|
07cda98d66
|
Fixed Borland C++ issues when compiling pugixml as header-only
git-svn-id: http://pugixml.googlecode.com/svn/trunk@864 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-20 04:00:10 +00:00 |
|
arseny.kapoulkine@gmail.com
|
800288d351
|
Intel C++ 11 has the same warning pop bug... Disable warning popping on all Intel C++ versions. Fixes Intel C++ 11 compilation in PUGIXML_NO_STL mode.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@862 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-15 07:08:32 +00:00 |
|
arseny.kapoulkine@gmail.com
|
a58131c9dc
|
Added PUGIXML_MEMORY constants for tweaking memory behaviour; useful for embedded systems or for unusual cases (i.e. thousands of small documents in memory)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@860 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-14 06:04:50 +00:00 |
|
arseny.kapoulkine@gmail.com
|
e4ae729370
|
Dereferemce operators in both iterators are now const; this fixes iterator compatibility with parts of Boost Iterator (i.e. filter_iterator). It is now possible to damage the state of const_iterator by directly mutating internal handle - working around that introduces additional performance penalties and is generally extremely unlikely to be useful - constant iterator objects are rarely used.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@858 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-14 05:34:00 +00:00 |
|
arseny.kapoulkine@gmail.com
|
23f891a92b
|
Different versions of RWSTL have different headers; revert the previous change and instead introduce PUGIXML_NO_STL_FWDDECL macro (that disables forward declaration of STL classes, which is not compliant).
git-svn-id: http://pugixml.googlecode.com/svn/trunk@857 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-14 04:21:26 +00:00 |
|
arseny.kapoulkine@gmail.com
|
cf779955d9
|
Fixed SunCC compilation when using RWSTL instead of STLport; should fix issue 101.
git-svn-id: http://pugixml.googlecode.com/svn/trunk@856 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-14 03:40:06 +00:00 |
|
arseny.kapoulkine@gmail.com
|
2f6baa1005
|
Implemented optional header-only mode (still need to do a couple of fixes for rare compilers, but it seems to work on the majority of configurations). Tests work in header-only mode, but testing is not enabled yet (still a bit more work to be done, and compiling header-only tests is up to 4 times slower, so we can't test more than one-two configurations per toolset)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@855 99668b35-9821-0410-8761-19e4c4f06640
|
2012-03-14 03:08:01 +00:00 |
|