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
f76f9efe
Commit
f76f9efe
authored
Aug 30, 2016
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/iterator_range_parsing
parents
04c6c886
29c5f32d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
Makefile
Makefile
+3
-0
README.md
README.md
+1
-2
json.hpp
src/json.hpp
+2
-1
json.hpp.re2c
src/json.hpp.re2c
+2
-1
No files found.
Makefile
View file @
f76f9efe
...
@@ -66,6 +66,9 @@ fuzz: test/src/fuzz.cpp src/json.hpp
...
@@ -66,6 +66,9 @@ fuzz: test/src/fuzz.cpp src/json.hpp
cppcheck
:
cppcheck
:
cppcheck
--enable
=
warning
--inconclusive
--force
--std
=
c++11 src/json.hpp
--error-exitcode
=
1
cppcheck
--enable
=
warning
--inconclusive
--force
--std
=
c++11 src/json.hpp
--error-exitcode
=
1
clang_sanitize
:
clean
CXX
=
clang++
CXXFLAGS
=
"-g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
$(MAKE)
##########################################################################
##########################################################################
# maintainer targets
# maintainer targets
##########################################################################
##########################################################################
...
...
README.md
View file @
f76f9efe
[

](https://github.com/nlohmann/json/releases)
[

](https://github.com/nlohmann/json/releases)
[

](https://travis-ci.org/nlohmann/json)
[

](https://travis-ci.org/nlohmann/json)
[

](https://ci.appveyor.com/project/nlohmann/json)
[

](https://ci.appveyor.com/project/nlohmann/json)
[

](https://coveralls.io/r/nlohmann/json)
[

](https://coveralls.io/r/nlohmann/json)
[

](https://scan.coverity.com/projects/nlohmann-json)
[

](http://melpon.org/wandbox/permlink/p5o4znPnGHJpDVqN)
[

](http://melpon.org/wandbox/permlink/p5o4znPnGHJpDVqN)
[

](http://nlohmann.github.io/json)
[

](http://nlohmann.github.io/json)
[

](https://raw.githubusercontent.com/nlohmann/json/master/LICENSE.MIT)
[

](https://raw.githubusercontent.com/nlohmann/json/master/LICENSE.MIT)
...
...
src/json.hpp
View file @
f76f9efe
...
@@ -2212,7 +2212,8 @@ class basic_json
...
@@ -2212,7 +2212,8 @@ class basic_json
{
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
// fix locale problems
// fix locale problems
ss
.
imbue
(
std
::
locale
(
std
::
locale
(),
new
DecimalSeparator
));
const
static
std
::
locale
loc
(
std
::
locale
(),
new
DecimalSeparator
);
ss
.
imbue
(
loc
);
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long
// string->float->string, string->double->string or string->long
...
...
src/json.hpp.re2c
View file @
f76f9efe
...
@@ -2212,7 +2212,8 @@ class basic_json
...
@@ -2212,7 +2212,8 @@ class basic_json
{
{
std::stringstream ss;
std::stringstream ss;
// fix locale problems
// fix locale problems
ss.imbue(std::locale(std::locale(), new DecimalSeparator));
const static std::locale loc(std::locale(), new DecimalSeparator);
ss.imbue(loc);
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// 6, 15 or 16 digits of precision allows round-trip IEEE 754
// string->float->string, string->double->string or string->long
// string->float->string, string->double->string or string->long
...
...
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