]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/json/detail/format.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / json / detail / format.hpp
CommitLineData
20effc67
TL
1//
2// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
3//
4// Distributed under the Boost Software License, Version 1.0. (See accompanying
5// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// Official repository: https://github.com/boostorg/json
8//
9
10#ifndef BOOST_JSON_DETAIL_FORMAT_HPP
11#define BOOST_JSON_DETAIL_FORMAT_HPP
12
13BOOST_JSON_NS_BEGIN
14namespace detail {
15
16int constexpr max_number_chars =
17 1 + // '-'
18 19 + // unsigned 64-bit mantissa
19 1 + // 'e'
20 1 + // '-'
21 5; // unsigned 16-bit exponent
22
23BOOST_JSON_DECL
24unsigned
25format_uint64(
26 char* dest,
27 std::uint64_t value) noexcept;
28
29BOOST_JSON_DECL
30unsigned
31format_int64(
32 char* dest, int64_t i) noexcept;
33
34BOOST_JSON_DECL
35unsigned
36format_double(
37 char* dest, double d) noexcept;
38
39} // detail
40BOOST_JSON_NS_END
41
42#endif