@@ -1106,7 +1106,7 @@ class basic_json
1106
1106
/* !
1107
1107
@brief returns version information on the library
1108
1108
1109
- This function returns a JSON object with infiormation about the library,
1109
+ This function returns a JSON object with information about the library,
1110
1110
including the version number and information on the platform and compiler.
1111
1111
1112
1112
@return JSON object holding version information
@@ -3417,7 +3417,7 @@ class basic_json
3417
3417
/* !
3418
3418
@brief get a reference value (implicit)
3419
3419
3420
- Implict reference access to the internally stored JSON value. No copies
3420
+ Implicit reference access to the internally stored JSON value. No copies
3421
3421
are made.
3422
3422
3423
3423
@warning Writing data to the referee of the result yields an undefined
@@ -3492,7 +3492,7 @@ class basic_json
3492
3492
template < typename ValueType, typename std::enable_if <
3493
3493
not std::is_pointer<ValueType>::value and
3494
3494
not std::is_same<ValueType, typename string_t ::value_type>::value
3495
- #ifndef _MSC_VER // fix for issue #167 operator<< abiguity under VS2015
3495
+ #ifndef _MSC_VER // fix for issue #167 operator<< ambiguity under VS2015
3496
3496
and not std::is_same<ValueType, std::initializer_list<typename string_t ::value_type>>::value
3497
3497
#endif
3498
3498
, int >::type = 0 >
@@ -4285,7 +4285,7 @@ class basic_json
4285
4285
4286
4286
@complexity The complexity depends on the type:
4287
4287
- objects: amortized constant
4288
- - arrays: linear in distance between pos and the end of the container
4288
+ - arrays: linear in distance between @a pos and the end of the container
4289
4289
- strings: linear in the length of the string
4290
4290
- other types: constant
4291
4291
@@ -5537,7 +5537,7 @@ class basic_json
5537
5537
@throw std::domain_error if @a pos is not an iterator of *this; example:
5538
5538
`"iterator does not fit current value"`
5539
5539
5540
- @complexity Constant plus linear in the distance between pos and end of
5540
+ @complexity Constant plus linear in the distance between @a pos and end of
5541
5541
the container.
5542
5542
5543
5543
@liveexample{The example shows how `insert()` is used.,insert}
@@ -6234,7 +6234,7 @@ class basic_json
6234
6234
`std::setw(4)` on @a o sets the indentation level to `4` and the
6235
6235
serialization result is the same as calling `dump(4)`.
6236
6236
6237
- @note During serializaion , the locale and the precision of the output
6237
+ @note During serialization , the locale and the precision of the output
6238
6238
stream @a o are changed. The original values are restored when the
6239
6239
function returns.
6240
6240
@@ -10624,7 +10624,7 @@ class basic_json
10624
10624
if (m_stream == nullptr or m_stream->eof ())
10625
10625
{
10626
10626
// m_start may or may not be pointing into m_line_buffer at
10627
- // this point. We trust the standand library to do the right
10627
+ // this point. We trust the standard library to do the right
10628
10628
// thing. See http://stackoverflow.com/q/28142011/266378
10629
10629
m_line_buffer.assign (m_start, m_limit);
10630
10630
@@ -10712,7 +10712,7 @@ class basic_json
10712
10712
m_start + 1 + x < m_cursor - 1 must hold to loop indefinitely. This
10713
10713
can be rephrased to m_cursor - m_start - 2 > x. With the
10714
10714
precondition, we x <= 0, meaning that the loop condition holds
10715
- indefinitly if i is always decreased. However, observe that the value
10715
+ indefinitely if i is always decreased. However, observe that the value
10716
10716
of i is strictly increasing with each iteration, as it is incremented
10717
10717
by 1 in the iteration expression and never decremented inside the loop
10718
10718
body. Hence, the loop condition will eventually be false which
@@ -10841,12 +10841,12 @@ class basic_json
10841
10841
/* !
10842
10842
@brief parse floating point number
10843
10843
10844
- This function (and its overloads) serves to select the most approprate
10844
+ This function (and its overloads) serves to select the most appropriate
10845
10845
standard floating point number parsing function based on the type
10846
10846
supplied via the first parameter. Set this to @a
10847
10847
static_cast<number_float_t*>(nullptr).
10848
10848
10849
- @param[in,out] endptr recieves a pointer to the first character after
10849
+ @param[in,out] endptr receives a pointer to the first character after
10850
10850
the number
10851
10851
10852
10852
@return the floating point number
@@ -10859,12 +10859,12 @@ class basic_json
10859
10859
/* !
10860
10860
@brief parse floating point number
10861
10861
10862
- This function (and its overloads) serves to select the most approprate
10862
+ This function (and its overloads) serves to select the most appropriate
10863
10863
standard floating point number parsing function based on the type
10864
10864
supplied via the first parameter. Set this to @a
10865
10865
static_cast<number_float_t*>(nullptr).
10866
10866
10867
- @param[in,out] endptr recieves a pointer to the first character after
10867
+ @param[in,out] endptr receives a pointer to the first character after
10868
10868
the number
10869
10869
10870
10870
@return the floating point number
@@ -10877,12 +10877,12 @@ class basic_json
10877
10877
/* !
10878
10878
@brief parse floating point number
10879
10879
10880
- This function (and its overloads) serves to select the most approprate
10880
+ This function (and its overloads) serves to select the most appropriate
10881
10881
standard floating point number parsing function based on the type
10882
10882
supplied via the first parameter. Set this to @a
10883
10883
static_cast<number_float_t*>(nullptr).
10884
10884
10885
- @param[in,out] endptr recieves a pointer to the first character after
10885
+ @param[in,out] endptr receives a pointer to the first character after
10886
10886
the number
10887
10887
10888
10888
@return the floating point number
@@ -10925,7 +10925,7 @@ class basic_json
10925
10925
// maximum absolute value of the relevant integer type
10926
10926
number_unsigned_t max;
10927
10927
10928
- // temporarily store the type to avoid unecessary bitfield access
10928
+ // temporarily store the type to avoid unnecessary bitfield access
10929
10929
value_t type;
10930
10930
10931
10931
// look for sign
@@ -11558,7 +11558,7 @@ class basic_json
11558
11558
11559
11559
if (reference_token == " -" )
11560
11560
{
11561
- // explicityly treat "-" as index beyond the end
11561
+ // explicitly treat "-" as index beyond the end
11562
11562
ptr = &ptr->operator [](ptr->m_value .array ->size ());
11563
11563
}
11564
11564
else
@@ -12065,7 +12065,7 @@ class basic_json
12065
12065
primitive. The original JSON value can be restored using the @ref
12066
12066
unflatten() function.
12067
12067
12068
- @return an object that maps JSON pointers to primitve values
12068
+ @return an object that maps JSON pointers to primitive values
12069
12069
12070
12070
@note Empty objects and arrays are flattened to `null` and will not be
12071
12071
reconstructed correctly by the @ref unflatten() function.
@@ -12132,7 +12132,7 @@ class basic_json
12132
12132
12133
12133
[JSON Patch](http://jsonpatch.com) defines a JSON document structure for
12134
12134
expressing a sequence of operations to apply to a JSON) document. With
12135
- this funcion , a JSON Patch is applied to the current JSON value by
12135
+ this function , a JSON Patch is applied to the current JSON value by
12136
12136
executing all operations from the patch.
12137
12137
12138
12138
@param[in] json_patch JSON patch document
@@ -12300,7 +12300,7 @@ class basic_json
12300
12300
JSON_THROW (std::invalid_argument (" JSON patch must be an array of objects" ));
12301
12301
}
12302
12302
12303
- // iterate and apply th eoperations
12303
+ // iterate and apply the operations
12304
12304
for (const auto & val : json_patch)
12305
12305
{
12306
12306
// wrapper to get a value for an operation
@@ -12439,8 +12439,8 @@ class basic_json
12439
12439
@note Currently, only `remove`, `add`, and `replace` operations are
12440
12440
generated.
12441
12441
12442
- @param[in] source JSON value to copare from
12443
- @param[in] target JSON value to copare against
12442
+ @param[in] source JSON value to compare from
12443
+ @param[in] target JSON value to compare against
12444
12444
@param[in] path helper value to create JSON pointers
12445
12445
12446
12446
@return a JSON patch to convert the @a source to @a target
0 commit comments