Lines Matching defs:bom
878 std::string bom = "\xEF\xBB\xBF";
883 CHECK_THROWS_WITH_AS(_ = json::parse(bom), "[json.exception.parse_error.101] parse error at line 1, column 4: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal", json::parse_error&);
885 CHECK_THROWS_WITH_AS(_ = json::parse(std::istringstream(bom)), "[json.exception.parse_error.101] parse error at line 1, column 4: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal", json::parse_error&);
888 CHECK(!json::sax_parse(bom, &l));
898 CHECK(json::parse(bom + "1") == 1);
899 CHECK(json::parse(std::istringstream(bom + "1")) == 1);
903 CHECK(json::sax_parse(std::istringstream(bom + "1"), &l1));
904 CHECK(json::sax_parse(bom + "1", &l2));
920 CHECK_THROWS_WITH_AS(_ = json::parse(bom.substr(0, 2)), "[json.exception.parse_error.101] parse error at line 1, column 3: syntax error while parsing value - invalid BOM; must be 0xEF 0xBB 0xBF if given; last read: '\xEF\xBB'", json::parse_error&);
922 CHECK_THROWS_WITH_AS(_ = json::parse(std::istringstream(bom.substr(0, 2))), "[json.exception.parse_error.101] parse error at line 1, column 3: syntax error while parsing value - invalid BOM; must be 0xEF 0xBB 0xBF if given; last read: '\xEF\xBB'", json::parse_error&);
926 CHECK(!json::sax_parse(std::istringstream(bom.substr(0, 2)), &l1));
927 CHECK(!json::sax_parse(bom.substr(0, 2), &l2));
943 CHECK_THROWS_WITH_AS(_ = json::parse(bom.substr(0, 1)), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid BOM; must be 0xEF 0xBB 0xBF if given; last read: '\xEF'", json::parse_error&);
945 CHECK_THROWS_WITH_AS(_ = json::parse(std::istringstream(bom.substr(0, 1))), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid BOM; must be 0xEF 0xBB 0xBF if given; last read: '\xEF'", json::parse_error&);
949 CHECK(!json::sax_parse(std::istringstream(bom.substr(0, 1)), &l1));
950 CHECK(!json::sax_parse(bom.substr(0, 1), &l2));
979 s.push_back(static_cast<char>(bom[0] + i0));
980 s.push_back(static_cast<char>(bom[1] + i1));
981 s.push_back(static_cast<char>(bom[2] + i2));
1037 std::istringstream s(bom + "123 456");