Loading...
Searching...
No Matches
to_string_helper.h File Reference
`#include "../platform.h"`
`#include "../absolute.h"`
`#include "../algorithm.h"`
`#include "../basic_format_spec.h"`
`#include "../container.h"`
`#include "../iterator.h"`
`#include "../limits.h"`
`#include "../math.h"`
`#include "../negative.h"`
`#include "../type_traits.h"`

Go to the source code of this file.

## Namespaces

namespace | etl

## Typedefs

typedef int64_t | etl::private_to_string::workspace_t
typedef uint64_t | etl::private_to_string::uworkspace_t

## Functions

template<typename TIString>
void | etl::private_to_string::add_alignment (TIString &str, typename TIString::iterator position, const etl::basic_format_spec< TIString > &format)
| Helper function for left/right alignment.
template<typename TIString>
void | etl::private_to_string::add_boolean (const bool value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append)
| Helper function for booleans.
template<typename T, typename TIString>
void | etl::private_to_string::add_integral (T value, TIString &str, const etl::basic_format_spec< TIString > &format, bool append, const bool negative)
| Helper function for integrals.
template<typename TIString>
void | etl::private_to_string::add_nan_inf (const bool not_a_number, const bool infinity, const bool is_negative, TIString &str, const etl::basic_format_spec< TIString > &format)
| Helper function for floating point nan and inf.
template<typename TIString>
void | etl::private_to_string::add_integral_and_fractional (const uint32_t integral, const uint32_t fractional, TIString &str, const etl::basic_format_spec< TIString > &integral_format, const etl::basic_format_spec< TIString > &fractional_format, const bool negative)
| Helper function for floating point integral and fractional.
template<typename TIString>
void | etl::private_to_string::add_integral_and_fractional (const uint64_t integral, const uint64_t fractional, TIString &str, const etl::basic_format_spec< TIString > &integral_format, const etl::basic_format_spec< TIString > &fractional_format, const bool negative)
| Helper function for floating point integral and fractional.
template<typename T, typename TIString>
void | etl::private_to_string::add_floating_point_scientific (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const uint32_t max_precision)
| Helper function for floating point in scientific format.
template<typename T, typename TIString>
void | etl::private_to_string::add_floating_point_non_scientific (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const uint32_t max_precision)
| Helper function for floating point in non-scientific format.
template<typename T, typename TIString>
void | etl::private_to_string::add_floating_point (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append)
| Helper function for floating point.
template<typename T, typename TIString>
void | etl::private_to_string::add_integral_denominated (const T value, const uint32_t denominator_exponent, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| Helper function for denominated integers.
template<typename TIString>
void | etl::private_to_string::add_pointer (const volatile void *value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append)
| Helper function for pointers.
template<typename TIString>
void | etl::private_to_string::add_string (const TIString &value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append)
| Helper function for strings.
template<typename TSringView, typename TIString>
void | etl::private_to_string::add_string_view (const TSringView &value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append)
| Helper function for string views.
template<typename TIString>
const TIString & | etl::private_to_string::to_string (const bool value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For booleans.
template<typename TIString>
const TIString & | etl::private_to_string::to_string (const volatile void *value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For pointers.
template<typename T, typename TIString>
etl::enable_if< etl::is_integral< T >::value &&!etl::is_same< T, bool >::value &&!etl::is_one_of< T, int64_t, uint64_t >::value, constTIString & >::type | etl::private_to_string::to_string (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For integrals less than 64 bits.
template<typename T, typename TIString>
etl::enable_if< etl::is_integral< T >::value &&!etl::is_same< T, bool >::value &&etl::is_one_of< T, int64_t, uint64_t >::value, constTIString & >::type | etl::private_to_string::to_string (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For 64 bit integrals.
template<typename T, typename TIString>
etl::enable_if< etl::is_integral< T >::value &&!etl::is_same< T, bool >::value &&!etl::is_one_of< T, int64_t, uint64_t >::value, constTIString & >::type | etl::private_to_string::to_string (const T value, uint32_t denominator_exponent, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For denominated integrals less than 64 bits.
template<typename T, typename TIString>
etl::enable_if< etl::is_integral< T >::value &&!etl::is_same< T, bool >::value &&etl::is_one_of< T, int64_t, uint64_t >::value, constTIString & >::type | etl::private_to_string::to_string (const T value, uint32_t denominator_exponent, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For denominated 64 bit integrals.
template<typename T, typename TIString>
etl::enable_if< etl::is_floating_point< T >::value, constTIString & >::type | etl::private_to_string::to_string (const T value, TIString &str, const etl::basic_format_spec< TIString > &format, const bool append=false)
| For floating point.