Skip to content

Commit 4a7fde5

Browse files
committed
multi dim cbor tests
1 parent 9512eb6 commit 4a7fde5

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

include/jsoncons_ext/cbor/cbor_parser.hpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ class basic_cbor_parser : public ser_context
477477
{
478478
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
479479
{
480-
uint64_t val = read_uint64_value(ec);
480+
uint64_t val = read_uint64(ec);
481481
if (JSONCONS_UNLIKELY(ec))
482482
{
483483
return;
@@ -543,7 +543,7 @@ class basic_cbor_parser : public ser_context
543543
}
544544
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
545545
{
546-
int64_t val = read_int64_value(ec);
546+
int64_t val = read_int64(ec);
547547
if (JSONCONS_UNLIKELY(ec))
548548
{
549549
return;
@@ -625,7 +625,7 @@ class basic_cbor_parser : public ser_context
625625
break;
626626
case 0x19: // Half-Precision Float (two-byte IEEE 754)
627627
{
628-
uint64_t val = read_uint64_value(ec);
628+
uint64_t val = read_uint64(ec);
629629
if (JSONCONS_UNLIKELY(ec))
630630
{
631631
return;
@@ -637,7 +637,7 @@ class basic_cbor_parser : public ser_context
637637
case 0x1a: // Single-Precision Float (four-byte IEEE 754)
638638
case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
639639
{
640-
double val = read_double_value(ec);
640+
double val = read_double(ec);
641641
if (JSONCONS_UNLIKELY(ec))
642642
{
643643
return;
@@ -872,7 +872,7 @@ class basic_cbor_parser : public ser_context
872872

873873
std::size_t read_size(std::error_code& ec)
874874
{
875-
uint64_t u = read_uint64_value(ec);
875+
uint64_t u = read_uint64(ec);
876876
if (JSONCONS_UNLIKELY(ec))
877877
{
878878
return 0;
@@ -1004,7 +1004,7 @@ class basic_cbor_parser : public ser_context
10041004
}
10051005
}
10061006

1007-
uint64_t read_uint64_value(std::error_code& ec)
1007+
uint64_t read_uint64(std::error_code& ec)
10081008
{
10091009
uint64_t val = 0;
10101010

@@ -1066,7 +1066,7 @@ class basic_cbor_parser : public ser_context
10661066
return val;
10671067
}
10681068

1069-
int64_t read_int64_value(std::error_code& ec)
1069+
int64_t read_int64(std::error_code& ec)
10701070
{
10711071
int64_t val = 0;
10721072

@@ -1150,7 +1150,7 @@ class basic_cbor_parser : public ser_context
11501150

11511151
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
11521152
{
1153-
uint64_t x = read_uint64_value(ec);
1153+
uint64_t x = read_uint64(ec);
11541154
if (JSONCONS_UNLIKELY(ec))
11551155
{
11561156
return 0;
@@ -1174,7 +1174,7 @@ class basic_cbor_parser : public ser_context
11741174
return val;
11751175
}
11761176

1177-
double read_double_value(std::error_code& ec)
1177+
double read_double(std::error_code& ec)
11781178
{
11791179
double val = 0;
11801180

@@ -1246,7 +1246,7 @@ class basic_cbor_parser : public ser_context
12461246
{
12471247
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
12481248
{
1249-
exponent = read_uint64_value(ec);
1249+
exponent = read_uint64(ec);
12501250
if (JSONCONS_UNLIKELY(ec))
12511251
{
12521252
return;
@@ -1255,7 +1255,7 @@ class basic_cbor_parser : public ser_context
12551255
}
12561256
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
12571257
{
1258-
exponent = read_int64_value(ec);
1258+
exponent = read_int64(ec);
12591259
if (JSONCONS_UNLIKELY(ec))
12601260
{
12611261
return;
@@ -1284,7 +1284,7 @@ class basic_cbor_parser : public ser_context
12841284
{
12851285
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
12861286
{
1287-
uint64_t val = read_uint64_value(ec);
1287+
uint64_t val = read_uint64(ec);
12881288
if (JSONCONS_UNLIKELY(ec))
12891289
{
12901290
return;
@@ -1294,7 +1294,7 @@ class basic_cbor_parser : public ser_context
12941294
}
12951295
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
12961296
{
1297-
int64_t val = read_int64_value(ec);
1297+
int64_t val = read_int64(ec);
12981298
if (JSONCONS_UNLIKELY(ec))
12991299
{
13001300
return;
@@ -1405,7 +1405,7 @@ class basic_cbor_parser : public ser_context
14051405
{
14061406
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
14071407
{
1408-
exponent = read_uint64_value(ec);
1408+
exponent = read_uint64(ec);
14091409
if (JSONCONS_UNLIKELY(ec))
14101410
{
14111411
return;
@@ -1414,7 +1414,7 @@ class basic_cbor_parser : public ser_context
14141414
}
14151415
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
14161416
{
1417-
exponent = read_int64_value(ec);
1417+
exponent = read_int64(ec);
14181418
if (JSONCONS_UNLIKELY(ec))
14191419
{
14201420
return;
@@ -1440,7 +1440,7 @@ class basic_cbor_parser : public ser_context
14401440
{
14411441
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
14421442
{
1443-
uint64_t val = read_uint64_value(ec);
1443+
uint64_t val = read_uint64(ec);
14441444
if (JSONCONS_UNLIKELY(ec))
14451445
{
14461446
return;
@@ -1452,7 +1452,7 @@ class basic_cbor_parser : public ser_context
14521452
}
14531453
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
14541454
{
1455-
int64_t val = read_int64_value(ec);
1455+
int64_t val = read_int64(ec);
14561456
if (JSONCONS_UNLIKELY(ec))
14571457
{
14581458
return;
@@ -1557,7 +1557,7 @@ class basic_cbor_parser : public ser_context
15571557

15581558
while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
15591559
{
1560-
uint64_t val = read_uint64_value(ec);
1560+
uint64_t val = read_uint64(ec);
15611561
if (JSONCONS_UNLIKELY(ec))
15621562
{
15631563
return;

0 commit comments

Comments
 (0)