39void toStr(std::string& str,
const std::string& value)
49 toStr(res, character);
54 template <
size_t From,
size_t To>
57 static constexpr size_t compute(
const char* s)
noexcept
66 static constexpr size_t compute(
const char*)
noexcept {
return To; }
70template <
size_t MaxLen>
71ONIXS_ICEBOE_FORCEINLINE
72typename std::enable_if<(MaxLen <= 16), size_t>::type
78template <
size_t MaxLen>
79ONIXS_ICEBOE_FORCEINLINE
80typename std::enable_if<(MaxLen > 16),
size_t>::type
83 return ::strnlen(s, MaxLen);
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_BEGIN
#define ONIXS_ICEBOE_MESSAGING_NAMESPACE_END
#define ONIXS_ICEBOE_EXPORTED
#define ONIXS_ICEBOE_NODISCARD
char Char
Character type alias.
std::string toStr(const FixedPointDecimal< Mantissa, Exponent > &)
Serializes a fixed-point decimal into a string.
ONIXS_ICEBOE_FORCEINLINE std::enable_if<(MaxLen<=16), size_t >::type stringLen(const Char *s) noexcept
static constexpr size_t compute(const char *) noexcept
static constexpr size_t compute(const char *s) noexcept