Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
4abcfd1e
Commit
4abcfd1e
authored
Feb 28, 2016
by
Sergey Kosarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Number() to rapidjson::Handler
parent
ba2b751b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
reader.h
include/rapidjson/reader.h
+4
-0
No files found.
include/rapidjson/reader.h
View file @
4abcfd1e
...
...
@@ -170,6 +170,8 @@ concept Handler {
bool Int64(int64_t i);
bool Uint64(uint64_t i);
bool Double(double d);
/// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool Number(const Ch* str, SizeType length, bool copy);
bool String(const Ch* str, SizeType length, bool copy);
bool StartObject();
bool Key(const Ch* str, SizeType length, bool copy);
...
...
@@ -200,6 +202,8 @@ struct BaseReaderHandler {
bool
Int64
(
int64_t
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
Uint64
(
uint64_t
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
Double
(
double
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
/// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length)
bool
Number
(
const
Ch
*
,
SizeType
,
bool
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
String
(
const
Ch
*
,
SizeType
,
bool
)
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
StartObject
()
{
return
static_cast
<
Override
&>
(
*
this
).
Default
();
}
bool
Key
(
const
Ch
*
str
,
SizeType
len
,
bool
copy
)
{
return
static_cast
<
Override
&>
(
*
this
).
String
(
str
,
len
,
copy
);
}
...
...
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