|
template<typename Source > |
static std::enable_if<!std::is_convertible< Source, std::string >::value, std::string >::type | toString (const Source &t) |
| Converts every type which is either a pod (plain old data) type or is convertable to a string (this means that the operator std::string() is defined) More...
|
|
template<typename Source > |
static std::enable_if< std::is_convertible< Source, std::string >::value, std::string >::type | toString (const Source &t) |
| Converts every type which is either a pod (plain old data) type or is convertable to a string (this means that the operator std::string() is defined) More...
|
|
template<typename Destination > |
static bool | fromString (const char *v, Destination &dest) |
| Sets dest from a given string. If the conversion fails false is returned and the value of dest is undefined. More...
|
|
static bool | stringIsNumber (const char *v, const NumberType type) |
| checks if a given string v is a number More...
|
|
template<> |
bool | fromString (const char *v, char &dest) |
|
template<> |
bool | fromString (const char *v, string< 100 > &dest) |
|
template<> |
bool | fromString (const char *v, float &dest) |
|
template<> |
bool | fromString (const char *v, double &dest) |
|
template<> |
bool | fromString (const char *v, long double &dest) |
|
template<> |
bool | fromString (const char *v, uint64_t &dest) |
|
template<> |
bool | fromString (const char *v, uint32_t &dest) |
|
template<> |
bool | fromString (const char *v, uint16_t &dest) |
|
template<> |
bool | fromString (const char *v, uint8_t &dest) |
|
template<> |
bool | fromString (const char *v, int64_t &dest) |
|
template<> |
bool | fromString (const char *v, int32_t &dest) |
|
template<> |
bool | fromString (const char *v, int16_t &dest) |
|
template<> |
bool | fromString (const char *v, int8_t &dest) |
|
template<> |
bool | fromString (const char *v, bool &dest) |
|
Collection of static methods for conversion from and to string.
int i;
unsigned int a;
static bool fromString(const char *v, Destination &dest)
Sets dest from a given string. If the conversion fails false is returned and the value of dest is und...
static std::enable_if<!std::is_convertible< Source, std::string >::value, std::string >::type toString(const Source &t)
Converts every type which is either a pod (plain old data) type or is convertable to a string (this m...
Definition: convert.inl:25