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
4a39bfb1
Commit
4a39bfb1
authored
Jan 09, 2015
by
Raphael Isemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo in comments
parent
fa0ee9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/json.cc
src/json.cc
+2
-2
No files found.
src/json.cc
View file @
4a39bfb1
...
@@ -2068,12 +2068,12 @@ std::string json::parser::parseString()
...
@@ -2068,12 +2068,12 @@ std::string json::parser::parseString()
}
}
}
}
// remember if we have a even amount of backslashes before the current character
// remember if we have a
n
even amount of backslashes before the current character
if
(
currentChar
==
'\\'
)
{
if
(
currentChar
==
'\\'
)
{
// jump between even/uneven for each backslash we encounter
// jump between even/uneven for each backslash we encounter
evenAmountOfBackslashes
=
!
evenAmountOfBackslashes
;
evenAmountOfBackslashes
=
!
evenAmountOfBackslashes
;
}
else
{
}
else
{
// zero backslashes are also a even number, so as soon as we encounter a non-backslash
// zero backslashes are also a
n
even number, so as soon as we encounter a non-backslash
// the chain of backslashes breaks and we start again from zero
// the chain of backslashes breaks and we start again from zero
evenAmountOfBackslashes
=
true
;
evenAmountOfBackslashes
=
true
;
}
}
...
...
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