miloyip
8b265fe4b6
Fixes #489
2015-12-06 11:38:53 +08:00
Milo Yip
28f2ed00d9
Merge pull request #484 from miloyip/Issue483_PointerValue
...
Fix #483 by using the correct value type
2015-11-30 17:37:58 +08:00
Milo Yip
db0a03a43c
Fix #483 by using the correct value type
2015-11-30 17:22:06 +08:00
Philipp A. Hartmann
9378001e35
documenttest.cpp: check/use conversion from Document to ParseResult
2015-11-26 22:33:14 +01:00
Philipp A. Hartmann
c8d298bc9e
documenttest.cpp: EXPECT_THROW when checking empty allocator ( closes #469 )
...
In the MoveConstructor/MoveAssignment tests, a check for a `NULL` allocator
return has been used to check for the correct moved-from state of a Document.
After the merge of #426 , the GetAllocator call fails with an assertion,
if the allocator of a GenericDocument is NULL.
Check for the throw, instead of NULL in the move-related tests.
Tested with GCC 4.9 on Linux with C++11 enabled.
Reported-by: @woldendans
2015-11-16 21:32:09 +01:00
Andrey
f7960ac0e8
Comments parsing fixes.
...
* Comments parsing function correctly handles EOF.
* Since SkipWhitespaceAndComments can generate errors, its calls should be followed by RAPIDJSON_PARSE_ERROR_EARLY_RETURN macro.
* Some tests to make the bug never appear again.
2015-10-14 00:04:29 +03:00
Andrey
5ce78b135d
Introduce support of comments.
2015-10-11 15:09:58 +03:00
Philipp A. Hartmann
41dd68f092
add simple test for unchanged DOM after parse error
2015-10-07 21:50:14 +02:00
Milo Yip
311b48224f
Try to fix incorrect 64-bit alignment
...
Added unit tests for alignment macros.
Fixes #418
2015-09-01 10:05:33 +08:00
Philipp A. Hartmann
46e1696316
add free inline swap
functions
2015-07-13 09:35:15 +02:00
Philipp A. Hartmann
dd901f498b
add GenericDocument<>::Swap
...
See #368 .
2015-07-04 01:57:24 +02:00
miloyip
ce0184e73b
Add and fix -Wimplicit-fallthrough for clang, revert #350
2015-06-03 23:53:14 +08:00
miloyip
c8c8ad47c3
Further improve coverage of GenericPointer::Erase()
2015-05-21 17:02:27 +08:00
miloyip
7ddaa80e46
Improve coverage of GenericPointer::Erase()
2015-05-21 16:45:39 +08:00
miloyip
6e1d10ec6b
Add GenericValue::EraseMember(string types) APIs
2015-05-21 16:12:33 +08:00
miloyip
f688b2b152
Improve coverage of Pointer
2015-05-21 13:25:37 +08:00
Milo Yip
3229566573
Add multiple SkipWhitespace perftest
2015-05-20 13:33:14 +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
Milo Yip
0edd743c83
Fix Document.UserBuffer test
2015-05-11 13:58:45 +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
miloyip
a72c35b9fa
Workaround for Valgrind false alarm on wcscmp()
2015-05-06 10:49:01 +08: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
fc7b0a04a1
Add const Value& version of SetValueByPointer() and improve coverage
2015-05-04 10:06:31 +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
c35d47f83c
Change copyright header of pointer test
2015-05-03 21:37:12 +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
3c73975513
Fix 2 FILE* leaks in documenttest.cpp
2015-05-03 20:52:44 +08:00
miloyip
bfd47a70ed
Fix merge conflict
2015-05-03 20:30:46 +08:00
miloyip
7fc716006f
Merge branch 'master' into json-pointer
...
Conflicts:
test/unittest/CMakeLists.txt
2015-05-03 20:27:21 +08:00
miloyip
369cf2a8b7
Fix wcscmp() causing false alarm in Valgrind
2015-05-03 20:11:55 +08:00
miloyip
b55a9bcacb
Try diagnosis Valgrind error
2015-05-03 19:58:25 +08:00
miloyip
f55002c9a2
Try to fix valgrind error
2015-05-03 19:27:12 +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
miloyip
fd9386589f
Add overloads for document as root, with no allocator parameter.
2015-05-02 22:46:30 +08:00
miloyip
d0d18847c5
Add GetValueByPointerWithDefault() overloads
2015-05-02 22:08:03 +08:00
miloyip
32b45f6e6d
Add GetWithDefault() overloads
2015-05-02 21:52:49 +08:00
miloyip
2ddbd09031
Add '-' support for Create() and Set()
2015-05-02 21:30:40 +08:00
miloyip
2ece55abc7
Implement pointer parse error
2015-05-02 20:44:30 +08:00
miloyip
1ef380586d
Fix a bug in Pointer::Create() and Add different overloads for Set() related implementations
2015-05-02 20:07:50 +08:00
Milo Yip
7708215b60
Try to fix #313 again
2015-04-25 00:13:09 +08:00
Milo Yip
735354efd3
Separate handling for pos/neg exp and improve pos exp overflow
2015-04-24 22:50:42 +08:00