Skip to content

Commit 7a2d78e

Browse files
committed
json_merge_patch -> mergepatch
1 parent 3d9295c commit 7a2d78e

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ Changes:
1010

1111
- For consistency with library naming conventions, the directory
1212
`include/jsoncons/json_merge_patch` has been renamed to
13-
`include/jsoncons/mergepatch`, and the namespace `json_merge_patch`
14-
has been renamed to `mergepatch`.
13+
`include/jsoncons/mergepatch`, the namespace `json_merge_patch`
14+
to `mergepatch`, and the include file `json_merge_patch.hpp` to
15+
`mergepatch.hpp`.
1516

1617
0.168.7
1718
-------

doc/ref/mergepatch/apply_merge_patch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### jsoncons::mergepatch::apply_merge_patch
22

33
```c++
4-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
4+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
55

66
template <class Json>
77
void apply_merge_patch(Json& target, const Json& patch);
@@ -25,7 +25,7 @@ This example is from [RFC 7386](https://datatracker.ietf.org/doc/html/rfc7386#se
2525
2626
```c++
2727
#include <jsoncons/json.hpp>
28-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
28+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
2929
3030
using jsoncons::json;
3131
namespace mergepatch = jsoncons::mergepatch;

doc/ref/mergepatch/from_diff.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### jsoncons::mergepatch::from_diff
22

33
```c++
4-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
4+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
55

66
template <class Json>
77
Json from_diff(const Json& source, const Json& target)
@@ -21,7 +21,7 @@ This example is from [RFC 7386](https://datatracker.ietf.org/doc/html/rfc7386#se
2121
2222
```c++
2323
#include <jsoncons/json.hpp>
24-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
24+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
2525
2626
using jsoncons::json;
2727
namespace mergepatch = jsoncons::mergepatch;

doc/ref/mergepatch/json_merge_patch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This example is from [RFC 7386](https://datatracker.ietf.org/doc/html/rfc7386#se
1919

2020
```c++
2121
#include <jsoncons/json.hpp>
22-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
22+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
2323

2424
using jsoncons::json;
2525
namespace mergepatch = jsoncons::mergepatch;

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ add_executable(unit_tests
8282
fuzz_regression/src/fuzz_regression_tests.cpp
8383
jmespath/src/jmespath_expression_tests.cpp
8484
jmespath/src/jmespath_tests.cpp
85-
mergepatch/src/json_merge_patch_test_suite.cpp
85+
mergepatch/src/mergepatch_test_suite.cpp
8686
jsonpatch/src/jsonpatch_test_suite.cpp
8787
jsonpatch/src/jsonpatch_tests.cpp
8888
jsonpath/src/jsonpath_flatten_tests.cpp

test/mergepatch/src/json_merge_patch_test_suite.cpp renamed to test/mergepatch/src/mergepatch_test_suite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#endif
77
#include <iostream>
88
#include <jsoncons/json.hpp>
9-
#include <jsoncons_ext/mergepatch/json_merge_patch.hpp>
9+
#include <jsoncons_ext/mergepatch/mergepatch.hpp>
1010
#include <catch/catch.hpp>
1111
#include <iostream>
1212
#include <sstream>

0 commit comments

Comments
 (0)