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
540cda61
Commit
540cda61
authored
Jan 04, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used _-suffix for member variables
parent
3bef1a50
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
325 additions
and
325 deletions
+325
-325
src/json.cc
src/json.cc
+312
-312
src/json.h
src/json.h
+13
-13
No files found.
src/json.cc
View file @
540cda61
This diff is collapsed.
Click to expand it.
src/json.h
View file @
540cda61
...
...
@@ -158,7 +158,7 @@ class json
private:
/// return the type as string
const
std
::
string
_type
name
()
const
noexcept
;
const
std
::
string
type_
name
()
const
noexcept
;
public:
/// explicit value conversion
...
...
@@ -312,14 +312,14 @@ class json
private:
/// the type of this object
value_type
_type
=
value_type
::
null
;
value_type
type_
=
value_type
::
null
;
/// the payload
value
_value
{};
value
value_
{};
private:
/// mutex to guard payload
static
std
::
mutex
_token
;
static
std
::
mutex
token_
;
public:
/// an iterator
...
...
@@ -347,11 +347,11 @@ class json
private:
/// a JSON value
json
*
_object
=
nullptr
;
json
*
object_
=
nullptr
;
/// an iterator for JSON arrays
array_t
::
iterator
*
_vi
=
nullptr
;
array_t
::
iterator
*
vi_
=
nullptr
;
/// an iterator for JSON objects
object_t
::
iterator
*
_oi
=
nullptr
;
object_t
::
iterator
*
oi_
=
nullptr
;
};
/// a const iterator
...
...
@@ -380,11 +380,11 @@ class json
private:
/// a JSON value
const
json
*
_object
=
nullptr
;
const
json
*
object_
=
nullptr
;
/// an iterator for JSON arrays
array_t
::
const_iterator
*
_vi
=
nullptr
;
array_t
::
const_iterator
*
vi_
=
nullptr
;
/// an iterator for JSON objects
object_t
::
const_iterator
*
_oi
=
nullptr
;
object_t
::
const_iterator
*
oi_
=
nullptr
;
};
private:
...
...
@@ -427,11 +427,11 @@ class json
private:
/// a buffer of the input
std
::
string
_buffer
{};
std
::
string
buffer_
{};
/// the current character
char
_current
{};
char
current_
{};
/// the position inside the input buffer
size_t
_pos
=
0
;
size_t
pos_
=
0
;
};
};
...
...
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