- 25 Jun, 2014 17 commits
-
-
Milo Yip authored
some minor fixes
-
Milo Yip authored
GenericDocument::ParseStream: make SourceEncoding optional
-
Milo Yip authored
GenericDocument: forward allocator to GenericReader
-
Milo Yip authored
GenericValue: explicit constructors
-
Milo Yip authored
GenericValue: fixup construction from NumberType
-
Milo Yip authored
drop trailing commas in enums
-
Milo Yip authored
-
Philipp A. Hartmann authored
FileStream::current_ is now explicitly initialized in the constructor. Avoids reading the garbage value in case of an empty file.
-
Philipp A. Hartmann authored
The MemoryPoolAllocator implementation cannot and should not be copied (Rule of Three). Declare copy constructor and copy-assignment operator as private.
-
Philipp A. Hartmann authored
This patch fixes some misspellings of "allocator" in document.h. Fixes the Doxygen documentation of GenericDocument as well.
-
Philipp A. Hartmann authored
The ParseStream() function current requires explicitly passing the SourceEncoding parameter as explicit template argument while the other Parse*() functions provide overloads to omit this parameter and use the document's own encoding by default. This patch adds the corresponding overload for ParseStream(), enabling the simple usage again: rapidjson::FileStream is(fp); rapidjson::Document d; d.ParseStream<0>(is);
-
-
Philipp A. Hartmann authored
In case of overloaded functions taking either a GenericValue or another class that can also be constructed from the same primitive types (e.g. std::string, which can be constructed from const char*), the overloading becomes ambiguous: void foo( const std::string& ); void foo( const rapidjson::Value & ); Declaring the GenericValue constructors taking primitive types as 'explicit' avoids this problem. This should not have any negative side-effects, since a GenericValue can't be copied or implicitly converted to other types. Fixes http://code.google.com/p/rapidjson/issues/detail?id=70.
-
Philipp A. Hartmann authored
Constructing an empty GenericValue with a specific Type has failed for any kNumberType (Int, Int64, Double...) due to incomplete definition of the corresponding default flag value. This patch adds a new constant kNumberAnyFlag to the flags enumeration in GenericValue to cover this case. This fixes http://code.google.com/p/rapidjson/issues/detail?id=57
-
Philipp A. Hartmann authored
In C++'98/03, trailing commas in enumerations are not allowed, but have been introduced in C++11. This patch drops the trailing commas in order to avoid compiler warnings (e.g. GCC with -pedantic). Fixes http://code.google.com/p/rapidjson/issues/detail?id=49.
-
Milo Yip authored
-
- 16 Nov, 2012 2 commits
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@105 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@95 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 15 Nov, 2012 4 commits
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@89 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@88 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@87 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@86 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 14 Nov, 2012 7 commits
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@84 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
Makes GenericValue::FindMember() public. Added array element and object member iteration APIs in examples. git-svn-id: https://rapidjson.googlecode.com/svn/trunk@83 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@80 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@78 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@77 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@74 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@72 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 13 Nov, 2012 4 commits
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@70 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@69 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@67 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@65 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 06 Mar, 2012 1 commit
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@64 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 28 Feb, 2012 2 commits
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@61 c5894555-1306-4e8d-425f-1f6f381ee07c
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@59 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 19 Feb, 2012 1 commit
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@57 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 06 Dec, 2011 1 commit
-
-
miloyip@gmail.com authored
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@51 c5894555-1306-4e8d-425f-1f6f381ee07c
-
- 03 Dec, 2011 1 commit
-
-
miloyip@gmail.com authored
Fixed a bug for using Reader with AutoUTFInputStream git-svn-id: https://rapidjson.googlecode.com/svn/trunk@50 c5894555-1306-4e8d-425f-1f6f381ee07c
-