17#ifndef IOX2_BB_UTILITY_CONVERT_HPP
18#define IOX2_BB_UTILITY_CONVERT_HPP
68 template <
typename Source>
69 static typename std::enable_if<!std::is_convertible<Source, std::string>::value, std::string>::type
77 template <
typename Source>
78 static typename std::enable_if<std::is_convertible<Source, std::string>::value, std::string>::type
88 template <
typename TargetType>
92 template <
typename TargetType,
typename CallType>
95 template <
typename TargetType,
typename SourceType>
96 static bool check_edge_case(
decltype(errno) errno_cache,
99 const SourceType& source_val)
noexcept;
101 template <
typename SourceType>
102 static bool is_valid_input(
const char* end_ptr,
const char* v,
const SourceType& source_val)
noexcept;
104 template <
typename TargetType,
typename SourceType>
105 static bool is_within_range(
const SourceType& source_val)
noexcept;
107 static bool is_valid_errno(
decltype(errno) errno_cache,
const char* v)
noexcept;
108 static bool start_with_neg_sign(
const char* v)
noexcept;
114#include "iox2/legacy/detail/convert.inl"
Collection of static methods for conversion from and to string.
static constexpr uint32_t FLOAT_SIGNALING_NAN_MASK
static constexpr int32_t STRTOLL_BASE
static bb::Optional< TargetType > from_string(const char *v) noexcept
convert the input based on the 'TargetType', allowing only numeric types as valid destination types
static constexpr int32_t STRTOL_BASE
static constexpr int32_t STRTOULL_BASE
static std::enable_if< std::is_convertible< Source, std::string >::value, std::string >::type toString(const Source &t) noexcept
Converts every type which is either a pod (plain old data) type or is convertible to a string (this m...
static std::enable_if<!std::is_convertible< Source, std::string >::value, std::string >::type toString(const Source &t) noexcept
Converts every type which is either a pod (plain old data) type or is convertible to a string (this m...
static constexpr uint64_t DOUBLE_SIGNALING_NAN_MASK
static constexpr int32_t STRTOUL_BASE
iox2::bb::variation::Optional< T > Optional