Lines Matching defs:string
50 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/)
55 bool string(std::string& /*unused*/)
70 bool key(std::string& /*unused*/)
90 bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*unused*/) // NOLINT(readability-convert-member-functions-to-static)
1069 SECTION("string")
1077 // create JSON value with string containing of N * 'x'
1078 const auto s = std::string(N, 'x');
1111 // create JSON value with string containing of N * 'x'
1112 const auto s = std::string(N, 'x');
1146 // create JSON value with string containing of N * 'x'
1147 const auto s = std::string(N, 'x');
1150 // create expected byte vector (hack: create string first)
1179 // create JSON value with string containing of N * 'x'
1180 const auto s = std::string(N, 'x');
1183 // create expected byte vector (hack: create string first)
1336 // each entry will need 7 bytes: 6 for string, 1 for null
1363 // each entry will need 7 bytes: 6 for string, 1 for null
1392 // each entry will need 7 bytes: 6 for string, 1 for null
1460 // create JSON value with string containing of N * 'x'
1495 // create JSON value with string containing of N * 'x'
1499 // create expected byte vector (hack: create string first)
1528 // create JSON value with string containing of N * 'x'
1532 // create expected byte vector (hack: create string first)
1574 // object mapping "foo" to empty byte string
1582 // object mapping "foo" to byte string
1616 SECTION("0x7b (string)")
1671 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0x62})), "[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing CBOR string: unexpected end of input", json::parse_error&);
1672 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0x62, 0x60})), "[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing CBOR string: unexpected end of input", json::parse_error&);
1673 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0x7F})), "[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing CBOR string: unexpected end of input", json::parse_error&);
1674 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0x7F, 0x60})), "[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing CBOR string: unexpected end of input", json::parse_error&);
1677 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0xBF, 0x61, 0x61, 0xF5})), "[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing CBOR string: unexpected end of input", json::parse_error&);
1772 SECTION("invalid string in map")
1775 CHECK_THROWS_WITH_AS(_ = json::from_cbor(std::vector<uint8_t>({0xa1, 0xff, 0x01})), "[json.exception.parse_error.113] parse error at byte 2: syntax error while parsing CBOR string: expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0xFF", json::parse_error&);
1828 std::string filename = TEST_DATA_DIRECTORY "/json_testsuite/sample.json";
1852 SECTION("std::string")
1854 std::string s;
1877 for (std::string filename :
1941 std::set<std::string> exclude_packed;
1954 for (std::string filename :
2003 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_empty-string.json",