537 Commits

Author SHA1 Message Date
Philipp A. Hartmann
c2b5864927 add documentation for 'swap' friend functions 2015-07-13 14:38:24 +02:00
Philipp A. Hartmann
46e1696316 add free inline swap functions 2015-07-13 09:35:15 +02:00
Philipp A. Hartmann
0ebe16e169 add and use simplified "internal::Swap"
This avoids the dependency on the <algorithm> header, as suggested by
@miloyip in #376.
2015-07-10 17:06:52 +02:00
yuzhaol
7567752710 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:42:24 +01:00
yuzhaol
8e61b72678 Declare intrinsic function to avoid LNK2019 in x64 debug mode
Add #pragma intrinsic(_umul128) for MSVS 2005
2015-07-09 22:39:38 +01:00
Philipp A. Hartmann
dd901f498b add GenericDocument<>::Swap
See #368.
2015-07-04 01:57:24 +02:00
Mateusz Łoskot
8197805208 Add explicit specifier to GenericDocument ctor.
@pah recommended to mark this constructor as explicit to avoid accidentally creating a temporary GenericDocument from a Type enum value (because all arguments but the first one are optional).
2015-07-01 22:36:26 +02:00
Mateusz Loskot
a0177ca210 Add documentation for new GenericDocument ctor taking object type.
Update also documentation of the existing GenericDocument constructor.
2015-06-30 10:28:07 +02:00
Mateusz Loskot
413144a8b2 Add GenericDocument ctor overload to specify JSON type.
It unifies the interfaces with Value where kXXXType can be passed
into constructor.
It enables shortcut that helps to avoid extra SetXXX() call following
construction of a document.
2015-06-26 16:00:49 +02:00
Milo Yip
a326314a61 Fix #538 2015-06-18 15:40:39 +08:00
Milo Yip
81678272a2 Fix #349 emscripten alignment issue 2015-06-04 16:07:43 +08:00
miloyip
ce0184e73b Add and fix -Wimplicit-fallthrough for clang, revert #350 2015-06-03 23:53:14 +08:00
Kal Conley
013b71b92f Fix warnings when compiling with clang and -Wimplicit-fallthrough 2015-05-31 20:35:55 +02:00
miloyip
a2d09f0a03 Refactor GenericPointer::Erase() 2015-05-21 16:13:02 +08:00
miloyip
6e1d10ec6b Add GenericValue::EraseMember(string types) APIs 2015-05-21 16:12:33 +08:00
miloyip
1a570c342d Fix the undefined behaviour when negating the minimum value integers in Reader 2015-05-21 16:00:32 +08:00
Milo Yip
0e9fe888b7 v1.0.2 release 2015-05-14 15:49:26 +08:00
Milo Yip
424abf1edc Merge pull request #335 from miloyip/member_stdstring
Add Value::XXXMember(...) overloads for std::string
2015-05-14 14:56:35 +08:00
Milo Yip
add5a50581 Fix some numbers parsed incorrectly
Fix #340
2015-05-14 12:03:21 +08:00
miloyip
2786103abd Add Value::XXXMember(...) overloads for std::string 2015-05-12 22:48:14 +08:00
miloyip
7eb117a26e Reduce Pointer parsing/copying to single allocation 2015-05-11 21:41:26 +08:00
miloyip
98b66e3c5a Change Document::ParseStream() to use stack allocator for Reader 2015-05-11 13:58:02 +08:00
miloyip
3dc40a8f34 Fix MemoryPoolAllocator::Clear() to clear user-buffer 2015-05-11 13:57:50 +08:00
miloyip
63a1db0907 Fix a bug in Pointer 2015-05-09 08:38:27 +08:00
miloyip
771fa9879a Add Pointer::Append(Value, Allocator) overload 2015-05-08 22:18:46 +08:00
Milo Yip
5dee394004 Add Pointer::Append() and fixed bugs in assignment and Parse() 2015-05-08 21:26:56 +08:00
Milo Yip
f4e357f65d Merge pull request #329 from nightmouse/master
Warning cleanup
2015-05-06 11:42:46 +08:00
Justin Scheiber
050be06e52 fixing conversion warnings 2015-05-05 14:37:18 -06:00
Justin Scheiber
97d489c247 fix shadow warnings on gcc 4.8 (-Wshadow) 2015-05-05 14:02:10 -06:00
Igor Kostenko
1576cde592 Fix alignment of 64bit platforms 2015-05-05 17:39:16 +01:00
Milo Yip
8c01e7e1ce Add Pointer::Erase() and EraseValueByPointer() 2015-05-04 21:50:26 +08:00
miloyip
436625f83c Fix ambiguous cases in Pointer::Create() 2015-05-04 15:02:43 +08:00
miloyip
b6a54f7244 Add API doc for GenericPointer, rename some (template) parameters 2015-05-04 13:32:44 +08:00
miloyip
b0c6a9d7f9 Merge remote-tracking branch 'origin/master' into json-pointer 2015-05-04 10:29:25 +08:00
miloyip
56568fd73f Add GenericValue::ValueType and fix warning for SetString(std::string, Allocator) 2015-05-04 10:25:31 +08:00
miloyip
e7bcedb4f4 Simplify code 2015-05-04 10:21:30 +08:00
miloyip
1135ef6622 Fix VC2013 false alarm warning 2015-05-04 10:08:23 +08:00
miloyip
fc7b0a04a1 Add const Value& version of SetValueByPointer() and improve coverage 2015-05-04 10:06:31 +08:00
miloyip
45bed001ee Remove unusable StringRef overloads 2015-05-03 23:44:58 +08:00
miloyip
524974deec Add Validation of UTF-8 sequence for percent encoding, also improves coverage 2015-05-03 21:58:55 +08:00
miloyip
86d298cd46 Merge branch 'master' into json-pointer 2015-05-03 21:24:51 +08:00
miloyip
1c98609ada Standardize MemoryPoolAllocator::Realloc() also, and improve coverage 2015-05-03 21:23:13 +08:00
miloyip
6fdfc90bb2 Merge branch 'master' into json-pointer 2015-05-03 21:07:33 +08:00
miloyip
ae61b7973c Standardize CrtAllocator::Realloc() for newSize = 0 2015-05-03 21:02:34 +08:00
miloyip
7fc716006f Merge branch 'master' into json-pointer
Conflicts:
	test/unittest/CMakeLists.txt
2015-05-03 20:27:21 +08:00
miloyip
6582160a12 Fix out-of-bound access in percent decode 2015-05-03 19:14:58 +08:00
miloyip
bb0e828928 Some std::string overloads for Pointer 2015-05-03 18:55:55 +08:00
miloyip
0eb6cb8e5f Add equality/inequality operator, URI fragment stringify and UTF-8 Percent Encoding/Decoding 2015-05-03 14:14:05 +08:00
miloyip
28f14bd68f Add parsing of URI fragment representation of JSON pointer 2015-05-03 09:51:15 +08:00
miloyip
2ee15de4a9 Add no allocator overloads for Swap 2015-05-02 22:58:41 +08:00