Milo Yip
fdd443120f
Move break into same line to make coverage happy
2016-04-16 22:09:23 +08:00
Milo Yip
75d0e4ff65
Use single Peek() in SkipWhitespace
...
Fix #594
2016-04-07 00:47:26 +08:00
Milo Yip
12425693ba
Revert formatting of enum
2016-04-06 23:33:26 +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
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
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