Home
last modified time | relevance | path

Searched refs:error_handler_t (Results 1 - 14 of 14) sorted by relevance

/third_party/json/tests/src/
H A Dunit-serialization.cpp87 CHECK_THROWS_WITH_AS(j.dump(1, ' ', false, json::error_handler_t::strict), "[json.exception.type_error.316] invalid UTF-8 byte at index 2: 0xA9", json::type_error&);
88 CHECK(j.dump(-1, ' ', false, json::error_handler_t::ignore) == "\"äü\"");
89 CHECK(j.dump(-1, ' ', false, json::error_handler_t::replace) == "\"ä\xEF\xBF\xBDü\"");
90 CHECK(j.dump(-1, ' ', true, json::error_handler_t::replace) == "\"\\u00e4\\ufffd\\u00fc\"");
98 CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&);
99 CHECK(j.dump(-1, ' ', false, json::error_handler_t::ignore) == "\"123\"");
100 CHECK(j.dump(-1, ' ', false, json::error_handler_t::replace) == "\"123\xEF\xBF\xBD\"");
101 CHECK(j.dump(-1, ' ', true, json::error_handler_t::replace) == "\"123\\ufffd\"");
109 CHECK_THROWS_AS(j.dump(1, ' ', false, json::error_handler_t::strict), json::type_error&);
110 CHECK(j.dump(-1, ' ', false, json::error_handler_t
[all...]
H A Dunit-unicode4.cpp79 s_ignored = j.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
80 s_ignored2 = j2.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
81 s_ignored_ascii = j.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
82 s_ignored2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
83 s_replaced = j.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
84 s_replaced2 = j2.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
85 s_replaced_ascii = j.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
86 s_replaced2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
H A Dunit-unicode5.cpp79 s_ignored = j.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
80 s_ignored2 = j2.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
81 s_ignored_ascii = j.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
82 s_ignored2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
83 s_replaced = j.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
84 s_replaced2 = j2.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
85 s_replaced_ascii = j.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
86 s_replaced2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
H A Dunit-unicode3.cpp79 s_ignored = j.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
80 s_ignored2 = j2.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
81 s_ignored_ascii = j.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
82 s_ignored2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
83 s_replaced = j.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
84 s_replaced2 = j2.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
85 s_replaced_ascii = j.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
86 s_replaced2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
H A Dunit-unicode2.cpp79 s_ignored = j.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
80 s_ignored2 = j2.dump(-1, ' ', false, json::error_handler_t::ignore); in check_utf8dump()
81 s_ignored_ascii = j.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
82 s_ignored2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::ignore); in check_utf8dump()
83 s_replaced = j.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
84 s_replaced2 = j2.dump(-1, ' ', false, json::error_handler_t::replace); in check_utf8dump()
85 s_replaced_ascii = j.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
86 s_replaced2_ascii = j2.dump(-1, ' ', true, json::error_handler_t::replace); in check_utf8dump()
H A Dunit-regression2.cpp476 auto s = dump_test.dump(-1, ' ', true, nlohmann::json::error_handler_t::replace);
493 auto s = dump_test.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace);
509 dump_test.dump(-1, ' ', true, nlohmann::json::error_handler_t::replace);
605 json::error_handler_t::strict // Error
H A Dunit-cbor.cpp1560 CAPTURE(j.dump(0, ' ', false, json::error_handler_t::strict))
/third_party/json/include/nlohmann/detail/output/
H A Dserializer.hpp43 enum class error_handler_t class
68 error_handler_t error_handler_ = error_handler_t::strict) in serializer()
511 case error_handler_t::strict: in dump_escaped()
516 case error_handler_t::ignore: in dump_escaped()
517 case error_handler_t::replace: in dump_escaped()
532 if (error_handler == error_handler_t::replace) in dump_escaped()
603 case error_handler_t::strict: in dump_escaped()
608 case error_handler_t::ignore: in dump_escaped()
615 case error_handler_t in dump_escaped()
67 serializer(output_adapter_t<char> s, const char ichar, error_handler_t error_handler_ = error_handler_t::strict) serializer() argument
[all...]
/third_party/json/docs/examples/
H A Derror_handler_t.cpp20 << j_invalid.dump(-1, ' ', false, json::error_handler_t::replace) in main()
22 << j_invalid.dump(-1, ' ', false, json::error_handler_t::ignore) in main()
H A Ddump.cpp44 << j_invalid.dump(-1, ' ', false, json::error_handler_t::replace) in main()
46 << j_invalid.dump(-1, ' ', false, json::error_handler_t::ignore) in main()
/third_party/json/include/nlohmann/
H A Djson.hpp166 using error_handler_t = detail::error_handler_t;
1262 const error_handler_t error_handler = error_handler_t::strict) const in dump()
/third_party/json/docs/docset/
H A DdocSet.sql42 INSERT INTO searchIndex(name, type, path) VALUES ('basic_json::error_handler_t', 'Enum', 'api/basic_json/error_handler_t/index.html');
/third_party/json/tests/abi/include/nlohmann/
H A Djson_v3_10_5.hpp16077 enum class error_handler_t
16102 error_handler_t error_handler_ = error_handler_t::strict)
16545 case error_handler_t::strict:
16552 case error_handler_t::ignore:
16553 case error_handler_t::replace:
16568 if (error_handler == error_handler_t::replace)
16639 case error_handler_t::strict:
16646 case error_handler_t::ignore:
16653 case error_handler_t
[all...]
/third_party/json/single_include/nlohmann/
H A Djson.hpp17927 enum class error_handler_t
17952 error_handler_t error_handler_ = error_handler_t::strict)
18395 case error_handler_t::strict:
18400 case error_handler_t::ignore:
18401 case error_handler_t::replace:
18416 if (error_handler == error_handler_t::replace)
18487 case error_handler_t::strict:
18492 case error_handler_t::ignore:
18499 case error_handler_t
[all...]

Completed in 64 milliseconds