Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
6232c78f
Commit
6232c78f
authored
Feb 10, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
possible fix
parent
1bbde459
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
json.hpp
src/json.hpp
+0
-0
json.hpp.re2c
src/json.hpp.re2c
+6
-2
No files found.
src/json.hpp
View file @
6232c78f
This diff is collapsed.
Click to expand it.
src/json.hpp.re2c
View file @
6232c78f
...
@@ -2412,10 +2412,12 @@ class basic_json
...
@@ -2412,10 +2412,12 @@ class basic_json
/// constructor for strings
/// constructor for strings
inline parser(const std::string& s) : buffer(s)
inline parser(const std::string& s) : buffer(s)
{
{
buffer += " ";
// set buffer for RE2C
// set buffer for RE2C
buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
// set a pointer past the end of the buffer
// set a pointer past the end of the buffer
buffer_re2c_limit = buffer_re2c + buffer.size();
buffer_re2c_limit = buffer_re2c + buffer.size()
- 5
;
// read first token
// read first token
get_token();
get_token();
}
}
...
@@ -2429,11 +2431,13 @@ class basic_json
...
@@ -2429,11 +2431,13 @@ class basic_json
std::getline(_is, input_line);
std::getline(_is, input_line);
buffer += input_line;
buffer += input_line;
}
}
buffer += " ";
// set buffer for RE2C
// set buffer for RE2C
buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
buffer_re2c = reinterpret_cast<const lexer_char_t*>(buffer.c_str());
// set a pointer past the end of the buffer
// set a pointer past the end of the buffer
buffer_re2c_limit = buffer_re2c + buffer.size();
buffer_re2c_limit = buffer_re2c + buffer.size()
- 5
;
// read first token
// read first token
get_token();
get_token();
}
}
...
...
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