Lines Matching defs:string

52     bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/)
57 bool string(std::string& /*unused*/)
72 bool key(std::string& /*unused*/)
92 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static)
128 std::string of_type_str;
138 std::string type_str;
1275 // error while parsing string
1290 SECTION("string")
1298 // create JSON value with string containing of N * 'x'
1299 const auto s = std::string(N, 'x');
1334 // create JSON value with string containing of N * 'x'
1335 const auto s = std::string(N, 'x');
1370 // create JSON value with string containing of N * 'x'
1371 const auto s = std::string(N, 'x');
1374 // create expected byte vector (hack: create string first)
1404 // create JSON value with string containing of N * 'x'
1405 const auto s = std::string(N, 'x');
1408 // create expected byte vector (hack: create string first)
1438 // create JSON value with string containing of N * 'x'
1439 const auto s = std::string(N, 'x');
1442 // create expected byte vector (hack: create string first)
2194 SECTION("string() in ndarray _ArrayType_")
2208 SECTION("string() in ndarray _ArrayData_")
2215 SECTION("string() in ndarray _ArrayType_")
2234 // create a single-character string for all number types
2244 // check if string is parsed correctly to "a"
2334 CHECK(json::to_bjdata(json::from_bjdata(v_C), true) == v_S); // char is serialized to string
2377 CHECK(json::to_bjdata(json::from_bjdata(v_C), true, true) == v_S); // char is serialized to string
2575 CHECK_THROWS_WITH_AS(_ = json::from_bjdata(v), "[json.exception.parse_error.113] parse error at byte 2: syntax error while parsing BJData string: expected length type specification (U, i, u, I, m, l, M, L); last byte: 0x31", json::parse_error&);
2580 // create a single-character string for all number types
2586 // check if string is parsed correctly to "a"
2587 CHECK_THROWS_WITH_AS(_ = json::from_ubjson(s_u), "[json.exception.parse_error.113] parse error at byte 2: syntax error while parsing UBJSON string: expected length type specification (U, i, I, l, L); last byte: 0x75", json::parse_error&);
2588 CHECK_THROWS_WITH_AS(_ = json::from_ubjson(s_m), "[json.exception.parse_error.113] parse error at byte 2: syntax error while parsing UBJSON string: expected length type specification (U, i, I, l, L); last byte: 0x6D", json::parse_error&);
2589 CHECK_THROWS_WITH_AS(_ = json::from_ubjson(s_M), "[json.exception.parse_error.113] parse error at byte 2: syntax error while parsing UBJSON string: expected length type specification (U, i, I, l, L); last byte: 0x4D", json::parse_error&);
2728 CHECK_THROWS_WITH_AS(_ = json::from_bjdata(v), "[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing BJData string: unexpected end of input", json::parse_error&);
3453 for (std::string filename :