107 Commits

Author SHA1 Message Date
luz.paz
915218878a Misc. typos
Found via `codespell -q 3` in  downstream https://github.com/BlueBrain/Brayns
2018-02-19 06:42:52 -05:00
Milo Yip
49562271be Fix Windows build 2018-02-13 15:08:20 +08:00
Milo Yip
82b5c42567 Fix Compile error because of -Werror=effc++ is on
Fix #1170
Also fixed C++03 problem for using nullptr.
2018-02-12 13:14:59 +08:00
Milo Yip
daabb88e00
Merge pull request #1068 from yurikhan/violationDetails
Schema violation details
2018-01-26 11:26:27 +08:00
Milo Yip
fc7cda78a9 Fix -Werror=effc++
#1164
2018-01-16 10:35:25 +08:00
Milo Yip
b1e556d713
Merge branch 'master' into violationDetails 2018-01-13 22:34:58 +08:00
Milo Yip
f2a28ee472 Add archiver example
A simple (de)serialization framework using DOM and SAX API
2017-12-13 21:53:18 +08:00
Yuri Khan
a4b62ff61b Update schemavalidator example to demonstrate GetError() 2017-09-24 12:56:55 +07:00
Milo Yip
b61bbbfe37 Fix #947 -Weffc++ warning 2017-05-11 16:41:26 +08:00
John Stiles
f0c108b5c9 Remove all switch 2017-03-13 07:53:37 -07:00
John Stiles
6723e3296a Initialize v_ to placate GCC
v_ has a value assigned to it as part of ParseNext() which happens in
the constructor, but that’s not soon enough for GCC
2017-03-13 07:43:26 -07:00
John Stiles
bf19c1a0be Remove switch
GCC and Clang cannot agree on what constitutes a good switch statement.
2017-03-13 07:40:51 -07:00
John Stiles
e7fd707698 Improve LookaheadParser
Fix clang -Wswitch-enum warnings.
Made NextArrayValue() more robust—now handles error state correctly,
will enter error state if an unexpected state is reached.
Made separate states for each value type to simplify getters.
Simplified implementation of skipping arrays and objects.
Skipping an object now works whether you’ve retrieved the key or not.
2017-03-13 00:33:10 -07:00
John Stiles
260e2f372e Merge remote-tracking branch 'refs/remotes/origin/lookaheadparser' 2017-03-08 15:18:53 -08:00
StilesCrisis
8da89f54bd Fix GCC warning 2017-03-08 01:16:19 -08:00
StilesCrisis
d4669bbc8e Add lookahead parser example 2017-03-08 01:08:41 -08:00
Ted Lyngmo
ef22ca1732 Fix -Werror=effc++ errors with GNU 6.3.1
Fix "'MyHandler::type’ should be initialized in the member
initialization list [-Werror=effc++]" errors.

https://github.com/miloyip/rapidjson/issues/874
2017-03-08 09:47:38 +01:00
Ted Lyngmo
c64f378f16 Fix -Werror=effc++ errors with GNU 6.3.1
Fix "'MyHandler::type’ should be initialized in the member
initialization list [-Werror=effc++]" errors.

https://github.com/miloyip/rapidjson/issues/874
2017-03-08 06:25:41 +01: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
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors. 2017-01-18 18:09:18 -06:00
Milo Yip
0f9dbe0a9c Defer thread creation in parsebypart example 2016-08-29 10:17:57 +08:00
Milo Yip
2e66339137 Disable parsebyparts example for clang 2016-06-13 09:54:02 +08:00
Milo Yip
00ed0a5f91 Fix gcc warning 2016-04-23 20:54:06 +08:00
Milo Yip
b010f388d1 Change FilterKeyHandler from struct to class
Also disable copy constructor/assignment operator
2016-04-23 20:11:05 +08:00
Milo Yip
05b2ed7532 Add filterkey and filterkeydom examples 2016-04-23 16:02:40 +08:00
Milo Yip
aae2fbfc99 Try to fix cmake CMP0054 warning 2016-04-21 23:12:31 +08:00
Milo Yip
c843a2655b Try to fix all /W4 warnings in VC2015 2016-04-04 15:01:34 +08:00
Milo Yip
1623ef2a96 Update simplewriter example with Writer::Key() 2016-03-08 14:35:10 +08:00
Chris Lundquist
d175915c55 [simplewriter.cpp] show generated output
This makes it painfully obvious that writer expects subsequent key/value pairs.
2016-03-05 18:14:20 -08:00
Milo Yip
facb432f91 Try another fix 2016-03-04 16:37:04 +08:00
Milo Yip
d60abc914c Fix example clang link flags 2016-03-04 14:09:56 +08:00
Milo Yip
a62777487d Normalize line endings but not JSON files 2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b Revert "Normalize all the line endings"
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12 Normalize all the line endings 2016-03-04 09:46:11 +08:00
Sergey Kosarevsky
5642a81f24 Added JsonxWriter::RawNumber() 2016-02-29 20:21:28 +01:00
Sergey Kosarevsky
a9c79db580 Added CapitalizeFilter::RawNumber() 2016-02-29 18:48:15 +01:00
Sergey Kosarevsky
9748595960 Added MyHandler::RawNumber() 2016-02-29 18:25:14 +01:00
octal
d53d71b874 example: parsebyparts now compiles with g++-4.9 2016-02-27 19:59:29 +01:00
Milo Yip
c62a19cfbd Remove CMakeLists license info 2016-02-28 01:22:15 +08:00
Milo Yip
5f13820899 Another try 2016-02-27 23:41:38 +08:00
Milo Yip
52512b7c12 Try to set libc++ in cmake 2016-02-27 22:56:23 +08:00
Milo Yip
f1387ef879 Rollback stdlib flag 2016-02-22 10:02:01 +08:00
Milo Yip
dbe8d115b1 Rename variable in parsebyparts 2016-02-22 09:34:23 +08:00
Milo Yip
24d0ebd8fb Fix compilation problem of parsebyparts 2016-02-22 09:33:41 +08:00
Milo Yip
70cad1901a Add parse-by-parts example
Fix #527
2016-02-21 17:23:23 +08:00
Milo Yip
5af344b9d9 Add comment for -D__STDC_FORMAT_MACROS 2016-02-09 01:27:22 +08:00
Milo Yip
b5d939b71b Fix a gcc warning 2016-02-09 01:09:43 +08:00