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
83491801
Unverified
Commit
83491801
authored
Nov 09, 2021
by
Alex Beregszaszi
Committed by
GitHub
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling (#3125)
parent
5c08a52f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
include/nlohmann/detail/input/binary_reader.hpp
include/nlohmann/detail/input/binary_reader.hpp
+4
-4
include/nlohmann/detail/input/input_adapters.hpp
include/nlohmann/detail/input/input_adapters.hpp
+1
-1
include/nlohmann/detail/output/binary_writer.hpp
include/nlohmann/detail/output/binary_writer.hpp
+3
-3
include/nlohmann/json.hpp
include/nlohmann/json.hpp
+2
-2
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+10
-10
No files found.
include/nlohmann/detail/input/binary_reader.hpp
View file @
83491801
...
...
@@ -42,7 +42,7 @@ enum class cbor_tag_handler_t
@note from https://stackoverflow.com/a/1001328/266378
*/
static
inline
bool
little_endianess
(
int
num
=
1
)
noexcept
static
inline
bool
little_endian
n
ess
(
int
num
=
1
)
noexcept
{
return
*
reinterpret_cast
<
char
*>
(
&
num
)
==
1
;
}
...
...
@@ -2341,7 +2341,7 @@ class binary_reader
@return whether conversion completed
@note This function needs to respect the system's endianess, because
@note This function needs to respect the system's endian
n
ess, because
bytes in CBOR, MessagePack, and UBJSON are stored in network order
(big endian) and therefore need reordering on little endian systems.
*/
...
...
@@ -2514,8 +2514,8 @@ class binary_reader
/// the number of characters read
std
::
size_t
chars_read
=
0
;
/// whether we can assume little endianess
const
bool
is_little_endian
=
little_endianess
();
/// whether we can assume little endian
n
ess
const
bool
is_little_endian
=
little_endian
n
ess
();
/// the SAX parser
json_sax_t
*
sax
=
nullptr
;
...
...
include/nlohmann/detail/input/input_adapters.hpp
View file @
83491801
...
...
@@ -450,7 +450,7 @@ auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) /
}
// This class only handles inputs of input_buffer_adapter type.
// It's required so that expressions like {ptr, len} can be implicit
e
ly casted
// It's required so that expressions like {ptr, len} can be implicitly casted
// to the correct adapter.
class
span_input_adapter
{
...
...
include/nlohmann/detail/output/binary_writer.hpp
View file @
83491801
...
...
@@ -1535,7 +1535,7 @@ class binary_writer
@tparam OutputIsLittleEndian Set to true if output data is
required to be little endian
@note This function needs to respect the system's endianess, because bytes
@note This function needs to respect the system's endian
n
ess, because bytes
in CBOR, MessagePack, and UBJSON are stored in network order (big
endian) and therefore need reordering on little endian systems.
*/
...
...
@@ -1625,8 +1625,8 @@ class binary_writer
}
private:
/// whether we can assume little endianess
const
bool
is_little_endian
=
little_endianess
();
/// whether we can assume little endian
n
ess
const
bool
is_little_endian
=
little_endian
n
ess
();
/// the output
output_adapter_t
<
CharType
>
oa
=
nullptr
;
...
...
include/nlohmann/json.hpp
View file @
83491801
...
...
@@ -908,7 +908,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
- If a subtype is given and the binary array contains exactly 1, 2, 4, 8,
or 16 elements, the fixext family (fixext1, fixext2, fixext4, fixext8)
is used. For other sizes, the ext family (ext8, ext16, ext32) is used.
The subtype is then added as si
ng
ed 8-bit integer.
The subtype is then added as si
gn
ed 8-bit integer.
- If no subtype is given, the bin family (bin8, bin16, bin32) is used.
- BSON
- If a subtype is given, it is used and added as unsigned 8-bit integer.
...
...
@@ -5021,7 +5021,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
`key()` returns an empty string.
@warning Using `items()` on temporary objects is dangerous. Make sure the
object's lifetime exeeds the iteration. See
object's lifetime ex
c
eeds the iteration. See
<https://github.com/nlohmann/json/issues/2040> for more
information.
...
...
single_include/nlohmann/json.hpp
View file @
83491801
...
...
@@ -5875,7 +5875,7 @@ auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) /
}
// This class only handles inputs of input_buffer_adapter type.
// It's required so that expressions like {ptr, len} can be implicit
e
ly casted
// It's required so that expressions like {ptr, len} can be implicitly casted
// to the correct adapter.
class
span_input_adapter
{
...
...
@@ -8430,7 +8430,7 @@ enum class cbor_tag_handler_t
@note from https://stackoverflow.com/a/1001328/266378
*/
static
inline
bool
little_endianess
(
int
num
=
1
)
noexcept
static
inline
bool
little_endian
n
ess
(
int
num
=
1
)
noexcept
{
return
*
reinterpret_cast
<
char
*>
(
&
num
)
==
1
;
}
...
...
@@ -10729,7 +10729,7 @@ class binary_reader
@return whether conversion completed
@note This function needs to respect the system's endianess, because
@note This function needs to respect the system's endian
n
ess, because
bytes in CBOR, MessagePack, and UBJSON are stored in network order
(big endian) and therefore need reordering on little endian systems.
*/
...
...
@@ -10902,8 +10902,8 @@ class binary_reader
/// the number of characters read
std
::
size_t
chars_read
=
0
;
/// whether we can assume little endianess
const
bool
is_little_endian
=
little_endianess
();
/// whether we can assume little endian
n
ess
const
bool
is_little_endian
=
little_endian
n
ess
();
/// the SAX parser
json_sax_t
*
sax
=
nullptr
;
...
...
@@ -15202,7 +15202,7 @@ class binary_writer
@tparam OutputIsLittleEndian Set to true if output data is
required to be little endian
@note This function needs to respect the system's endianess, because bytes
@note This function needs to respect the system's endian
n
ess, because bytes
in CBOR, MessagePack, and UBJSON are stored in network order (big
endian) and therefore need reordering on little endian systems.
*/
...
...
@@ -15292,8 +15292,8 @@ class binary_writer
}
private:
/// whether we can assume little endianess
const
bool
is_little_endian
=
little_endianess
();
/// whether we can assume little endian
n
ess
const
bool
is_little_endian
=
little_endian
n
ess
();
/// the output
output_adapter_t
<
CharType
>
oa
=
nullptr
;
...
...
@@ -18409,7 +18409,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
- If a subtype is given and the binary array contains exactly 1, 2, 4, 8,
or 16 elements, the fixext family (fixext1, fixext2, fixext4, fixext8)
is used. For other sizes, the ext family (ext8, ext16, ext32) is used.
The subtype is then added as si
ng
ed 8-bit integer.
The subtype is then added as si
gn
ed 8-bit integer.
- If no subtype is given, the bin family (bin8, bin16, bin32) is used.
- BSON
- If a subtype is given, it is used and added as unsigned 8-bit integer.
...
...
@@ -22522,7 +22522,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
`key()` returns an empty string.
@warning Using `items()` on temporary objects is dangerous. Make sure the
object's lifetime exeeds the iteration. See
object's lifetime ex
c
eeds the iteration. See
<https://github.com/nlohmann/json/issues/2040> for more
information.
...
...
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