mirror of
https://github.com/nlohmann/json.git
synced 2026-10-14 02:07:14 +00:00
Regenerate the amalgamated headers
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
1 parent
40177f491b
commit
8f28e3d459
2 files changed
+1254
-25
No files matched your search
Generated
+55
-23
@@ -3288,6 +3288,39 @@ enum class value_t : std::uint8_t
|
|||||||
discarded ///< discarded by the parser callback function
|
discarded ///< discarded by the parser callback function
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@brief the name of a JSON type, as returned by basic_json::type_name()
|
||||||
|
|
||||||
|
Used in exception messages; also by code that reports types without a
|
||||||
|
basic_json value at hand (such as the zero-copy view).
|
||||||
|
*/
|
||||||
|
inline const char* value_type_name(const value_t t) noexcept
|
||||||
|
{
|
||||||
|
switch (t)
|
||||||
|
{
|
||||||
|
case value_t::null:
|
||||||
|
return "null";
|
||||||
|
case value_t::object:
|
||||||
|
return "object";
|
||||||
|
case value_t::array:
|
||||||
|
return "array";
|
||||||
|
case value_t::string:
|
||||||
|
return "string";
|
||||||
|
case value_t::boolean:
|
||||||
|
return "boolean";
|
||||||
|
case value_t::binary:
|
||||||
|
return "binary";
|
||||||
|
case value_t::discarded:
|
||||||
|
return "discarded";
|
||||||
|
case value_t::number_integer:
|
||||||
|
case value_t::number_unsigned:
|
||||||
|
case value_t::number_float:
|
||||||
|
return "number";
|
||||||
|
default:
|
||||||
|
return "invalid";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@brief comparison operator for JSON types
|
@brief comparison operator for JSON types
|
||||||
|
|
||||||
@@ -20688,6 +20721,11 @@ NLOHMANN_JSON_NAMESPACE_END
|
|||||||
|
|
||||||
NLOHMANN_JSON_NAMESPACE_BEGIN
|
NLOHMANN_JSON_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
namespace detail
|
||||||
|
{
|
||||||
|
struct json_pointer_access;
|
||||||
|
} // namespace detail
|
||||||
|
|
||||||
/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
|
/// @brief JSON Pointer defines a string syntax for identifying a specific value within a JSON document
|
||||||
/// @sa https://json.nlohmann.me/api/json_pointer/
|
/// @sa https://json.nlohmann.me/api/json_pointer/
|
||||||
template<typename RefStringType>
|
template<typename RefStringType>
|
||||||
@@ -20700,6 +20738,8 @@ class json_pointer
|
|||||||
template<typename>
|
template<typename>
|
||||||
friend class json_pointer;
|
friend class json_pointer;
|
||||||
|
|
||||||
|
friend struct detail::json_pointer_access;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
struct string_t_helper
|
struct string_t_helper
|
||||||
{
|
{
|
||||||
@@ -21958,6 +21998,20 @@ inline bool operator<(const json_pointer<RefStringTypeLhs>& lhs,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace detail
|
||||||
|
{
|
||||||
|
/// the reference tokens of a json_pointer, for code that resolves pointers
|
||||||
|
/// without a basic_json value (such as the zero-copy view)
|
||||||
|
struct json_pointer_access
|
||||||
|
{
|
||||||
|
template<typename RefStringType>
|
||||||
|
static const std::vector<typename json_pointer<RefStringType>::string_t>& reference_tokens(const json_pointer<RefStringType>& ptr) noexcept
|
||||||
|
{
|
||||||
|
return ptr.reference_tokens;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} // namespace detail
|
||||||
|
|
||||||
NLOHMANN_JSON_NAMESPACE_END
|
NLOHMANN_JSON_NAMESPACE_END
|
||||||
|
|
||||||
// #include <nlohmann/detail/json_ref.hpp>
|
// #include <nlohmann/detail/json_ref.hpp>
|
||||||
@@ -35225,29 +35279,7 @@ public:
|
|||||||
JSON_HEDLEY_RETURNS_NON_NULL
|
JSON_HEDLEY_RETURNS_NON_NULL
|
||||||
const char* type_name() const noexcept
|
const char* type_name() const noexcept
|
||||||
{
|
{
|
||||||
switch (m_data.m_type)
|
return detail::value_type_name(m_data.m_type);
|
||||||
{
|
|
||||||
case value_t::null:
|
|
||||||
return "null";
|
|
||||||
case value_t::object:
|
|
||||||
return "object";
|
|
||||||
case value_t::array:
|
|
||||||
return "array";
|
|
||||||
case value_t::string:
|
|
||||||
return "string";
|
|
||||||
case value_t::boolean:
|
|
||||||
return "boolean";
|
|
||||||
case value_t::binary:
|
|
||||||
return "binary";
|
|
||||||
case value_t::discarded:
|
|
||||||
return "discarded";
|
|
||||||
case value_t::number_integer:
|
|
||||||
case value_t::number_unsigned:
|
|
||||||
case value_t::number_float:
|
|
||||||
return "number";
|
|
||||||
default:
|
|
||||||
return "invalid";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JSON_PRIVATE_UNLESS_TESTED:
|
JSON_PRIVATE_UNLESS_TESTED:
|
||||||
|
|||||||
Generated
+1199
-2
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user