Milo Yip
db6a6f3f64
Add Flush() for all value types
...
Fixes #684
2016-07-21 09:33:00 +08:00
Milo Yip
fee5190def
Fix a clang warning
2016-06-13 09:34:47 +08:00
Michael Thon
135da7ab34
Allow options for writing and parsing NaN/Infinity
...
This adds kWriteNanAndInfFlag to Writer to allow writing of nan,
inf and -inf doubles as "NaN", "Infinity" and "-Infinity",
respectively, and kParseNanAndInfFlag to Reader to allow parsing
of "NaN", "Inf", "Infinity", "-Inf" and "-Infinity". This is part
of issue #36 , adding optional support for relaxed JSON syntax.
2016-05-20 23:54:55 +02: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
2bbfe0d8a8
Number() -> RawNumber() to avoid name clashes with the union Number
2016-02-28 18:50:04 +01:00
Sergey Kosarevsky
eeb13bdb4c
Added Writer::Number()
2016-02-28 18:12:57 +01:00
Milo Yip
e733690e69
Merge pull request #543 from miloyip/issue205
...
Add (Pretty)Writer::RawValue()
2016-02-15 13:06:23 +08:00
Milo Yip
9ecf073aff
Merge pull request #536 from miloyip/issue362
...
Add Writer::SetMaxDecimalPlaces()
2016-02-15 13:05:05 +08:00
Milo Yip
6a6d9c7e05
Optimize Writer::WriteString() with SIMD
2016-02-14 17:37:53 +08:00
Milo Yip
e7cb2b1cbf
Add (Pretty)Writer::RawValue()
...
Fix #205
2016-02-14 15:31:24 +08:00
Milo Yip
1d856b2761
Add Writer::SetMaxDecimalPlaces()
2016-02-11 16:08:17 +08:00
Milo Yip
964d89e34b
Add encoding validation option for Writer/PrettyWriter
2016-02-10 11:31:29 +08:00
Milo Yip
935e2ef7ed
Merge pull request #510 from miloyip/issue509_writingnaninf
...
Fix #509 by checking Nan/Inf when writing a double
2016-02-09 18:12:17 +08:00
Milo Yip
8cb978dc15
Add fwd.h and extract stream.h
2016-02-02 18:20:36 +08:00
Milo Yip
122c722993
More LIKELY/UNLIKELY in Writer
2015-12-31 16:17:52 +08:00
Milo Yip
ef6957c177
PutReserve() and PutUnsafe() optimisation for Writer
2015-12-31 15:30:28 +08:00
Milo Yip
74c8dcfd57
Fix clang -Weverything
2015-12-18 18:34:04 +08:00
scheiber
d26d50092d
fixing sign conversion warnings and loss of precision warnings
2015-07-21 15:15:42 -06:00
miloyip
18a8891f0d
Improve coverage for Writer and PrettyWriter
2015-04-13 14:50:08 +08:00
miloyip
3c028685df
Add tests for Writer API for RAPIDJSON_HAS_STDSTRING
2015-04-13 14:25:05 +08:00
miloyip
127ce7175a
Add a missing error handling for Writer, and add tests for invalid encoding.
2015-04-13 14:05:43 +08:00
Milo Yip
d1959ba6e3
Change copyright owner and related changes.
2015-04-03 12:57:16 +08:00
Drew Noakes
1a76879c12
Include <string> if RAPIDJSON_HAS_STDSTRING set.
2015-02-02 09:34:48 +00:00
Drew Noakes
3cfd675163
Add std::string overload to Writer when RAPIDJSON_HAS_STDSTRING defined.
2015-02-02 09:21:28 +00:00
Philipp A. Hartmann
6b69662ce8
Writer: declare constructors as explicit
...
Avoids implicit conversion from an `OutputStream` (or an allocator pointer)
to a `Writer` instance.
2014-11-17 13:27:54 +01:00
Philipp A. Hartmann
c35bbe54d9
Writer: fix documentation of stackAllocator param ( closes #196 )
2014-11-17 13:26:49 +01:00
Philipp A. Hartmann
549dcb755d
*.h: move to namespace macros
2014-11-06 20:52:49 +01:00
Kosta
e70494bc00
fix for Reader::ParseString()
implementation plus some minor code cleanups and additions
2014-09-04 17:29:52 +02:00
Kosta
17b1a14d62
add Key()
method to Writer
and PrettyWriter
2014-09-04 15:20:05 +02:00
Milo Yip
c0a7922db0
Merge pull request #105 from miloyip/MemoryOptimization
...
Memory optimization
2014-08-19 00:07:49 +08:00
Milo Yip
e3aa8f427c
Remove unused macro
2014-08-17 20:55:49 +08:00
Milo Yip
2e23787753
Change Reader/Writer's stack allocator to CrtAllocator
2014-08-17 18:31:41 +08:00
Philipp A. Hartmann
8d53689432
(Pretty)Writer: drop restriction to object/array roots
2014-08-11 17:14:31 +02:00
Milo Yip
0dbcc1cf2e
Add license and change indents from tab to space.
2014-08-11 22:26:45 +08:00
Milo Yip
1900b7bace
Remove double precision settings API in Writer
2014-08-09 21:37:02 +08:00
Milo Yip
a7762a3453
Custom dtoa() impleemntation
...
Modified from Milo's Grisu2 implementation. 99.9% cases return shortest
decimal format.
2014-08-09 21:12:58 +08:00
Milo Yip
6f1646138a
Fixes stack overflow
2014-07-25 00:59:19 +08:00
Milo Yip
86b2f51a58
Use branchlut implementation for itoa conversion.
2014-07-25 00:08:24 +08:00
miloyip
9974e35578
Merge conflicts and suppress VC warnings
2014-07-15 09:20:19 +08:00
Milo Yip
b5436f7104
Add ASCII encoding which can fulfill #69
2014-07-13 23:51:56 +08:00
Milo Yip
27101d9cd1
Add API doc for Writer::Reset() and Writer::IsComplete()
2014-07-13 13:27:15 +08:00
Milo Yip
5babae98e5
Add Writer::IsComplete()
2014-07-13 13:21:25 +08:00
Milo Yip
b234007713
Fixes #66 by adding Writer::Reset() and multiple root check
...
Note it redefines RAPIDJSON_ASSERT() to throw exception in unittest and
check for assertion with gtest.
2014-07-13 13:16:03 +08:00
Milo Yip
b55fcbd36a
Merge pull request #61 from miloyip/issue59terminate
...
Fixes #59 by adding bool return value for each event handler function
2014-07-12 23:42:50 +08:00
Philipp A. Hartmann
ca36a2e66e
writer.h: use warning macros for MSVC
2014-07-10 19:49:52 +02:00
Philipp A. Hartmann
bde95eca04
Writer::WriteUint: add cast to hide warning C4244 on MSVC
2014-07-10 19:38:23 +02:00
Milo Yip
cc04219e36
Fixes #59 by adding bool return value for each event handler function
2014-07-10 19:33:01 +08:00
Philipp A. Hartmann
ec8f26e6e5
(Pretty)Writer: improve doxygen documentation
2014-07-06 15:35:43 +02:00