Dmitry-Me
3659fe1d33
Move loop variable definition into loop headers
2014-09-04 11:33:49 +04:00
Dmitry-Me
e3225b1c64
Convert DELETE_X macros into functions
2014-09-03 11:03:11 +04:00
Dmitry-Me
b6b4e82626
Remove repeated virtual calls
2014-08-27 17:17:47 +04:00
Dmitry-Me
ec19a0e513
Remove obsolete comment
2014-08-25 11:05:55 +04:00
Dmitry-Me
63f3de1a3c
Make code more defensive
...
* initialize out-parameter for cases the callee fails to
* add assert for length being within range
* replace post-assert with pre-assert
Also replace the loop with an equivalent memcpy() call
2014-08-21 12:33:19 +04:00
Dmitry-Me
67a5bb0ac1
Assert when trying to adjust _start in "needs delete" mode.
2014-08-20 10:01:53 +04:00
Dmitry-Me
01578db56b
Wrap fopen()/fopen_s() calls to avoid duplication
2014-08-19 10:18:48 +04:00
Dmitry-Me
acb9c9c260
Check ftell() result for error code before using it.
2014-08-04 09:49:25 +04:00
Dmitry-Me
08e7f7be59
fgetc() is not required to clear the error indicator on success
2014-07-31 15:19:14 +04:00
pffang
91d34a0989
WinCE Compatibility Fix
2014-07-10 10:02:35 +08:00
Lee Thomason
a0744c8dca
fix implementation of much simpler visual studio printing
2014-03-16 10:32:27 -07:00
Thomas Roß
268c683fbd
Use _vscprintf to calc length of expanded format string.
2014-03-13 23:35:16 +01:00
Uli Kusterer
613410095c
Provide finer control over indentation inside the XMLPrinter. You'll have to subclass it to override its standard behaviour by overwriting CompactMode().
2014-02-22 17:19:08 +01:00
Lee Thomason
7de26f7dc7
Merge remote-tracking branch 'origin/master'
2014-02-21 22:47:21 -08:00
Lee Thomason
82d3200571
clean up some error checking logic
2014-02-21 22:47:18 -08:00
Uli Kusterer
5d1d27e88b
Keep indentation control fully inside the XMLPrinter. You'll have to subclass it to override its standard behaviour by overwriting CompactMode().
2014-02-20 11:50:22 +01:00
Uli Kusterer
07ac762b80
SetBoolFirstChild now makes sure its bool is not wrapped onto its own line.
2014-02-01 15:06:50 +01:00
Uli Kusterer
b85b4e0a60
Merge branch 'pernodecompactwhitespace'
...
* pernodecompactwhitespace:
SetForceCompactMode() now also handles case of a single tag inside another correctly.
Give tests a few more chances to fail, e.g. on tag sequences or attributes.
Added SetForceCompactMode() for overriding the compact setting on a per-node level. All sub-nodes will be printed compact as well.
Conflicts:
xmltest.cpp
2014-02-01 13:38:04 +01:00
Uli Kusterer
ca412e87f2
SetForceCompactMode() now also handles case of a single tag inside another correctly.
2014-02-01 13:35:05 +01:00
Uli Kusterer
d5c9e8b81d
Added SetForceCompactMode() for overriding the compact setting on a per-node level. All sub-nodes will be printed compact as well.
2014-02-01 12:57:57 +01:00
Uli Kusterer
593a33d061
Added SetForceCompactMode() for overriding the compact setting on a per-node level. All sub-nodes will be printed compact as well.
2014-02-01 12:48:51 +01:00
Uli Kusterer
53fe47c74e
Remove long long stuff again.
2014-01-27 01:47:30 +01:00
Uli Kusterer
35ce309f73
Urk, forgot to build this one after merging and goofed a bit.
2014-01-25 03:37:16 +01:00
Uli Kusterer
2861a7e63a
Merge branch 'master' of https://github.com/leethomason/tinyxml2
...
Conflicts:
tinyxml2.cpp
xmltest.cpp
2014-01-25 03:12:21 +01:00
Lee Thomason
5bb2d8079b
add variants of SetText() to support types
2014-01-24 10:42:57 -08:00
Uli Kusterer
664d05662e
Support for 'long long' number values.
2014-01-21 12:24:47 +01:00
Uli Kusterer
ff8e2041dd
To bring BoolFirstChild() more in line with the other methods, reimplemented it in terms of a new QueryBoolFirstChild().
2014-01-21 02:53:47 +01:00
Uli Kusterer
c1c20bb196
Bools should really be implemented as self-closing <true /> and <false /> tags, not as 0/1 inside a tag, so removing those SetText variants again, in favor of SetBoolFirstChild() and BoolFirstChild() methods.
2014-01-21 02:23:20 +01:00
Uli Kusterer
dcefa0e43f
Add typed convenience setters for SetText().
2014-01-21 01:36:41 +01:00
Uli Kusterer
869bb599c1
Make SetText() behave like the docs say.
2014-01-21 01:36:16 +01:00
Uli Kusterer
8fe342a872
Add SetText() as analog to GetText().
2014-01-21 01:12:47 +01:00
Lee Thomason
44ce7930b7
Merge branch 'master' of https://github.com/leethomason/tinyxml2
2014-01-14 12:30:18 -08:00
Lee Thomason
c3708ccf08
implement a fix to floating point precision as proposed by schuellc.
2014-01-14 12:30:03 -08:00
Daniel Marjamäki
ba4b328b3d
Fixed issue 147 (XMLDocument::LoadFile() may crash on non-regular file)
2014-01-10 21:37:27 +01:00
psi
690ba07bda
you have to check len before accsessing "p".
2013-11-03 10:54:33 +09:00
Lee Thomason
3b7927efb5
formatting tweaks
2013-10-26 21:50:46 -07:00
Michael Daumling
ed52328ced
Insert() methods check for inserted XML to be in the same doc, and remove XML from old location if already inserted.
2013-10-23 07:47:29 +02:00
Michael Daumling
2162688ad3
Issue #134 : Change 3 methods to not being inlined. They reference the StrPair class, which is not exported, thus creating linker problems with tinyxml2 in a DLL.
2013-10-22 17:03:37 +02:00
PKEuS
1bfb95488f
Added depth as constructor argument to XMLPrinter. This way, XML files that are not written with XMLDocument can be properly indented.
...
Removed unused forward declaration
2013-08-04 14:04:09 +02:00
PKEuS
1c5f99e37c
Fixed two cppcheck messages
2013-07-06 11:28:39 +02:00
Thomas Roß
6189231187
Initialize pointers to satisfy static code analyser.
2013-05-12 14:07:38 +02:00
Lee Thomason (grinliz)
d6bd7360b8
fix floating point specifier and clean up a warning
2013-05-11 20:23:13 -07:00
Thomas Roß
1470edc595
Fixed compiler warning for x64 builds.
2013-05-10 15:44:12 +02:00
Lee Thomason (grinliz)
d0a38c3a20
fix BOM preservation bugs. add new tests
2013-04-29 09:15:37 -07:00
Vasily Biryukov
1cfafd0d24
Fixed: LoadFile() returns XML_NO_ERROR for empty documents.
2013-04-20 14:12:33 +06:00
Andrew C. Martin
0fd8746f64
correct typos in comments / documentation
2013-03-09 20:09:45 -07:00
Lee Thomason (grinliz)
61cea67517
removing debug output
2013-02-01 19:13:13 -08:00
Lee Thomason (grinliz)
ac83b4e278
adjust the size of the memory pools
2013-02-01 09:02:34 -08:00
Martinsh Shaiters
a9d42b0dd3
Replace InitDocument() with Clear() and make it part of the API.
2013-01-30 11:19:39 +02:00
Martinsh Shaiters
c6d02f48d5
Implement new utility functions for testing validity of name and token characters.
2013-01-26 22:43:54 +02:00