710 Commits

Author SHA1 Message Date
Philipp A. Hartmann
760883c2e8 stringbuffer.h: add missing include for std::move (fixes #208) 2014-12-08 15:41:58 +01:00
Milo Yip
320eff1c21 Fix #207 VC2013 imaxdiv_t redefinition 2014-12-08 21:53:29 +08:00
Milo Yip
9f991fd205 Answer first 3 sections of FAQ 2014-11-30 21:42:12 +08:00
Milo Yip
1c02fceccc Update doc about reading/writing any JSON value at root. 2014-11-30 20:29:37 +08:00
Milo Yip
77e49891f1 Update doc about kDefaultParseFlag 2014-11-30 20:27:17 +08:00
Milo Yip
454146b270 Merge pull request #137 from miloyip/issue120floatprecision
Parse JSON number to double in full-precision with custom strtod. Fix #120
2014-11-30 19:44:30 +08:00
Milo Yip
e62d53751b Merge remote-tracking branch 'origin/master' into issue120floatprecision 2014-11-30 19:16:28 +08:00
Milo Yip
a6117dae16 Fix StringBuffer compilation error in VS2013
Add move constructor and prohibit copy constructor and assignment
operator.
2014-11-30 19:11:40 +08:00
Milo Yip
92554b52a2 Merge remote-tracking branch 'origin/master' into issue120floatprecision 2014-11-30 18:53:32 +08:00
Milo Yip
23b7a5ecae Add RAPIDJSON_PARSE_DEFAULT_FLAGS for customizing kParseDefaultFlags
https://github.com/miloyip/rapidjson/issues/120#issuecomment-54428797
2014-11-30 18:52:48 +08:00
Milo Yip
7eee4303c7 Merge pull request #206 from pah/enhance/optimize-value-copy
GenericValue: improve copying performance
2014-11-28 11:24:12 +08:00
Philipp A. Hartmann
2aab79207e GenericValue: improve copying performance
The GenericValue "copy" constructor (with Allocator) uses a temporary
GenericDocument object to perform the deep copying with the provided
allocator.  This leads to the temporary allocation of the `Stack`
memory, even in case of shallow values (numbers, etc.).

This patch improves the performance of this operation by only resorting
the the SAX Handler implementation in case of Array or Object values.
2014-11-26 23:11:00 +01:00
Milo Yip
28e55ee24d Merge pull request #204 from antonindrawan/master
Compile all examples with the Dinkum C++ of QNX 6.6
2014-11-25 10:10:48 +08:00
Anton Indrawan
5a96c1f93e Compile all examples with the Dinkum C++ of QNX 6.6
QCC -Wall -Wextra -Vgcc_ntoarmv7le -I../include <example>
2014-11-23 21:03:57 +01:00
Milo Yip
26491cff1e Fix additional compilation errors in unit tests for VC 2014-11-23 19:03:06 +08:00
Milo Yip
0a17e1a634 Fix namespace compilation errors 2014-11-23 18:59:35 +08:00
Milo Yip
b855c3f73a Minor optimization of strtod 2014-11-23 16:45:07 +08:00
Milo Yip
3679c280dd Merge remote-tracking branch 'origin/master' into issue120floatprecision_customstrtod 2014-11-23 08:48:03 +08:00
Milo Yip
c8bed6b8cc Fix compilation errors in unit tests for VC 2014-11-23 08:38:48 +08:00
Milo Yip
52bf43df08 Merge pull request #202 from pah/cleanup/document-non-copyable
GenericDocument: explicitly prohibit copying
2014-11-22 15:39:49 +08:00
Philipp A. Hartmann
3220438aa5 GenericDocument: explicitly prohibit copying
See #201.
2014-11-21 13:05:54 +01:00
Milo Yip
39f5eeb764 Merge pull request #198 from pah/cleanup/misc
Minor (documentation) cleanups
2014-11-17 23:02:47 +08:00
Philipp A. Hartmann
c88cc331d5 DiyFp: avoid shadowing (closes #195) 2014-11-17 13:31:24 +01: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
Milo Yip
8acaaa757c Merge pull request #178 from spacewander/patch-2
Use absolute path for the link to examples
2014-11-17 09:53:49 +08:00
Milo Yip
57b91300fb Merge remote-tracking branch 'origin/master' into issue120floatprecision_customstrtod
Conflicts:
	include/rapidjson/internal/dtoa.h
	test/unittest/readertest.cpp
2014-11-14 22:23:16 +08:00
Milo Yip
22ca9312df Fix gcc/clang compilation errors and turn off exhaustive number test 2014-11-14 18:36:25 +08:00
Milo Yip
40852f4d6d Fixes StrtodDiyFp bugs 2014-11-14 18:23:51 +08:00
Milo Yip
8d4405cf63 Merge pull request #193 from pah/feature/custom-namespace
Allow customization of RapidJSON namespace
2014-11-07 11:37:49 +08:00
Philipp A. Hartmann
a0f9de61a9 namespacetest: add symbol check to .travis.yml 2014-11-06 21:11:58 +01:00
Philipp A. Hartmann
7dc9b18f54 namespacetest.cpp: add test for separate namespace 2014-11-06 20:54:46 +01:00
Philipp A. Hartmann
549dcb755d *.h: move to namespace macros 2014-11-06 20:52:49 +01:00
Philipp A. Hartmann
55757ff420 Doxyfile: expand RapidJSON namespace macros 2014-11-06 20:52:49 +01:00
Philipp A. Hartmann
5d9125f51c add RAPIDJSON_NAMESPACE + _BEGIN, _END 2014-11-06 20:52:49 +01:00
Milo Yip
8307f0f4c9 Merge pull request #189 from drewnoakes/feature/static_assert
Document traits of types using <type_traits> and static_assert in tests
2014-10-31 19:47:27 +08:00
Drew Noakes
6aa664eeef Document traits of types using <type_traits> and static_assert in tests.
The tests state the current traits of types Document, Value and
StringBuffer. There are slight differences between them. It seems like a
good idea to extend this approach across more types, and to review the
expected traits across the board.
2014-10-31 11:00:57 +00:00
miloyip
b4e2d58c74 Temp commit 2014-10-31 10:25:04 +08:00
Milo Yip
d6c1c57159 Merge pull request #188 from pah/feature/lazy-alloc-allocators
MemoryPoolAllocator, Stack: lazily allocate Allocators
2014-10-31 09:34:27 +08:00
Milo Yip
96f979a0c4 Merge pull request #187 from pah/fixes/sign-compare
DocumentMove tests: compiler error due to -Wsign-compare
2014-10-31 09:33:32 +08:00
Milo Yip
1d3070fbc2 Merge pull request #184 from drewnoakes/master
Add unit tests for StringBuffer
2014-10-31 09:32:56 +08:00
Philipp A. Hartmann
1a31767dcf DocumentMove tests: compiler error due to -Wsign-compare
On GCC 4.9, the documenttest.cpp fails to compile in C++11 mode,
as the MoveConstructor/Assignment tests contain left-over
comparisons between signed and unsigned expressions.
2014-10-30 19:23:57 +01:00
Philipp A. Hartmann
e8f5d9f8ef MemoryPoolAllocator, Stack: lazily allocate Allocators
In order to make the constructors more efficient, especially
in the context of C++11 move semantics, the (dynamic) allocations
in MemoryPoolAllocator and Stack should be performed lazily.

Move the allocations to the first use of the allocator in both
classes.
2014-10-30 18:40:58 +01:00
Philipp A. Hartmann
d0c283254b Stack<>: add _ suffix to member ownAllocator_
For consistency, all member variables should follow the same pattern.
2014-10-30 18:21:27 +01:00
Drew Noakes
0bfd0a5205 Add unit tests for StringBuffer. 2014-10-30 17:08:45 +00:00
Milo Yip
4fa43bd465 Merge pull request #183 from pah/feature/wrapped-new-delete
Add customization macros for global new/delete
2014-10-30 22:02:29 +08:00
Philipp A. Hartmann
c557b230a6 Add customization macros for global new/delete
As mentioned in #181, some environments may require adaptations to
the internal calls to the global `new`/`delete` operators, like
adding explicit `NULL` checks to `delete.

This patch adds two new macros
 * RAPIDJSON_NEW(x)
 * RAPIDJSON_DELETE(x)
to allow user-defined expressions in these cases.

This fixes #181 in an alternative manner.
2014-10-30 11:20:46 +01:00
Milo Yip
dea1cdca62 Merge pull request #180 from pah/cleanup/doxygen-thirdparty
Drop thirdparty libraries and minor cleanups
2014-10-29 14:59:35 +08:00
Philipp A. Hartmann
aadcdb0252 performance.md: reference new benchmark suite 2014-10-28 19:36:15 +01:00
Philipp A. Hartmann
20bab938b7 Drop thirdparty JSON implementations/performance tests
With the implementation of the more elaborate benchmarking
suite at https://github.com/miloyip/nativejson-benchmark,
the thirdparty performance tests are superseded.
2014-10-28 19:35:36 +01:00