Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:59

0001 //
0002 // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // Official repository: https://github.com/boostorg/json
0008 //
0009 
0010 #ifndef BOOST_JSON_DETAIL_FORMAT_HPP
0011 #define BOOST_JSON_DETAIL_FORMAT_HPP
0012 
0013 namespace boost {
0014 namespace json {
0015 namespace detail {
0016 
0017 int constexpr max_number_chars =
0018      1 +    // '-'
0019     19 +    // unsigned 64-bit mantissa
0020      1 +    // 'e'
0021      1 +    // '-'
0022      5;     // unsigned 16-bit exponent
0023 
0024 BOOST_JSON_DECL
0025 unsigned
0026 format_uint64(
0027     char* dest,
0028     std::uint64_t value) noexcept;
0029 
0030 BOOST_JSON_DECL
0031 unsigned
0032 format_int64(
0033     char* dest, int64_t i) noexcept;
0034 
0035 BOOST_JSON_DECL
0036 unsigned
0037 format_double(
0038     char* dest, double d, bool allow_infinity_and_nan = false) noexcept;
0039 
0040 } // detail
0041 } // namespace json
0042 } // namespace boost
0043 
0044 #endif