ADTF  3.18.2
IsNumericConvertible

Convenience methods to validate string-to-numeric conversion for generic programming. More...

Static Public Member Functions

static bool check (const char *from, const bool &)
 Check whether a conversion of string from to a boolean type is possible. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
static bool check (const char *from, const float &)
 Check whether a conversion of string from to the type of the second parameter is possible. More...
 
static bool check (const char *from, const double &)
 Check whether a conversion of string from to the type of the second parameter is possible. More...
 

Detailed Description

Convenience methods to validate string-to-numeric conversion for generic programming.

Definition at line 80 of file strings_numeric_traits_decl.h.

Member Function Documentation

◆ check() [1/11]

static bool check ( const char *  from,
const bool &   
)
static

Check whether a conversion of string from to a boolean type is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

Referenced by a_util::strings::isNumeric().

◆ check() [2/11]

static bool check ( const char *  from,
const double &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [3/11]

static bool check ( const char *  from,
const float &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [4/11]

static bool check ( const char *  from,
const std::int16_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [5/11]

static bool check ( const char *  from,
const std::int32_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [6/11]

static bool check ( const char *  from,
const std::int64_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [7/11]

static bool check ( const char *  from,
const std::int8_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [8/11]

static bool check ( const char *  from,
const std::uint16_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [9/11]

static bool check ( const char *  from,
const std::uint32_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [10/11]

static bool check ( const char *  from,
const std::uint64_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.

◆ check() [11/11]

static bool check ( const char *  from,
const std::uint8_t &   
)
static

Check whether a conversion of string from to the type of the second parameter is possible.

Note
The second parameter is only for automatic overloading resolution, its value is ignored.If the potentially convertible numeric value is not in range of the second parameters numeric limits, the check fails.
Parameters
[in]fromString to validate the conversion on.
Returns
true if conversion is possible, false otherwise.