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
862e7000
Commit
862e7000
authored
Jun 28, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #94
parent
3f6b1073
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/json.hpp
src/json.hpp
+2
-2
src/json.hpp.re2c
src/json.hpp.re2c
+2
-2
No files found.
src/json.hpp
View file @
862e7000
...
...
@@ -5085,14 +5085,14 @@ class basic_json
using
lexer_char_t
=
unsigned
char
;
/// constructor with a given buffer
lexer
(
const
string_t
&
s
)
noexcept
explicit
lexer
(
const
string_t
&
s
)
noexcept
:
m_stream
(
nullptr
),
m_buffer
(
s
)
{
m_content
=
reinterpret_cast
<
const
lexer_char_t
*>
(
s
.
c_str
());
m_start
=
m_cursor
=
m_content
;
m_limit
=
m_content
+
s
.
size
();
}
lexer
(
std
::
istream
*
s
)
noexcept
explicit
lexer
(
std
::
istream
*
s
)
noexcept
:
m_stream
(
s
),
m_buffer
()
{
getline
(
*
m_stream
,
m_buffer
);
...
...
src/json.hpp.re2c
View file @
862e7000
...
...
@@ -5085,14 +5085,14 @@ class basic_json
using lexer_char_t = unsigned char;
/// constructor with a given buffer
lexer(const string_t& s) noexcept
explicit
lexer(const string_t& s) noexcept
: m_stream(nullptr), m_buffer(s)
{
m_content = reinterpret_cast<const lexer_char_t*>(s.c_str());
m_start = m_cursor = m_content;
m_limit = m_content + s.size();
}
lexer(std::istream* s) noexcept
explicit
lexer(std::istream* s) noexcept
: m_stream(s), m_buffer()
{
getline(*m_stream, m_buffer);
...
...
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