8602 {
8603 if (JSON_HEDLEY_UNLIKELY(len < 1))
8604 {
8607 }
8608
8609 return get_string(input_format_t::bson, len -
static_cast<NumberType
>(1), result) &&
get() != std::char_traits<char_type>::eof();
8610 }
bool get_string(const input_format_t format, const NumberType len, string_t &result)
create a string by reading characters from the input
std::string get_token_string() const
std::string exception_message(const input_format_t format, const std::string &detail, const std::string &context) const
std::size_t chars_read
the number of characters read
json_sax_t * sax
the SAX parser
char_int_type get()
get next character from the input
static parse_error create(int id_, const position_t &pos, const std::string &what_arg, const BasicJsonType &context)
create a parse error exception