Functions | |
| template<typename T> | |
| T | hexstr_cast (const std::string &in) |
| Convert a hexadecimal string into a value. | |
| template<typename T> | |
| T | fromstr_cast (const std::string &in) |
| template<typename data_t> | |
| data_t | from_str (const std::string &) |
| Generic cast-from-string function. | |
| template<> | |
| UHD_API bool | from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for Boolean values. | |
| template<> | |
| UHD_API double | from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for double-precision values. | |
| template<> | |
| UHD_API int | from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for integer values. | |
| template<> | |
| UHD_API std::string | from_str (const std::string &val) |
Specialization of uhd::cast::from_str() for strings. | |
| UHD_API std::string | to_ordinal_string (int val) |
| Create an ordinal string from a number. | |
| data_t uhd::cast::from_str | ( | const std::string & | ) |
Generic cast-from-string function.
| UHD_API bool uhd::cast::from_str | ( | const std::string & | val | ) |
Specialization of uhd::cast::from_str() for Boolean values.
| UHD_API double uhd::cast::from_str | ( | const std::string & | val | ) |
Specialization of uhd::cast::from_str() for double-precision values.
| UHD_API int uhd::cast::from_str | ( | const std::string & | val | ) |
Specialization of uhd::cast::from_str() for integer values.
| UHD_API std::string uhd::cast::from_str | ( | const std::string & | val | ) |
Specialization of uhd::cast::from_str() for strings.
|
inline |
Convert hexadecimal, decimal, octal or other strings that support the >> operator into a value depending on the prefix.
|
inline |
Convert a hexadecimal string into a value.
| UHD_API std::string uhd::cast::to_ordinal_string | ( | int | val | ) |
Create an ordinal string from a number.