@@ -82,19 +82,19 @@ struct ValueTest : JsonTest::TestCase {
82
82
// / Initialize all checks to \c false by default.
83
83
IsCheck ();
84
84
85
- bool isObject_{ false };
86
- bool isArray_{ false };
87
- bool isBool_{ false };
88
- bool isString_{ false };
89
- bool isNull_{ false };
90
-
91
- bool isInt_{ false };
92
- bool isInt64_{ false };
93
- bool isUInt_{ false };
94
- bool isUInt64_{ false };
95
- bool isIntegral_{ false };
96
- bool isDouble_{ false };
97
- bool isNumeric_{ false };
85
+ bool isObject_{false };
86
+ bool isArray_{false };
87
+ bool isBool_{false };
88
+ bool isString_{false };
89
+ bool isNull_{false };
90
+
91
+ bool isInt_{false };
92
+ bool isInt64_{false };
93
+ bool isUInt_{false };
94
+ bool isUInt64_{false };
95
+ bool isIntegral_{false };
96
+ bool isDouble_{false };
97
+ bool isNumeric_{false };
98
98
};
99
99
100
100
void checkConstMemberCount (const Json::Value& value,
@@ -120,10 +120,11 @@ Json::String ValueTest::normalizeFloatingPointStr(const Json::String& s) {
120
120
(s[index + 1 ] == ' +' || s[index + 1 ] == ' -' ) ? 1 : 0 ;
121
121
Json::String::size_type exponentStartIndex = index + 1 + hasSign;
122
122
Json::String normalized = s.substr (0 , exponentStartIndex);
123
- Json::String::size_type indexDigit = s.find_first_not_of (' 0' , exponentStartIndex);
123
+ Json::String::size_type indexDigit =
124
+ s.find_first_not_of (' 0' , exponentStartIndex);
124
125
Json::String exponent = " 0" ;
125
126
if (indexDigit != Json::String::npos) // There is an exponent different
126
- // from 0
127
+ // from 0
127
128
{
128
129
exponent = s.substr (indexDigit);
129
130
}
@@ -2353,22 +2354,22 @@ JSONTEST_FIXTURE(CharReaderAllowSpecialFloatsTest, issue209) {
2353
2354
Json::String in;
2354
2355
};
2355
2356
const TestData test_data[] = {
2356
- { __LINE__, true , " {\" a\" :9}" }, //
2357
- { __LINE__, false , " {\" a\" :0Infinity}" }, //
2358
- { __LINE__, false , " {\" a\" :1Infinity}" }, //
2359
- { __LINE__, false , " {\" a\" :9Infinity}" }, //
2360
- { __LINE__, false , " {\" a\" :0nfinity}" }, //
2361
- { __LINE__, false , " {\" a\" :1nfinity}" }, //
2362
- { __LINE__, false , " {\" a\" :9nfinity}" }, //
2363
- { __LINE__, false , " {\" a\" :nfinity}" }, //
2364
- { __LINE__, false , " {\" a\" :.nfinity}" }, //
2365
- { __LINE__, false , " {\" a\" :9nfinity}" }, //
2366
- { __LINE__, false , " {\" a\" :-nfinity}" }, //
2367
- { __LINE__, true , " {\" a\" :Infinity}" }, //
2368
- { __LINE__, false , " {\" a\" :.Infinity}" }, //
2369
- { __LINE__, false , " {\" a\" :_Infinity}" }, //
2370
- { __LINE__, false , " {\" a\" :_nfinity}" }, //
2371
- { __LINE__, true , " {\" a\" :-Infinity}" } //
2357
+ { __LINE__, true , " {\" a\" :9}" }, //
2358
+ { __LINE__, false , " {\" a\" :0Infinity}" }, //
2359
+ { __LINE__, false , " {\" a\" :1Infinity}" }, //
2360
+ { __LINE__, false , " {\" a\" :9Infinity}" }, //
2361
+ { __LINE__, false , " {\" a\" :0nfinity}" }, //
2362
+ { __LINE__, false , " {\" a\" :1nfinity}" }, //
2363
+ { __LINE__, false , " {\" a\" :9nfinity}" }, //
2364
+ { __LINE__, false , " {\" a\" :nfinity}" }, //
2365
+ { __LINE__, false , " {\" a\" :.nfinity}" }, //
2366
+ { __LINE__, false , " {\" a\" :9nfinity}" }, //
2367
+ { __LINE__, false , " {\" a\" :-nfinity}" }, //
2368
+ { __LINE__, true , " {\" a\" :Infinity}" }, //
2369
+ { __LINE__, false , " {\" a\" :.Infinity}" }, //
2370
+ { __LINE__, false , " {\" a\" :_Infinity}" }, //
2371
+ { __LINE__, false , " {\" a\" :_nfinity}" }, //
2372
+ { __LINE__, true , " {\" a\" :-Infinity}" } //
2372
2373
};
2373
2374
for (const auto & td : test_data) {
2374
2375
bool ok = reader->parse (&*td.in .begin (), &*td.in .begin () + td.in .size (),
0 commit comments