Fully support int64_t/uint64_t numbers, add unsigned type
This commit is contained in:
parent
4ce2b93324
commit
b40408a755
@ -534,7 +534,7 @@ class basic_json
|
|||||||
*/
|
*/
|
||||||
using number_integer_t = NumberIntegerType;
|
using number_integer_t = NumberIntegerType;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@brief a type for a number (unsigned)
|
@brief a type for a number (unsigned)
|
||||||
|
|
||||||
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
|
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
|
||||||
@ -7498,7 +7498,7 @@ basic_json_parser_64:
|
|||||||
*/
|
*/
|
||||||
void get_number(basic_json& result) const
|
void get_number(basic_json& result) const
|
||||||
{
|
{
|
||||||
typename string_t::value_type* float_endptr, *endptr;
|
typename string_t::value_type* endptr;
|
||||||
assert(m_start != nullptr);
|
assert(m_start != nullptr);
|
||||||
|
|
||||||
// Parse it as an integer
|
// Parse it as an integer
|
||||||
|
|||||||
@ -534,7 +534,7 @@ class basic_json
|
|||||||
*/
|
*/
|
||||||
using number_integer_t = NumberIntegerType;
|
using number_integer_t = NumberIntegerType;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@brief a type for a number (unsigned)
|
@brief a type for a number (unsigned)
|
||||||
|
|
||||||
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
|
[RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows:
|
||||||
@ -7180,7 +7180,7 @@ class basic_json
|
|||||||
*/
|
*/
|
||||||
void get_number(basic_json& result) const
|
void get_number(basic_json& result) const
|
||||||
{
|
{
|
||||||
typename string_t::value_type* float_endptr, *endptr;
|
typename string_t::value_type* endptr;
|
||||||
assert(m_start != nullptr);
|
assert(m_start != nullptr);
|
||||||
|
|
||||||
// Parse it as an integer
|
// Parse it as an integer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user