Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
6fa4f96b
Commit
6fa4f96b
authored
Dec 11, 2016
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
fixed two documentation warnings
parent
bc289421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
36 deletions
+20
-36
src/json.hpp
src/json.hpp
+10
-18
src/json.hpp.re2c
src/json.hpp.re2c
+10
-18
No files found.
src/json.hpp
View file @
6fa4f96b
...
...
@@ -944,7 +944,7 @@ class basic_json
With a parser callback function, the result of parsing a JSON text can be
influenced. When passed to @ref parse(std::istream&, const
parser_callback_t) or @ref parse(const
char*
, const parser_callback_t),
parser_callback_t) or @ref parse(const
CharT
, const parser_callback_t),
it is called on certain events (passed as @ref parse_event_t via parameter
@a event) with a set recursion depth @a depth and context JSON value
@a parsed. The return value of the callback function is a boolean
...
...
@@ -987,7 +987,7 @@ class basic_json
skipped completely or replaced by an empty discarded object.
@sa @ref parse(std::istream&, parser_callback_t) or
@ref parse(const
char*,
parser_callback_t) for examples
@ref parse(const
CharT, const
parser_callback_t) for examples
@since version 1.0.0
*/
...
...
@@ -6003,11 +6003,11 @@ class basic_json
@since version 1.0.0 (originally for @ref string_t)
*/
template
<
typename
Char
P
T
,
typename
std
::
enable_if
<
std
::
is_pointer
<
Char
P
T
>
::
value
and
std
::
is_integral
<
typename
std
::
remove_pointer
<
Char
P
T
>::
type
>::
value
and
sizeof
(
typename
std
::
remove_pointer
<
Char
P
T
>::
type
)
==
1
,
int
>::
type
=
0
>
static
basic_json
parse
(
const
Char
P
T
s
,
template
<
typename
CharT
,
typename
std
::
enable_if
<
std
::
is_pointer
<
CharT
>
::
value
and
std
::
is_integral
<
typename
std
::
remove_pointer
<
CharT
>::
type
>::
value
and
sizeof
(
typename
std
::
remove_pointer
<
CharT
>::
type
)
==
1
,
int
>::
type
=
0
>
static
basic_json
parse
(
const
CharT
s
,
const
parser_callback_t
cb
=
nullptr
)
{
return
parser
(
reinterpret_cast
<
const
char
*>
(
s
),
cb
).
parse
();
...
...
@@ -6032,7 +6032,7 @@ class basic_json
@liveexample{The example below demonstrates the `parse()` function with
and without callback function.,parse__istream__parser_callback_t}
@sa @ref parse(const
char*
, const parser_callback_t) for a version
@sa @ref parse(const
CharT
, const parser_callback_t) for a version
that reads from a string
@since version 1.0.0
...
...
@@ -9068,8 +9068,6 @@ basic_json_parser_66:
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -9088,8 +9086,6 @@ basic_json_parser_66:
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -9108,8 +9104,6 @@ basic_json_parser_66:
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -9997,13 +9991,11 @@ basic_json_parser_66:
/*!
@brief replace all occurrences of a substring by another string
@param[in,out] s the string to manipulate
@param[in,out] s the string to manipulate; changed so that all
occurrences of @a f are replaced with @a t
@param[in] f the substring to replace with @a t
@param[in] t the string to replace @a f
@return The string @a s where all occurrences of @a f are replaced
with @a t.
@pre The search string @a f must not be empty.
@since version 2.0.0
...
...
src/json.hpp.re2c
View file @
6fa4f96b
...
...
@@ -944,7 +944,7 @@ class basic_json
With a parser callback function, the result of parsing a JSON text can be
influenced. When passed to @ref parse(std::istream&, const
parser_callback_t) or @ref parse(const
char*
, const parser_callback_t),
parser_callback_t) or @ref parse(const
CharT
, const parser_callback_t),
it is called on certain events (passed as @ref parse_event_t via parameter
@a event) with a set recursion depth @a depth and context JSON value
@a parsed. The return value of the callback function is a boolean
...
...
@@ -987,7 +987,7 @@ class basic_json
skipped completely or replaced by an empty discarded object.
@sa @ref parse(std::istream&, parser_callback_t) or
@ref parse(const
char*,
parser_callback_t) for examples
@ref parse(const
CharT, const
parser_callback_t) for examples
@since version 1.0.0
*/
...
...
@@ -6003,11 +6003,11 @@ class basic_json
@since version 1.0.0 (originally for @ref string_t)
*/
template<typename Char
P
T, typename std::enable_if<
std::is_pointer<Char
P
T>::value and
std::is_integral<typename std::remove_pointer<Char
P
T>::type>::value and
sizeof(typename std::remove_pointer<Char
P
T>::type) == 1, int>::type = 0>
static basic_json parse(const Char
P
T s,
template<typename CharT, typename std::enable_if<
std::is_pointer<CharT>::value and
std::is_integral<typename std::remove_pointer<CharT>::type>::value and
sizeof(typename std::remove_pointer<CharT>::type) == 1, int>::type = 0>
static basic_json parse(const CharT s,
const parser_callback_t cb = nullptr)
{
return parser(reinterpret_cast<const char*>(s), cb).parse();
...
...
@@ -6032,7 +6032,7 @@ class basic_json
@liveexample{The example below demonstrates the `parse()` function with
and without callback function.,parse__istream__parser_callback_t}
@sa @ref parse(const
char*
, const parser_callback_t) for a version
@sa @ref parse(const
CharT
, const parser_callback_t) for a version
that reads from a string
@since version 1.0.0
...
...
@@ -8217,8 +8217,6 @@ class basic_json
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -8237,8 +8235,6 @@ class basic_json
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -8257,8 +8253,6 @@ class basic_json
supplied via the first parameter. Set this to @a
static_cast<number_float_t*>(nullptr).
@param[in] type the @ref number_float_t in use
@param[in,out] endptr recieves a pointer to the first character after
the number
...
...
@@ -9146,13 +9140,11 @@ class basic_json
/*!
@brief replace all occurrences of a substring by another string
@param[in,out] s the string to manipulate
@param[in,out] s the string to manipulate; changed so that all
occurrences of @a f are replaced with @a t
@param[in] f the substring to replace with @a t
@param[in] t the string to replace @a f
@return The string @a s where all occurrences of @a f are replaced
with @a t.
@pre The search string @a f must not be empty.
@since version 2.0.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment