]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/json/detail/format.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / json / detail / format.hpp
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
13 BOOST_JSON_NS_BEGIN
14 namespace detail {
15
16 int constexpr max_number_chars =
17 1 + // '-'
18 19 + // unsigned 64-bit mantissa
19 1 + // 'e'
20 1 + // '-'
21 5; // unsigned 16-bit exponent
22
23 BOOST_JSON_DECL
24 unsigned
25 format_uint64(
26 char* dest,
27 std::uint64_t value) noexcept;
28
29 BOOST_JSON_DECL
30 unsigned
31 format_int64(
32 char* dest, int64_t i) noexcept;
33
34 BOOST_JSON_DECL
35 unsigned
36 format_double(
37 char* dest, double d) noexcept;
38
39 } // detail
40 BOOST_JSON_NS_END
41
42 #endif