MCPcopy Create free account
hub / github.com/boostorg/json / handler

Class handler

test/test.hpp:151–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149class null_parser
150{
151 struct handler
152 {
153 constexpr static std::size_t max_object_size = std::size_t(-1);
154 constexpr static std::size_t max_array_size = std::size_t(-1);
155 constexpr static std::size_t max_key_size = std::size_t(-1);
156 constexpr static std::size_t max_string_size = std::size_t(-1);
157
158 bool on_document_begin( system::error_code& ) { return true; }
159 bool on_document_end( system::error_code& ) { return true; }
160 bool on_object_begin( system::error_code& ) { return true; }
161 bool on_object_end( std::size_t, system::error_code& ) { return true; }
162 bool on_array_begin( system::error_code& ) { return true; }
163 bool on_array_end( std::size_t, system::error_code& ) { return true; }
164 bool on_key_part( string_view, std::size_t, system::error_code& ) { return true; }
165 bool on_key( string_view, std::size_t, system::error_code& ) { return true; }
166 bool on_string_part( string_view, std::size_t, system::error_code& ) { return true; }
167 bool on_string( string_view, std::size_t, system::error_code& ) { return true; }
168 bool on_number_part( string_view, system::error_code&) { return true; }
169 bool on_int64( std::int64_t, string_view, system::error_code& ) { return true; }
170 bool on_uint64( std::uint64_t, string_view, system::error_code& ) { return true; }
171 bool on_double( double, string_view, system::error_code& ) { return true; }
172 bool on_bool( bool, system::error_code& ) { return true; }
173 bool on_null( system::error_code& ) { return true; }
174 bool on_comment_part( string_view, system::error_code& ) { return true; }
175 bool on_comment( string_view, system::error_code& ) { return true; }
176 };
177
178 basic_parser<handler> p_;
179

Callers 1

do_rpcFunction · 0.70

Calls 1

size_tClass · 0.85

Tested by

no test coverage detected