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
7fa194d1
Commit
7fa194d1
authored
Jul 26, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force inline some suitable functions.
parent
6f382fd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
reader.h
include/rapidjson/reader.h
+3
-3
No files found.
include/rapidjson/reader.h
View file @
7fa194d1
...
...
@@ -512,7 +512,7 @@ private:
typedef
typename
TargetEncoding
::
Ch
Ch
;
StackStream
(
internal
::
Stack
<
Allocator
>&
stack
)
:
stack_
(
stack
),
length_
(
0
)
{}
void
Put
(
Ch
c
)
{
RAPIDJSON_FORCEINLINE
void
Put
(
Ch
c
)
{
*
stack_
.
template
Push
<
Ch
>
()
=
c
;
++
length_
;
}
...
...
@@ -861,7 +861,7 @@ private:
return
NumberToken
;
}
IterativeParsingState
Predict
(
IterativeParsingState
state
,
Token
token
)
{
RAPIDJSON_FORCEINLINE
IterativeParsingState
Predict
(
IterativeParsingState
state
,
Token
token
)
{
// current state x one lookahead token -> new state
static
const
char
G
[
cIterativeParsingStateCount
][
kTokenCount
]
=
{
// Start
...
...
@@ -1022,7 +1022,7 @@ private:
// Make an advance in the token stream and state based on the candidate destination state which was returned by Transit().
// May return a new state on state pop.
template
<
unsigned
parseFlags
,
typename
InputStream
,
typename
Handler
>
IterativeParsingState
Transit
(
IterativeParsingState
src
,
Token
token
,
IterativeParsingState
dst
,
InputStream
&
is
,
Handler
&
handler
)
{
RAPIDJSON_FORCEINLINE
IterativeParsingState
Transit
(
IterativeParsingState
src
,
Token
token
,
IterativeParsingState
dst
,
InputStream
&
is
,
Handler
&
handler
)
{
switch
(
dst
)
{
case
IterativeParsingStartState
:
RAPIDJSON_ASSERT
(
false
);
...
...
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