JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
parse.hpp File Reference

Copyright (c) 2012-2020 by Travis Gockel. More...

#include <jsonv/config.hpp>
#include <optional>
#include <string_view>
#include <jsonv/value.hpp>
#include <cstddef>
#include <stdexcept>
+ Include dependency graph for parse.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jsonv::parse_error
 An error encountered when parsing. More...
 
class  jsonv::parse_options
 Configuration for various parsing options. More...
 
struct  jsonv::parse_options::k
 

Macros

#define JSONV_PARSE_MAX_STRUCTURE_DEPTH   128
 See jsonv::parse_options::k::max_structure_depth.
 

Functions

JSONV_PUBLIC std::ostream & jsonv::operator<< (std::ostream &os, const parse_error &p)
 Get a string representation of a parse_error.
 
JSONV_PUBLIC std::string jsonv::to_string (const parse_error &p)
 Get a string representation of a parse_error.
 
JSONV_PUBLIC value jsonv::parse (std::string_view input, const parse_options &parse_options, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (std::string_view input)
 
JSONV_PUBLIC value jsonv::parse (std::string_view input, const parse_options &parse_options)
 
JSONV_PUBLIC value jsonv::parse (std::string_view input, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (std::istream &input, const parse_options &parse_options, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (std::istream &input)
 
JSONV_PUBLIC value jsonv::parse (std::istream &input, const parse_options &parse_options)
 
JSONV_PUBLIC value jsonv::parse (std::istream &input, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (const char *begin, const char *end, const parse_options &parse_options, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (const char *begin, const char *end, const parse_options &parse_options)
 
JSONV_PUBLIC value jsonv::parse (const char *begin, const char *end, const extract_options &extract_options)
 
JSONV_PUBLIC value jsonv::parse (const char *begin, const char *end)
 

Detailed Description

Copyright (c) 2012-2020 by Travis Gockel.

All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.

Author
Travis Gockel (travi.nosp@m.s@go.nosp@m.ckelh.nosp@m.ut.c.nosp@m.om)

Definition in file parse.hpp.

Macro Definition Documentation

◆ JSONV_PARSE_MAX_STRUCTURE_DEPTH

#define JSONV_PARSE_MAX_STRUCTURE_DEPTH   128

See jsonv::parse_options::k::max_structure_depth.

Definition at line 23 of file parse.hpp.

Function Documentation

◆ parse()

JSONV_PUBLIC value jsonv::parse ( const char begin,
const char end,
const parse_options parse_options,
const extract_options extract_options 
)

Read a JSON value from the string bound by [begin, end).