- 04 Jul, 2014 1 commit
-
-
Milo Yip authored
Safer implementation of Swap()
-
- 03 Jul, 2014 22 commits
-
-
Milo Yip authored
Also added documentation, unit tests for swapping Document/Value, Document/Document.
-
Milo Yip authored
Miscellaneous cleanups
-
Philipp A. Hartmann authored
-
Philipp A. Hartmann authored
The error messages in ParseNumber used `is.Tell` to report the position of the number parsing error. Depending on the copy optimization of the current stream, this can lead to different behaviour (beginning of number vs. position of error).
-
Philipp A. Hartmann authored
-
Philipp A. Hartmann authored
* Delegate constant string construction to SetStringRaw * Delegate "const Ch*" overloads to GenericValue variants of operator[], FindMember and RemoveMember * Remove repeated template arguments in nested struct Array (cherry-picked from ca9b0332d)
-
Philipp A. Hartmann authored
Instead of hard-coding the value 0 for the parseFlags in the various parsing overloads, explicitly use kParseDefaultFlags to provide more self-documenting code.
-
Philipp A. Hartmann authored
-
Philipp A. Hartmann authored
-
Philipp A. Hartmann authored
-
Milo Yip authored
@pah
-
Milo Yip authored
Added GenericValue::Swap()
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Add explicit MemberIterator, return MemberEnd() from FindMember()
-
Philipp A. Hartmann authored
No functional changes.
-
Philipp A. Hartmann authored
* use MemberIterator instead of plain pointer * check against MemberEnd() instead of NULL
-
Philipp A. Hartmann authored
In order to activate the suppression of "-Weffc++" warnings in the template meta function classes (non-virtual destructor), move the inclusion of the meta-function header `internal/meta.h` after the suppression pragma.
-
Philipp A. Hartmann authored
-
Philipp A. Hartmann authored
Add dedicated class-based member iterator to prepare the switch to a (safe) API change to return MemberEnd() from FindMember(). Pointer-based iterator can be kept by defining RAPIDJSON_NOMEMBERITERATORCLASS. This may be useful for platforms without a working <iterator> header.
-
Philipp A. Hartmann authored
* Add/RemoveConst * IsSame, IsConst, IsMoreConst * Enable/DisableIf (including helper macro)
-
Milo Yip authored
GenericReader: simplify local stream copy optimization
-
- 02 Jul, 2014 14 commits
-
-
Philipp A. Hartmann authored
Eventually move to internal header `internal/streamcopy.h`? Based on 088e8173.
-
Philipp A. Hartmann authored
rapidjson.h: * StreamLocalCopy: add default argument to copy optimization selector based on StreamTraits of Stream parameter * drop operator->, operator* * make Stream (reference) member public * drop empty destructor reader.h: * add local references, initialized from "copy" (reverts algorithmic bodies back to plain 's.xx()')
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Fix/Suppress all -Wall -Wextra -Weffc++ warnings on gcc 4.6.x - 4.8.x
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
-
Milo Yip authored
Fixes local copy optimization
-
Milo Yip authored
-
Milo Yip authored
The previous optimization #32 has problem that restoration requires assignment operator. Change the backup/restore process using a template wrapper class to select code path.
-
- 01 Jul, 2014 2 commits
- 30 Jun, 2014 1 commit
-
-
Milo Yip authored
-