StilesCrisis
4643104b8a
Fix null handler construction
...
We should not malloc the null-handler object and cast to OutputHandler;
we need to actually invoke the constructor via placement new.
2017-02-27 23:28:25 -08:00
StilesCrisis
0ec4e86f14
Unit test
...
Add unit test for Issue 848 (segfault in ~Document)
2017-02-27 23:06:05 -08:00
StilesCrisis
26e089b9a2
Merge remote-tracking branch 'miloyip/master'
2017-02-27 21:37:20 -08:00
Milo Yip
97e2f7f16f
Try fixing Error compilation Ubuntu 14.04 #834
2017-02-28 09:48:36 +08:00
Milo Yip
7f753fe76b
Merge pull request #867 from oviradoi/issue858
...
Fix creating the nuget package with Raggles' fork of CoApp
2017-02-26 22:38:23 +08:00
Milo Yip
82295b1f4d
Merge pull request #842 from StilesCrisis/token-by-token-parsing
...
Token-by-token pull parsing
2017-02-26 22:36:04 +08:00
Milo Yip
a677b85706
Merge pull request #866 from ylavic/patch-1
...
Missing "internal" namespace for StrLen
2017-02-26 22:32:40 +08:00
oviradoi
5f92c3926b
Fix creating the nuget package with Raggles' fork of CoApp
2017-02-24 19:50:36 +02:00
ylavic
b977fd3c9d
Missing "internal" namespace for StrLen
...
include/rapidjson/pointer.h:243:40: error: 'StrLen' was not declared in this scope
return Append(name, StrLen(name), allocator);
2017-02-24 16:46:53 +01:00
Milo Yip
0eaa0d288c
Merge pull request #862 from StilesCrisis/nan-inf-parse-fix
...
NaN/Inf parse fix
2017-02-24 09:47:11 +08:00
StilesCrisis
ecf3d64293
Merge branch 'nan-inf-parse-fix' into token-by-token-parsing
2017-02-23 00:19:07 -08:00
StilesCrisis
5e785d3db2
Fix parsing of NaN/Inf
...
A failed half-consume of “NaN” now returns “value invalid” instead of
attempting to consume an “Inf”.
2017-02-23 00:11:12 -08:00
StilesCrisis
c4117c68cc
Put in unit tests to catch parser failure
...
Noticed that the reader could over-consume “NaN” if token terminated in
the middle.
2017-02-22 21:54:31 -08:00
John Stiles
bd4c282d77
Test coverage up
...
Add more tests! Good for coverage.
2017-02-07 01:08:51 -08:00
John Stiles
0f8389e787
Restored original IterativeParse implementation
...
Runs about 1-2% faster (original speed) by running in a tight loop, at
the expense of slight code duplication with IterativeParseNext.
2017-02-07 00:02:08 -08:00
John Stiles
488252eca2
Merge remote-tracking branch 'miloyip/master' into token-by-token-parsing
2017-02-06 21:12:52 -08:00
John Stiles
933eb839d9
Merge remote-tracking branch 'miloyip/master'
2017-02-06 21:11:55 -08:00
Milo Yip
0163a53f4a
Merge pull request #841 from StilesCrisis/improve-unit-test-reporting
...
Improved reporting
2017-02-06 09:15:05 +08:00
StilesCrisis
a11ec69796
More C++98 fixes
2017-02-04 01:18:46 -08:00
StilesCrisis
6288d95d1e
SimplePullReader C++98 support
...
std::to_string can’t be used because it requires C++11.
2017-02-04 01:07:00 -08:00
StilesCrisis
4232e407f4
Clean up example code
2017-02-04 00:47:43 -08:00
StilesCrisis
d84d5fe055
Add example SimplePullHandler code
...
Example code to demonstrate how the token-pulling reader can be used.
2017-02-04 00:41:34 -08:00
StilesCrisis
4394b3bac7
Add LIKELY and UNLIKELY hints
...
Doesn’t seem to affect timings in perftest on my machine, but it may
help others.
2017-02-04 00:05:34 -08:00
StilesCrisis
82a423db7d
Added unit test for pull parsing
...
New unit test which ensures that IterativeParseNext always generates
exactly one element at a time, and that calling IterativeParseNext on a
complete document is harmless and generates zero events.
2017-02-03 21:12:53 -08:00
StilesCrisis
116f65994b
Improve coverage and performance
...
Further improvement to perftest and hoping to make coveralls happy.
2017-02-03 18:58:37 -08:00
StilesCrisis
5de7258478
Improve performance
...
Slight performance improvement over previous submission
2017-02-03 17:14:14 -08:00
StilesCrisis
1a7c5ea517
Fix Dev Studio bool-conversion warning
2017-02-03 00:29:43 -08:00
StilesCrisis
20f5caa8f6
Token-by-token pull parsing
...
Refactored the iterative parser so that users can parse a single JSON
element at a time (invoking the handler one time) and then return
control to the calling code. Call IterativeParseInit to start, and then
call IterativeParseNext to retrieve one JSON element. Use
IterativeParseComplete to check for JSON document completion.
2017-02-02 23:25:29 -08:00
StilesCrisis
6769f3e33e
Improved reporting
...
Add “filename” to the error message when JsonChecker reports an error.
2017-02-02 23:18:07 -08:00
Milo Yip
738864c53c
Remove non-ASCII character
...
Fix #824
2017-01-24 15:08:38 +08:00
Milo Yip
3693e942b7
Fix output character type in writers
2017-01-24 14:54:50 +08:00
Milo Yip
942bb46088
Merge pull request #827 from lichray/fix-signed
...
Treat signed-unsigned conversions as errors.
2017-01-24 14:35:17 +08:00
Milo Yip
265fb6ee88
Fix #831 RAPIDJSON_HAS_CXX11_RANGE_FOR is error defined
2017-01-24 09:28:52 +08:00
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors.
2017-01-18 18:09:18 -06:00
Milo Yip
835f2f4a79
Update Doxyfile.zh-cn.in
...
Change internals from English to Chinese
2016-12-31 14:51:07 +08:00
Milo Yip
e61b66c38a
Merge pull request #816 from SuperSodaSea/master
...
Translate doc/internals.md into Chinese
2016-12-31 14:49:51 +08:00
SuperSodaSea
dba9816009
Translate doc/internals.md Part 2
2016-12-31 11:23:05 +08:00
SuperSodaSea
af4ec9b7e9
Translate doc/internals.md Part 1
2016-12-30 23:12:41 +08:00
Milo Yip
03a7391049
Merge pull request #757 from patcheng/feature/fix_clang_warning
...
added assertion to help suppress clang warnings
2016-12-23 10:00:30 +08:00
Milo Yip
369e07d1c9
Merge pull request #811 from glebov-andrey/improved_new_macro
...
Improved customization of RAPIDJSON_NEW macro
2016-12-23 09:59:31 +08:00
Andrey Glebov
41ceb8624f
- replaced RAPIDJSON_NEW with C++98 compatible version
2016-12-21 14:03:53 +03:00
Andrey Glebov
3f120caeef
- replaced RAPIDJSON_NEW calls in fwdtest.cpp
2016-12-21 10:41:06 +03:00
Andrey Glebov
9fe93bb984
- replaced RAPIDJSON_NEW macro with variadic varient
2016-12-21 10:17:25 +03:00
Milo Yip
014097e51a
Merge pull request #800 from ivankravets/patch-3
...
Update version to 1.1.0
2016-11-28 20:18:54 +08:00
Ivan Kravets
ba34c94533
Update version to 1.1.0
2016-11-28 12:53:24 +02:00
Milo Yip
0024592c23
Update sax.zh-cn.md
2016-11-21 09:50:59 +08:00
Milo Yip
bff326fb24
Update sax.md
2016-11-21 09:37:02 +08:00
Milo Yip
eb6831a4c2
Merge pull request #790 from SuperSodaSea/master
...
修复拼写错误
2016-11-05 14:07:45 +08:00
SuperSodaSea
a077baa9c3
修复拼写错误
2016-11-05 11:55:12 +08:00
Milo Yip
fbcd7acfd3
Merge pull request #788 from miloyip/issue786_CopyFrom
...
Refactor GenericValue deep-clone constructor
2016-10-31 19:49:47 +08:00