NeBuild dev
Loading...
Searching...
No Matches
print_to_stream.inl File Reference
#include "preprocessor.hpp"
#include "array.hpp"
#include "date_time.hpp"
#include "print_to_stream.hpp"
#include "source_region.hpp"
#include "table.hpp"
#include "toml_formatter.hpp"
#include "value.hpp"
#include <ostream>
#include <sstream>
#include <iomanip>
#include "header_start.hpp"
#include "header_end.hpp"

Go to the source code of this file.

Functions

template<typename T >
TOML_INTERNAL_LINKAGE void print_integer_to_stream (std::ostream &stream, T val, value_flags format={}, size_t min_digits=0)
 
template<typename T >
TOML_INTERNAL_LINKAGE void print_floating_point_to_stream (std::ostream &stream, T val, value_flags format, bool relaxed_precision)
 

Variables

 TOML_DISABLE_WARNINGS
 
 TOML_ENABLE_WARNINGS
 
 TOML_ANON_NAMESPACE_START
 
template<>
constexpr size_t charconv_buffer_length< int8_t > = 4
 
template<>
constexpr size_t charconv_buffer_length< int16_t > = 6
 
template<>
constexpr size_t charconv_buffer_length< int32_t > = 11
 
template<>
constexpr size_t charconv_buffer_length< int64_t > = 20
 
template<>
constexpr size_t charconv_buffer_length< uint8_t > = 3
 
template<>
constexpr size_t charconv_buffer_length< uint16_t > = 5
 
template<>
constexpr size_t charconv_buffer_length< uint32_t > = 10
 
template<>
constexpr size_t charconv_buffer_length< uint64_t > = 20
 
template<>
constexpr size_t charconv_buffer_length< float > = 64
 
template<>
constexpr size_t charconv_buffer_length< double > = 64
 
 TOML_ANON_NAMESPACE_END
 
 TOML_IMPL_NAMESPACE_START
 

Function Documentation

◆ print_floating_point_to_stream()

template<typename T >
TOML_INTERNAL_LINKAGE void print_floating_point_to_stream ( std::ostream &  stream,
val,
value_flags  format,
bool  relaxed_precision 
)

◆ print_integer_to_stream()

template<typename T >
TOML_INTERNAL_LINKAGE void print_integer_to_stream ( std::ostream &  stream,
val,
value_flags  format = {},
size_t  min_digits = 0 
)

Variable Documentation

◆ charconv_buffer_length< double >

template<>
constexpr size_t charconv_buffer_length< double > = 64
inlineconstexpr

◆ charconv_buffer_length< float >

template<>
constexpr size_t charconv_buffer_length< float > = 64
inlineconstexpr

◆ charconv_buffer_length< int16_t >

template<>
constexpr size_t charconv_buffer_length< int16_t > = 6
inlineconstexpr

◆ charconv_buffer_length< int32_t >

template<>
constexpr size_t charconv_buffer_length< int32_t > = 11
inlineconstexpr

◆ charconv_buffer_length< int64_t >

template<>
constexpr size_t charconv_buffer_length< int64_t > = 20
inlineconstexpr

◆ charconv_buffer_length< int8_t >

template<>
constexpr size_t charconv_buffer_length< int8_t > = 4
inlineconstexpr

◆ charconv_buffer_length< uint16_t >

template<>
constexpr size_t charconv_buffer_length< uint16_t > = 5
inlineconstexpr

◆ charconv_buffer_length< uint32_t >

template<>
constexpr size_t charconv_buffer_length< uint32_t > = 10
inlineconstexpr

◆ charconv_buffer_length< uint64_t >

template<>
constexpr size_t charconv_buffer_length< uint64_t > = 20
inlineconstexpr

◆ charconv_buffer_length< uint8_t >

template<>
constexpr size_t charconv_buffer_length< uint8_t > = 3
inlineconstexpr

◆ TOML_ANON_NAMESPACE_END

TOML_ANON_NAMESPACE_END

◆ TOML_ANON_NAMESPACE_START

TOML_ANON_NAMESPACE_START
Initial value:
{
template <typename T>
inline constexpr size_t charconv_buffer_length = 0

◆ TOML_DISABLE_WARNINGS

TOML_DISABLE_WARNINGS

◆ TOML_ENABLE_WARNINGS

TOML_ENABLE_WARNINGS

◆ TOML_IMPL_NAMESPACE_START

TOML_IMPL_NAMESPACE_START