15#ifndef A_UTIL_UTIL_STRINGS_STRINGS_CONVERT_DECL_HEADER_INCLUDED
16#define A_UTIL_UTIL_STRINGS_STRINGS_CONVERT_DECL_HEADER_INCLUDED
32bool toBool(
const std::string& from,
bool& to);
42bool toInt8(
const std::string& from, std::int8_t& to);
44bool toInt16(
const std::string& from, std::int16_t& to);
46bool toInt32(
const std::string& from, std::int32_t& to);
48bool toInt64(
const std::string& from, std::int64_t& to);
50bool toUInt8(
const std::string& from, std::uint8_t& to);
52bool toUInt16(
const std::string& from, std::uint16_t& to);
54bool toUInt32(
const std::string& from, std::uint32_t& to);
56bool toUInt64(
const std::string& from, std::uint64_t& to);
58bool toFloat(
const std::string& from,
float& to);
60bool toDouble(
const std::string& from,
double& to);
63bool toBool(
const char* from,
bool& to);
65bool toInt8(
const char* from, std::int8_t& to);
67bool toInt16(
const char* from, std::int16_t& to);
69bool toInt32(
const char* from, std::int32_t& to);
71bool toInt64(
const char* from, std::int64_t& to);
73bool toUInt8(
const char* from, std::uint8_t& to);
75bool toUInt16(
const char* from, std::uint16_t& to);
77bool toUInt32(
const char* from, std::uint32_t& to);
79bool toUInt64(
const char* from, std::uint64_t& to);
100std::int8_t
toInt8(
const std::string& from);
156 static bool convert(
const char* from,
bool& to);
165 static bool convert(
const char* from, std::int8_t& to);
167 static bool convert(
const char* from, std::int16_t& to);
169 static bool convert(
const char* from, std::int32_t& to);
171 static bool convert(
const char* from, std::int64_t& to);
173 static bool convert(
const char* from, std::uint8_t& to);
175 static bool convert(
const char* from, std::uint16_t& to);
177 static bool convert(
const char* from, std::uint32_t& to);
179 static bool convert(
const char* from, std::uint64_t& to);
181 static bool convert(
const char* from,
float& to);
183 static bool convert(
const char* from,
double& to);
195template <
typename Numeric>
196bool toNumeric(
const std::string& from, Numeric& to);
199template <
typename Numeric>
200bool toNumeric(
const char* from, Numeric& to);
209template <
typename Numeric>
210Numeric
toNumeric(
const std::string& from);
213template <
typename Numeric>
Serves as component for string handling and conversion functionality.
Definition strings.h:20
bool toInt8(const std::string &from, std::int8_t &to)
bool toFloat(const std::string &from, float &to)
bool toInt32(const std::string &from, std::int32_t &to)
bool toUInt16(const std::string &from, std::uint16_t &to)
bool toUInt32(const std::string &from, std::uint32_t &to)
bool toInt16(const std::string &from, std::int16_t &to)
bool toDouble(const std::string &from, double &to)
bool toUInt8(const std::string &from, std::uint8_t &to)
bool toInt64(const std::string &from, std::int64_t &to)
bool toNumeric(const char *from, Numeric &to)
Definition strings_convert_impl.h:23
bool toUInt64(const std::string &from, std::uint64_t &to)
bool toBool(const std::string &from, bool &to)
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24
Definition strings_convert_decl.h:146
static bool convert(const char *from, float &to)
static bool convert(const char *from, double &to)
static bool convert(const char *from, std::int64_t &to)
static bool convert(const char *from, std::int32_t &to)
static bool convert(const char *from, std::int8_t &to)
static bool convert(const char *from, bool &to)
static bool convert(const char *from, std::uint32_t &to)
static bool convert(const char *from, std::uint8_t &to)
static bool convert(const char *from, std::uint16_t &to)
static bool convert(const char *from, std::int16_t &to)
static bool convert(const char *from, std::uint64_t &to)