Skip to content

Commit

Permalink
json_reader -> json_string_reader and json_stream_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed May 28, 2021
1 parent 9eb5869 commit 13db9f4
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 307 deletions.
18 changes: 16 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
master
------
0.164.0
-------

Changes to jsonpath:

Expand All @@ -26,6 +26,20 @@ Enhancements to jsonpath:

- User provided custom functions are now supported

Changes to json_reader and csv_reader:

- The typedefs `json_reader` and `wjson_reader` have been deprecated,
but for backwards compatibility they are still supported. They
have been replaced by `json_string_reader` and `wjson_string_reader`
for string sources, and `json_stream_reader` and `wjson_stream_reader`,
for stream sources.

- The typedefs `csv_reader` and `wcsv_reader` have been deprecated,
but for backwards compatibility they are still supported. They
have been replaced by `csv_string_reader` and `wcsv_string_reader`
for string sources, and `csv_stream_reader` and `wcsv_stream_reader`,
for stream sources.

0.163.3
--------

Expand Down
12 changes: 6 additions & 6 deletions doc/ref/basic_json_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ A number of specializations for common character types are defined:
Type |Definition
---------------------------|------------------------------
`json_string_reader` |`basic_json_reader<char,string_source<char>>` (since 0.164.4)
`wjson_string_reader` |`basic_json_reader<wchar_t,string_source<wchar_t>>` (since 0.164.4)
`json_stream_reader` |`basic_json_reader<char,stream_source<char>>` (since 0.164.4)
`wjson_stream_reader` |`basic_json_reader<wchar_t,stream_source<wchar_t>>` (since 0.164.4)
`json_reader` |Constructible from either a string or stream (deprecated since 0.164.4)
`wjson_reader` |Constructible from either a wide character string or stream (deprecated since 0.164.4)
`json_string_reader` |`basic_json_reader<char,string_source<char>>` (since 0.164.0)
`wjson_string_reader` |`basic_json_reader<wchar_t,string_source<wchar_t>>` (since 0.164.0)
`json_stream_reader` |`basic_json_reader<char,stream_source<char>>` (since 0.164.0)
`wjson_stream_reader` |`basic_json_reader<wchar_t,stream_source<wchar_t>>` (since 0.164.0)
`json_reader` |Constructible from either a string or stream (deprecated since 0.164.0)
`wjson_reader` |Constructible from either a wide character string or stream (deprecated since 0.164.0)
#### Member types
Expand Down
12 changes: 6 additions & 6 deletions doc/ref/csv/basic_csv_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ A number of specializations for common character types are defined:
Type |Definition
----------------------|------------------------------
`csv_string_reader` |`basic_csv_string_reader<char,string_source<char>>` (since 0.164.4)
`wcsv_stringreader` |`basic_csv_string_reader<wchar_t,string_source<wchar_t>>` (since 0.164.4)
`csv_stream_reader` |`basic_csv_stream_reader<char,stream_source<char>>` (since 0.164.4)
`wcsv_stream_reader` |`basic_csv_stream_reader<wchar_t,stream_source<wchar_t>>` (since 0.164.4)
`csv_reader` |Constructible from either a string or stream (deprecated since 0.164.4)
`wcsv_reader` |Constructible from either a wide character string or stream (deprecated since 0.164.4)
`csv_string_reader` |`basic_csv_string_reader<char,string_source<char>>` (since 0.164.0)
`wcsv_stringreader` |`basic_csv_string_reader<wchar_t,string_source<wchar_t>>` (since 0.164.0)
`csv_stream_reader` |`basic_csv_stream_reader<char,stream_source<char>>` (since 0.164.0)
`wcsv_stream_reader` |`basic_csv_stream_reader<wchar_t,stream_source<wchar_t>>` (since 0.164.0)
`csv_reader` |Constructible from either a string or stream (deprecated since 0.164.0)
`wcsv_reader` |Constructible from either a wide character string or stream (deprecated since 0.164.0)
#### Member types
Expand Down
4 changes: 2 additions & 2 deletions include/jsoncons/config/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <iostream>

#define JSONCONS_VERSION_MAJOR 0
#define JSONCONS_VERSION_MINOR 163
#define JSONCONS_VERSION_PATCH 3
#define JSONCONS_VERSION_MINOR 164
#define JSONCONS_VERSION_PATCH 0

namespace jsoncons {

Expand Down
3 changes: 2 additions & 1 deletion include/jsoncons/json_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,10 @@ namespace jsoncons {

};

#if !defined(JSONCONS_NO_DEPRECATED)
using json_reader = legacy_basic_json_reader<char>;
using wjson_reader = legacy_basic_json_reader<wchar_t>;

#endif
using json_string_reader = basic_json_reader<char,string_source<char>>;
using wjson_string_reader = basic_json_reader<wchar_t,string_source<wchar_t>>;
using json_stream_reader = basic_json_reader<char,stream_source<char>>;
Expand Down
Loading

0 comments on commit 13db9f4

Please sign in to comment.