8 #ifndef INCLUDED_ORCUS_JSON_PARSER_BASE_HPP
9 #define INCLUDED_ORCUS_JSON_PARSER_BASE_HPP
11 #include "orcus/parser_base.hpp"
12 #include "orcus/parser_global.hpp"
16 namespace orcus {
namespace json {
21 parse_error(
const std::string& msg, std::ptrdiff_t offset);
23 static void throw_with(
24 const char* msg_before,
char c,
const char* msg_after, std::ptrdiff_t offset);
26 static void throw_with(
27 const char* msg_before,
const char* p,
size_t n,
const char* msg_after, std::ptrdiff_t offset);
33 std::unique_ptr<impl> mp_impl;
48 double parse_double_or_throw();