- 29 Jun, 2014 12 commits
-
-
Milo Yip authored
‘>>’ should be ‘> >’ within a nested template argument list
-
Milo Yip authored
An unit test is added
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Added overloaded functions for default parseFlags
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Can write d.Parse(...) instead of d.Parse<0>(...) Hope to reduce strangeness and confusion for beginner.
-
Milo Yip authored
Showing the type Value and preventing member lookup twice.
-
- 28 Jun, 2014 3 commits
- 27 Jun, 2014 5 commits
-
-
Milo Yip authored
Fix segfault and build error on Linux
-
Philipp A. Hartmann authored
Another instance of casting away constness via C-style cast has been missed (introduced by #20).
-
Philipp A. Hartmann authored
Some early returns were missing after the removal of longjmp in #22. This has led to segfaults on Linux (confirmed locally).
-
Milo Yip authored
minor mistake
-
Milo Yip authored
Added a paragraph about the unicode features
-
- 26 Jun, 2014 17 commits
-
-
Milo Yip authored
Removal of setjmp()/longjmp()
-
Milo Yip authored
Compound types (object and array) call ParseString() and ParseValue() for key and values. If there is parse errors inside those calls, it should stop continue parsing. Otherwise, it may be possible to continue parsing and calling handler incorrectly. For example, in ["a\u,","b"], \u generates an error (it should follow but 4 hex digits), the parser continues to treat the first comma as element separator, and treat "," as a JSON string and call the handler. It may be unacceptable in the application code.
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Prepare travis-ci.org integration, fix build on Ubuntu 12.04 LTS
-
Milo Yip authored
-
Philipp A. Hartmann authored
The C++ standard does not include the C99 macros used to set the (U)INT64 constants in document.h and reader.h (see adf66292 and ce1fece2). Many implementations include their definition when the __STDC_CONSTANT_MACROS preprocessor symbol is defined. See e.g. http://www.cprogramdevelop.com/5272623/, needed to successfully build in travis-ci.org's environment.
-
Philipp A. Hartmann authored
Travis CI is a free hosted continuous integration platform for open-source projects. It allows automated testing for GitHub-hosted projects. This commit adds a corresponding `.travis.yml` configuration file.
-
Milo Yip authored
-
Milo Yip authored
Add compatibility section and minor changes about JSON.
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
User-defined double output precision
-
Milo Yip authored
GenericValue: add copy constructor and CopyFrom
-
- 25 Jun, 2014 3 commits
-
-
Philipp A. Hartmann authored
This commit adds some simple tests for the deep-copying of values, either based on the explicit constructor, or the CopyFrom function. It uses the CrtAllocator to test for possible double-free errors due to insufficient copying.
-
Philipp A. Hartmann authored
To allow deep copying from an existing GenericValue, an explicit "copy constructor" (with required Allocator param) and an "CopyFrom" assignment function are added. Document d; Document::AllocatorType& a = d.GetAllocator(); Value v1("foo"); // Value v2(v1); // not allowed Value v2(v1,a); // make a copy RAPIDJSON_ASSERT(v1.IsString()); // v1 untouched d.SetArray().PushBack(v1,a).PushBack(v2,a); RAPIDJSON_ASSERT(v1.Empty() && v2.Empty()); v2.CopyFrom(d,a); // copy whole document RAPIDJSON_ASSERT(d.IsArray() && d.Size()); // d untouched v1.SetObject().AddMember( "array", v2, a ); d.PushBack(v1,a); Additionally, the Handler implementation in GenericDocument is made private again, restricting access to GenericReader and GenericValue.
-
Philipp A. Hartmann authored
Instead of always just shallowly referencing the potentially allocated strings when calling the Handler::String function, request a copy in case the string has been allocated from an Allocator before. This is necessary to avoid double free()s of the string memory, especially when using the Handler to create a deep copy of a Value. The explicit comparison against '0' is done to suppress the warning C4800 on MSVC, see pah/rapidjson#5.
-