15 #ifndef A_UTIL_UTIL_STRINGS_STRINGS_NUMERIC_TRAITS_DECL_HEADER_INCLUDED
16 #define A_UTIL_UTIL_STRINGS_STRINGS_NUMERIC_TRAITS_DECL_HEADER_INCLUDED
88 static bool check(
const char* from,
const bool&);
97 static bool check(
const char* from,
const std::int8_t&);
99 static bool check(
const char* from,
const std::int16_t&);
101 static bool check(
const char* from,
const std::int32_t&);
103 static bool check(
const char* from,
const std::int64_t&);
105 static bool check(
const char* from,
const std::uint8_t&);
107 static bool check(
const char* from,
const std::uint16_t&);
109 static bool check(
const char* from,
const std::uint32_t&);
111 static bool check(
const char* from,
const std::uint64_t&);
113 static bool check(
const char* from,
const float&);
115 static bool check(
const char* from,
const double&);
124 template <
typename Numeric>
128 template <
typename Numeric>
bool isInt64(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isNumeric(const char *str)
Check whether a string is convertible to a value of type Numeric for generic programming.
bool isInt8(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isInt16(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isUInt8(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isBool(const std::string &str)
Check whether a string can be converted to a boolean type.
bool isInt32(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isUInt16(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isDouble(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isUInt64(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isFloat(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
bool isUInt32(const std::string &str)
Check whether a string can be converted to a value of the given numeric type.
Serves as the root component, with common functionality documented in core functionality.
Private implementation for string numeric trait functions.
Convenience methods to validate string-to-numeric conversion for generic programming.
static bool check(const char *from, const std::uint16_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const float &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::uint8_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::int32_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const double &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::int16_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const bool &)
Check whether a conversion of string from to a boolean type is possible.
static bool check(const char *from, const std::uint32_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::int64_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::uint64_t &)
Check whether a conversion of string from to the type of the second parameter is possible.
static bool check(const char *from, const std::int8_t &)
Check whether a conversion of string from to the type of the second parameter is possible.