Philipp A. Hartmann
8d53689432
(Pretty)Writer: drop restriction to object/array roots
2014-08-11 17:14:31 +02:00
Milo Yip
86245ce97a
Remove cppformat and strtk
2014-08-11 22:40:13 +08:00
Milo Yip
0dbcc1cf2e
Add license and change indents from tab to space.
2014-08-11 22:26:45 +08:00
Milo Yip
adb3974e4d
Merge pull request #97 from miloyip/issue72customdtoa
...
Fix #72
2014-08-11 21:56:10 +08:00
Milo Yip
1900b7bace
Remove double precision settings API in Writer
2014-08-09 21:37:02 +08:00
Milo Yip
a7762a3453
Custom dtoa() impleemntation
...
Modified from Milo's Grisu2 implementation. 99.9% cases return shortest
decimal format.
2014-08-09 21:12:58 +08:00
Milo Yip
f0955d327c
Fixed a bug in perftest (was asserted in debug)
2014-08-09 20:35:48 +08:00
Milo Yip
b52e07822e
Try to add erase-remove idiom in unit test but fail to compile on VC2013.
2014-08-01 00:04:31 +08:00
Philipp A. Hartmann
fc6d7a59dc
GenericValue: rename Erase(ConstMemberIterator) to EraseMember
2014-07-31 13:16:56 +02:00
Philipp A. Hartmann
82b32a93d2
fix missing bracket
2014-07-31 13:06:28 +02:00
Philipp A. Hartmann
b98852e165
GenericValue: add tests for Erase(ConstMemberIterator[, ConstMemberIterator])
2014-07-31 13:03:51 +02:00
miloyip
71ae5660ed
Revert "Add Erase(ConstValueIterator) and Erase(ConstValueIterator,ConstValueIterator)"
...
This reverts commit 9ab2621e855a9abb8377520b42d6dfddcd49a8e1.
2014-07-31 18:56:57 +08:00
miloyip
9ab2621e85
Add Erase(ConstValueIterator) and Erase(ConstValueIterator,ConstValueIterator)
...
As std::vector::erase() overloads added in C++11
2014-07-31 18:53:17 +08:00
miloyip
71c8402549
Add equal-to and non-equal-to operators
2014-07-31 18:43:59 +08:00
miloyip
0f7d2dad51
Add 2 overloads of Erase() for removing elements of array.
2014-07-31 14:22:59 +08:00
Milo Yip
5456606232
Add a "must underflow" case as suggested by @pah
2014-07-31 00:02:02 +08:00
Milo Yip
808d362b88
Fix parsing numbers which are less than 1e-308
...
Overflow should check sign of exponent.
2014-07-30 23:27:17 +08:00
miloyip
fdd380bbc0
Added insitu parsing test for kParseStopWhenDoneFlag
...
Related to discussion in #83
2014-07-29 13:01:35 +08:00
Milo Yip
e6f344637b
Merge pull request #83 from miloyip/issue75stopwhendone
...
Issue75stopwhendone
2014-07-28 18:45:06 +08:00
Milo Yip
c545895368
Merge pull request #84 from miloyip/issue79memorystreambuffer
...
Add MemoryBuffer and MemoryStream
2014-07-28 18:45:00 +08:00
Milo Yip
b60bcc2762
Add MemoryBuffer and MemoryStream
2014-07-27 19:29:57 +08:00
Milo Yip
3d106085c1
Add a space in multiple root test for ensuring that whitespace is not consumed when done.
2014-07-27 17:29:03 +08:00
Milo Yip
e09b9d5c05
Merge remote-tracking branch 'origin/master' into issue75stopwhendone
2014-07-27 17:13:32 +08:00
Milo Yip
c81386413b
Add kParseStopWhenDoneFlag, its implementation and related unit tests
2014-07-27 17:10:32 +08:00
Milo Yip
2a389ad659
Merge remote-tracking branch 'origin/master' into IterativeParseOptimization
2014-07-27 15:50:16 +08:00
Milo Yip
c4ce48cde9
Merge pull request #80 from miloyip/issue31optimizeitoa
...
Issue31optimizeitoa
2014-07-27 15:49:36 +08:00
Milo Yip
8081e2a2c8
Add perf test cases for document using iterative parsing
2014-07-27 00:03:37 +08:00
Milo Yip
e3e8fea0f3
Remove stack size limit feature
...
It is not very useful for iterative parsing as the worst case of heap
size is O(n) where n is number of character in JSON, for the worst
synthetic cases. This is reasonable and should not create stack overflow
security problem as in recursive parsing.
2014-07-26 21:40:11 +08:00
Milo Yip
86b2f51a58
Use branchlut implementation for itoa conversion.
2014-07-25 00:08:24 +08:00
thebusytypist
140dc0664e
Fix compilation error(signed/unsigned comparison).
2014-07-18 01:08:07 +08:00
thebusytypist
afa59455a5
Fix compilation error(unused variable, signed/unsigned comparison).
2014-07-18 00:36:31 +08:00
miloyip
74a135678a
Add VC itoa perf comparison
2014-07-17 17:47:51 +08:00
miloyip
e1cdf1229e
Pass GCC compilation
2014-07-17 13:28:40 +08:00
Milo Yip
46eeb46a61
Implemented faster itoa with bit counting and reverse write
2014-07-17 02:26:20 +08:00
thebusytypist
fa25f93ddb
Merge remote-tracking branch 'upstream/master' into TransitionTable
2014-07-16 23:16:33 +08:00
thebusytypist
c3d7d8b38a
Revise unittests: should not expose implementation details.
2014-07-16 23:10:16 +08:00
miloyip
8b963dc7ad
Start benchmarking different itoa implementation
2014-07-16 19:14:00 +08:00
thebusytypist
1f53c6c041
Implement stack size limitation for iterative parsing.
2014-07-15 14:16:06 +08:00
miloyip
9974e35578
Merge conflicts and suppress VC warnings
2014-07-15 09:20:19 +08:00
thebusytypist
46e89dad0d
Add unittests for kParserErrorTermination; Fix bugs in last merge.
2014-07-15 00:51:34 +08:00
thebusytypist
d4da07c5fb
Merge upstream/master.
2014-07-14 23:49:57 +08:00
Milo Yip
b5436f7104
Add ASCII encoding which can fulfill #69
2014-07-13 23:51:56 +08:00
Milo Yip
5babae98e5
Add Writer::IsComplete()
2014-07-13 13:21:25 +08:00
Milo Yip
b234007713
Fixes #66 by adding Writer::Reset() and multiple root check
...
Note it redefines RAPIDJSON_ASSERT() to throw exception in unittest and
check for assertion with gtest.
2014-07-13 13:16:03 +08:00
Milo Yip
b55fcbd36a
Merge pull request #61 from miloyip/issue59terminate
...
Fixes #59 by adding bool return value for each event handler function
2014-07-12 23:42:50 +08:00
thebusytypist
face7240fe
Revise unittests of compound value(array or object)'s initial state transition.
2014-07-11 16:33:32 +08:00
thebusytypist
3038a7855e
Revise unittests: reset the handler before the transition which we are going to test.
2014-07-11 16:03:38 +08:00
thebusytypist
36434b66c8
Merge remote-tracking branch 'upstream/master' into TransitionTable
2014-07-11 12:52:07 +08:00
thebusytypist
70d01cc5f3
Complete unittests for state transition.
2014-07-11 11:43:09 +08:00
Philipp A. Hartmann
7a2e6e79c6
StrLen: align implementations
...
There are two copies of `StrLen` in the RapidJSON code base
* strfunc.h: rapidjson::internal::StrLen<Ch>
* unittest.h: Strlen<Ch>
To hide a warning on MSVC, align both implementations to use
'unsigned/SizeType' as return type and add an explicit cast.
2014-07-10 19:41:17 +02:00