mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
♻️ refactored SAX parser
This commit is contained in:
@ -1105,7 +1105,7 @@ class basic_json
|
||||
*/
|
||||
using parser_callback_t = typename parser::parser_callback_t;
|
||||
|
||||
using SAX = typename parser::SAX;
|
||||
using json_sax = typename parser::json_sax;
|
||||
|
||||
//////////////////
|
||||
// constructors //
|
||||
@ -5926,12 +5926,12 @@ class basic_json
|
||||
return parser(i).accept(true);
|
||||
}
|
||||
|
||||
static bool sax_parse(detail::input_adapter i, SAX* sax)
|
||||
static bool sax_parse(detail::input_adapter i, json_sax* sax)
|
||||
{
|
||||
return parser(i, sax).sax_parse();
|
||||
}
|
||||
|
||||
static bool sax_parse(detail::input_adapter& i, SAX* sax)
|
||||
static bool sax_parse(detail::input_adapter& i, json_sax* sax)
|
||||
{
|
||||
return parser(i, sax).sax_parse();
|
||||
}
|
||||
@ -6009,7 +6009,7 @@ class basic_json
|
||||
std::is_base_of<
|
||||
std::random_access_iterator_tag,
|
||||
typename std::iterator_traits<IteratorType>::iterator_category>::value, int>::type = 0>
|
||||
static bool sax_parse(IteratorType first, IteratorType last, SAX* sax)
|
||||
static bool sax_parse(IteratorType first, IteratorType last, json_sax* sax)
|
||||
{
|
||||
return parser(detail::input_adapter(first, last), sax).sax_parse();
|
||||
}
|
||||
|
Reference in New Issue
Block a user