857 Commits

Author SHA1 Message Date
Milo Yip
4fdcb10c3e Fix #587 2016-03-26 22:47:07 +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
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
Konstantin Trushin
305882489c do potentially precision-losing conversions explicitly 2016-03-13 14:07:39 +03: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
7886965e34 Fix a bug in dtoa
This previously affects Writer:: SetMaxDecimalPlaces()
2016-03-08 10:03:31 +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
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
bea3790a74 Don't insert terminating zero 2016-03-02 02:08:58 +01: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
Milo Yip
6c927047c4 Fix RAPIDJSON_(UN)LIKELY for VC 2016-03-01 10:16:40 +08:00
Sergey Kosarevsky
22d22145d2 Added GenericSchemaValidator::RawNumber() 2016-02-29 18:05:24 +01:00
Sergey Kosarevsky
3dba370486 Added IterativeParsingReaderHandler::RawNumber() 2016-02-29 17:51:32 +01:00
Sergey Kosarevsky
43a2c5694e Play nice with different encodings 2016-02-29 17:42:48 +01:00
Sergey Kosarevsky
9b13eacdf1 Add 0-character during in-situ numbers-as-strings parsing 2016-02-29 17:40:43 +01:00
Sergey Kosarevsky
f83b2c09e8 Fixed warning unused parameter ‘c’ 2016-02-29 16:31:54 +01:00
Sergey Kosarevsky
e23bc0d1a5 Fixed numbers-as-strings for in-situ streams 2016-02-29 16:12:30 +01:00
Sergey Kosarevsky
7d4891e243 Added NumberStream::Push() 2016-02-29 16:11:31 +01:00
Sergey Kosarevsky
a214bdff4d Removed unnecessary kParseInsituFlag check in ParseNumber() 2016-02-29 10:54:55 +01:00
Sergey Kosarevsky
6143f97b45 BaseReaderHandler::RawNumber() calls String() by default 2016-02-29 10:52:36 +01:00
Sergey Kosarevsky
f76174422d Fixed Ch type 2016-02-28 21:29:16 +01:00
Sergey Kosarevsky
fb5c464221 Added PrettyWriter::RawNumber() 2016-02-28 21:29:06 +01:00
Sergey Kosarevsky
2bbfe0d8a8 Number() -> RawNumber() to avoid name clashes with the union Number 2016-02-28 18:50:04 +01:00
Sergey Kosarevsky
4f94ec9b0b Added GenericDocument::Number() 2016-02-28 18:38:06 +01:00
Sergey Kosarevsky
334461b421 Added Hasher::Number() 2016-02-28 18:28:19 +01:00
Sergey Kosarevsky
eeb13bdb4c Added Writer::Number() 2016-02-28 18:12:57 +01:00
Sergey Kosarevsky
d2d5f6f919 ParseNumber() handles kParseNumbersAsStringsFlag 2016-02-28 17:58:34 +01:00
Sergey Kosarevsky
4abcfd1e28 Added Number() to rapidjson::Handler 2016-02-28 17:58:01 +01:00
Sergey Kosarevsky
ba2b751b4d Added kParseNumbersAsStringsFlag 2016-02-28 17:33:49 +01:00
Sergey Kosarevsky
852ed80881 Custom Microsoft headers are necessary only for Visual Studio 2012 and lower 2016-02-26 12:03:22 +01:00
Kevin Atkinson
2f1e59324f Documentation fix.
GenericObject is a helper class for accessing Value of _object_ type.
2016-02-22 00:53:58 -05:00
Milo Yip
494f9deb9b Merge pull request #555 from miloyip/appveyor_vs2015
Add VS2010 and VS2015 to AppVeyor CI
2016-02-21 17:16:28 +08:00
Milo Yip
4620fa60f5 Fix VS2010 compilation errors 2016-02-21 12:52:14 +08:00
Milo Yip
db4bc75cd9 Add move constructor for GenericSchemaDocument 2016-02-20 22:18:23 +08:00
Milo Yip
3595b1f677 Fix VC compilation error 2016-02-20 16:33:29 +08:00
Milo Yip
5fc59cb6fa Merge branch 'master' into issue158_parsestdstring 2016-02-20 00:35:52 +08:00
Milo Yip
b8c83c53b1 Resolve conflicts 2016-02-19 23:40:48 +08:00
Milo Yip
f8e417818f Merge branch 'master' into optimization 2016-02-19 22:29:40 +08:00
Milo Yip
4029ddb165 Merge pull request #542 from miloyip/issue316_templatedaccessors
Templated accessors and range-based for
2016-02-19 22:28:48 +08:00
Milo Yip
9f6736c2cc Add noexcept to the constructors 2016-02-19 01:07:16 +08:00
Milo Yip
46dc8e9240 Add implicit constructors of GenericValue for GenercArray|Object
Also remove SetArray|Object(…)
2016-02-19 00:49:05 +08:00
Milo Yip
d13be6c721 Change pointer to reference in GenericArray|Object 2016-02-18 19:04:22 +08:00