Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
畅游知识海洋
json
提交
6fa4f96b
J
json
项目概览
畅游知识海洋
/
json
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
json
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6fa4f96b
编写于
12月 11, 2016
作者:
N
Niels Lohmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
📝
fixed two documentation warnings
上级
bc289421
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
36 deletion
+20
-36
src/json.hpp
src/json.hpp
+10
-18
src/json.hpp.re2c
src/json.hpp.re2c
+10
-18
未找到文件。
src/json.hpp
浏览文件 @
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
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录