MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
RestrictPicojsonParse.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#ifdef __cplusplus
7
8# include <iosfwd>
9# include <string>
10
11# define MXL_PICOJSON_PARSE_DEPRECATED [[deprecated("Use mxl::lib::parseJson() from mxl-internal/JsonUtils.hpp, which applies input limits.")]]
12
13namespace picojson
14{
15 class value;
16
17 template<typename Iter>
18 MXL_PICOJSON_PARSE_DEPRECATED inline std::string parse(value& out, Iter& pos, Iter const& last);
19
20 template<typename Iter>
21 MXL_PICOJSON_PARSE_DEPRECATED inline Iter parse(value& out, Iter const& first, Iter const& last, std::string* err);
22
23 MXL_PICOJSON_PARSE_DEPRECATED inline std::string parse(value& out, std::string const& s);
24
25 MXL_PICOJSON_PARSE_DEPRECATED inline std::string parse(value& out, std::istream& is);
26}
27
28MXL_PICOJSON_PARSE_DEPRECATED inline std::istream& operator>>(std::istream& is, picojson::value& x);
29
30# undef MXL_PICOJSON_PARSE_DEPRECATED
31
32#endif