Milo Yip
d35c783ec6
Fix schema documentation
2016-04-15 09:06:50 +08:00
Milo Yip
75d0e4ff65
Use single Peek() in SkipWhitespace
...
Fix #594
2016-04-07 00:47:26 +08:00
Milo Yip
47e21a054c
Temp revert cmake for OS X
2016-04-07 00:46:39 +08:00
Milo Yip
795946b1ca
Merge pull request #595 from miloyip/vcwarning
...
Fix VC warnings
2016-04-07 00:44:58 +08:00
Milo Yip
12425693ba
Revert formatting of enum
2016-04-06 23:33:26 +08:00
Milo Yip
49c29d057d
Fix VC warning C4189
2016-04-06 01:16:00 +08:00
Milo Yip
44d114f3ee
Supress VC C4512 warning
2016-04-06 00:47:16 +08:00
Milo Yip
be5a886f8f
Fix clang compilation error
2016-04-06 00:34:45 +08:00
Milo Yip
689be10891
Fix a compilation error
2016-04-06 00:11:49 +08:00
Milo Yip
35ccca8b74
Try to fix VC warning C4512
2016-04-05 23:56:50 +08:00
Milo Yip
8991037ecd
Revert using of static const back to enum due to gcc error
2016-04-05 23:26:08 +08:00
Milo Yip
c843a2655b
Try to fix all /W4 warnings in VC2015
2016-04-04 15:01:34 +08:00
Milo Yip
2418d7cd91
Fix cmake
2016-03-31 15:02:03 +08:00
Milo Yip
d7df1f26ba
Add /W4 and /WX for VC
2016-03-31 14:20:24 +08:00
Milo Yip
89afda0694
Add CMAKE verbose for appveyor
2016-03-31 10:25:55 +08:00
Milo Yip
62a9a6b0d8
Merge pull request #589 from jnicholls/rawnumber
...
RawNumber Improvements / Clang Test Fix / Whitespace Cleanup
2016-03-31 10:18:26 +08:00
Jarred Nicholls
926d7ffcc8
Later clang compilers will warn on float -> double promotion because it can add precision. In the context of RapidJSON – especially with its float methods on GenericValue – I think this warning holds no water and should be ignored.
...
Trim whitespace off the end of various lines.
Added an additional NumberStream specialization that will always perform a TakePush() even when just Take() is called. This supports RawNumber parsing by pushing onto our StackStream particular parts of the number that currently aren't captured because of full precision double parsing, such as the negative sign, scientific number exponents, etc.
RawNumber parsing fails with input streams that don't have copy optimization, such as the BasicIStreamWrapper stream. To work around this, instead do the Transcode copy operation by reading from a UTF8 StringStream instead of the original InputStream. Since the NumberStream downcasts all input Ch into chars, we know we're dealing with UTF8/ASCII compatible stack characters during the Transcoding.
2016-03-29 15:44:30 -04:00
Milo Yip
4fdcb10c3e
Fix #587
2016-03-26 22:47:07 +08:00
Milo Yip
ec32200507
Merge pull request #584 from ludocode/trailing-commas
...
Added optional support for trailing commas
2016-03-21 09:33:59 +08:00
Nicholas Fraser
68217548f3
Added trailing comma support to iterative parser
...
This also fixes cases where the iterative parser should have produced
kParseErrorValueInvalid rather than kParseErrorUnspecifiedSyntaxError
when expecting a value (after a colon in an object, after a comma in an
array, and at the start of an array.)
2016-03-20 12:52:48 -04:00
Nicholas Fraser
7c0e9d941d
Added additional tests for trailing commas
2016-03-20 11:39:00 -04:00
Nicholas Fraser
3e21bb429d
Added optional support for trailing commas
...
This adds kParseTrailingCommasFlag to allow a trailing comma at the
end of maps and arrays. This is part of issue #36 , adding optional
support for relaxed JSON syntax.
2016-03-20 01:10:33 -04:00
Milo Yip
ca07fe2fef
Merge pull request #582 from ktrushin/explicit_type_conversion
...
do potentially precision-losing conversions explicitly
2016-03-14 01:25:58 +08:00
Konstantin Trushin
305882489c
do potentially precision-losing conversions explicitly
2016-03-13 14:07:39 +03:00
Milo Yip
d454d21409
Merge pull request #577 from comand/prettywriter-options
...
Add PrettyWriter format option for writing array in single line.
2016-03-09 09:31:36 +08:00
Cory Omand
7a79e91ecd
PrettyWriter formatting options.
...
This change adds PrettyWriter::SetFormatOptions with a corresponding
bitfield enum PrettyFormatOptions. This allows options affecting the
format of the PrettyWriter to be set. The first option to be provided
is kFormatSingleLineArray, which instructs the PrettyWriter to write
arrays on a single line, rather than breaking them up onto a line
per element.
2016-03-08 15:33:04 -08:00
Milo Yip
1623ef2a96
Update simplewriter example with Writer::Key()
2016-03-08 14:35:10 +08:00
Milo Yip
a045314f02
Merge pull request #576 from ChrisLundquist/patch-1
...
[simplewriter.cpp] show generated output
2016-03-08 14:29:34 +08:00
Milo Yip
7886965e34
Fix a bug in dtoa
...
This previously affects Writer:: SetMaxDecimalPlaces()
2016-03-08 10:03:31 +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
824120b8d8
Merge pull request #575 from corporateshark/master
...
Removed commented code and added an explanatory comment instead
2016-03-05 23:23:20 +08:00
Sergey Kosarevsky
6e70e3521a
Removed commented code and added an explanatory comment instead
2016-03-05 13:47:32 +01:00
Milo Yip
01b2d463f7
Fix #573
2016-03-05 10:34:00 +08:00
Milo Yip
91fabf0461
Merge pull request #574 from miloyip/travis
...
Fix clang example compilation
2016-03-05 10:22:41 +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
031a0b6660
Merge branch 'master' into travis
2016-03-04 14:04:49 +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
Milo Yip
d9cf99baf6
Normalize all line endings
2016-03-04 09:44:01 +08:00
Milo Yip
6d0f0b2a84
Merge pull request #564 from corporateshark/stringnumbers
...
Implemented feature as in #560 (ints/doubles as strings)
2016-03-03 09:34:53 +08:00
Milo Yip
29c95808ac
Inlucde SIMD headers for writer.h
2016-03-02 17:58:16 +08:00
Sergey Kosarevsky
b5966c3290
Added missing static_cast
2016-03-02 03:07:53 +01:00
Sergey Kosarevsky
ae785ffb52
Don't use nullptr
2016-03-02 02:21:38 +01:00
Sergey Kosarevsky
57eae5595e
Added new unit test for kParseNumbersAsStringsFlag
2016-03-02 02:08:59 +01:00
Sergey Kosarevsky
bea3790a74
Don't insert terminating zero
2016-03-02 02:08:58 +01:00
Milo Yip
680c111278
Add debian docker file for development
2016-03-02 01:45:05 +08:00
Milo Yip
364545fe57
Prevent gcc wrong warning
2016-03-02 01:39:33 +08:00
Milo Yip
928caf92ed
Fix gcc strict-overflow warning
...
Fix #566 #568
2016-03-02 01:01:17 +08:00