summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-02-13Merge pull request #85 from igagis/masterArseny Kapoulkine
scripts: Add CocoaPods package
2016-02-03embed license to podspec, as LICENSE file is not in 1.7 tag, cocoapods ↵Ivan Gagis
errors otherwise. Get sources from zeux github
2016-02-03LICENSE, podspecIvan Gagis
2016-02-02Refactor conversion from integer to stringArseny Kapoulkine
Unify the implementations by automatically deducing the unsigned type from its signed counterpart. That allows us to use a templated function instead of duplicating code.
2016-02-02docs: Add documentation for long settersArseny Kapoulkine
2016-02-02tests: Add tests for long settersArseny Kapoulkine
2016-02-02Implement set/set_value/operator= for long typesArseny Kapoulkine
This makes the coverage for basic numeric types complete (sans long double). Fixes #78.
2016-01-26Specify std=c++11 explicitly in Travis configurationsArseny Kapoulkine
That way the defaults in the Makefile only matter for local runs.
2016-01-26Merge pull request #83 from ogdf/use-real-standards-onlyArseny Kapoulkine
Add cxxstd Makefile argument for testing C++ standards
2016-01-26Let Travis CI perform C++98-based testsStephan Beyer
2016-01-26Make cxxstd an argument to MakefileStephan Beyer
This determines the used C++ standard. If you do not want to use a specific C++ standard, use cxxstd=any. The default is set to c++11. The "define" PUGIXML_NO_CXX11 is removed from the Makefile since it is not used in the code anyways.
2016-01-26Let Travis CI use Ubuntu trustyStephan Beyer
This allows to perform C++11-based tests on the Linux.
2016-01-24test_parse.cpp: add newline to last lineStephan Beyer
This is necessary in order to comply with the C++03 standard.
2016-01-24Merge pull request #81 from ogdf/whitespace-issuesArseny Kapoulkine
Fix whitespace issues
2016-01-24Fix whitespace issuesStephan Beyer
Git warns when it finds "whitespace errors". This commit gets rid of these whitespace errors for code and adoc files.
2016-01-20Change header format in non-compact mode to store page offsetArseny Kapoulkine
This utilizes the fact that pages are of limited size so we can store offset from the object to the page in a few bits - we currently use 24 although that's excessive given that pages are limited to ~512k. This has several benefits: - Pages do not have to be 64b aligned any more - this simplifies allocation flow and frees up 40-50 bytes from xml_document::_memory. - Header now has 8 bits available for metadata for both compact and default mode which makes it possible to store type as-is (allowing easy type extension and removing one add/sub operation from type checks). - One extra bit is easily available for future metadata extension (in addition to the bit for type encoding that could be reclaimed if necessary). - Allocators that return 4b-aligned memory on 64-bit platforms work fine if misaligned reads are supported. The downside is that there is one or two extra instructions on the allocation path. This does not seem to hurt parsing performance.
2016-01-19docs: Adjust as_int documentation to match implementationArseny Kapoulkine
Also remove the description of behavior for trailing non-numeric characters. It's likely this will become a parse error in the future so better leave it as unspecified for now. Fixes #80.
2016-01-14Merge pull request #79 from zeux/embed-pcdataArseny Kapoulkine
Add parse_embed_pcdata flag This flag determines if plain character data is be stored in the parent element's value. This significantly changes the structure of the document; this flag is only recommended for parsing documents with a lot of PCDATA nodes in a very memory-constrained environment. Most high-level APIs continue to work; code that inspects DOM using first_child()/value() will have to be adapted.
2016-01-12Preserve order semantics for child_value/text when using parse_embed_pcdataArseny Kapoulkine
The performance cost is probably negligible and this means we treat embedded value as the first child consistently.
2016-01-12docs: Add parse_embed_pcdata documentationArseny Kapoulkine
2016-01-12Adjust parse_embed_pcdata documentationArseny Kapoulkine
Since round-tripping should not be a problem any more don't mention it.
2016-01-12tests: Add test for parse_embed_pcdataArseny Kapoulkine
2016-01-12Only save first PCDATA contents in the elementArseny Kapoulkine
This change fixes an important ordering issue - if element node has a PCDATA child *after* other elements, it's impossible to tell which order the children were in. Since the goal of PCDATA embedding is to save memory when it's the only child, only apply the optimization to the first child. This seems to fix all roundtripping issues so the only caveat is that the DOM structure is different.
2016-01-09Implement output support for embedded PCDATA valuesArseny Kapoulkine
This is a bit awkward since preserving correct indentation structure requires a bit of extra work, and the closing tag has to be written by _start function to correctly process the rest of the tree.
2016-01-08Support XPath string value for parse_embed_pcdataArseny Kapoulkine
2016-01-08Support xml_node::child_value/text for parse_embed_pcdataArseny Kapoulkine
2016-01-08Add initial support for parse_embed_pcdataArseny Kapoulkine
When this flag is true, PCDATA value is saved to the parent element instead of allocating a new node. This prevents some documents from round-tripping since it loses information, but can provide a significant memory reduction and parsing speedup for some documents.
2015-12-31docs: Regenerate HTML documentationArseny Kapoulkine
2015-12-31Update all license/copyright texts to 2016Arseny Kapoulkine
2015-12-31docs: Use ISO-8601 for changelog datesArseny Kapoulkine
2015-12-30scripts: Fix default value for STATIC_CRT optionArseny Kapoulkine
Also refactor to use the same case and run after common options.
2015-12-30Merge pull request #70 from nirbar/masterArseny Kapoulkine
scripts: Allow linking static CRT libraries on Windows Use the solution from CMake FAQ to specify correct command-line arguments.
2015-12-29Work around Clang Wstring-conversion warningsArseny Kapoulkine
(!"string") triggers the warning however (false && "string") does not. Fixes #75.
2015-12-03Merge branch 'master' of github.com:nirbar/pugixmlnir.bar
2015-12-03Add CMake option on MSVC- STATIC_CRTnir.bar
2015-11-13Work around MinGW versions with non-C99 compliant headersArseny Kapoulkine
Apparently some MinGW distributions have a compiler that's recent enough to support C++11 but limits.h header that incorrectly omits LLONG limits in strict ANSI mode, since it guards the definitions with: #if !defined(__STRICT_ANSI__) && defined(__GNUC__) We can just define these symbols ourselves in this specific case. Fixes #66.
2015-10-25tests: Fix Borland C++ 5.4 compilationArseny Kapoulkine
The tests now compile fine but crash on the first floating-point exception despite our attempts to disable them in main()...
2015-10-25Fix Borland C++ 5.4 compilationArseny Kapoulkine
It does not have stdint.h and has some C++ parsing issues.
2015-10-24Reduce Travis build matrixArseny Kapoulkine
2015-10-23Build NuGet package on AppVeyorArseny Kapoulkine
2015-10-19docs: Fix CDATA exampleArseny Kapoulkine
Fixes #61.
2015-10-19docs: Add iOS to the list of supported platformsArseny Kapoulkine
2015-10-18docs: Update packaging infoArseny Kapoulkine
2015-10-18docs: Update release datev1.7Arseny Kapoulkine
2015-10-18docs: Rewrite Portability sectionArseny Kapoulkine
2015-10-18Add config=analyzeArseny Kapoulkine
2015-10-18Add release build to TravisArseny Kapoulkine
2015-10-18Fix wchar modeArseny Kapoulkine
2015-10-18Fix MWCW issue with compact modeArseny Kapoulkine
2015-10-18Fix Borland C++ issues with compact modeArseny Kapoulkine