31 #ifndef STRING_UTILITIES_H 32 #define STRING_UTILITIES_H 65 bool toDouble(
const std::string&
string,
double& value);
79 bool toFloat(
const std::string&
string,
float& value);
94 bool toInt32(
const std::string&
string, int32_t& value, int32_t base = 10);
109 bool toUInt32(
const std::string&
string, uint32_t& value, int32_t base = 10);
123 int8_t
toInt8(
const std::string&
string, int8_t& value, int32_t base = 10);
137 uint8_t
toUInt8(
const std::string&
string, uint8_t& value, int32_t base = 10);
158 #endif // STRING_UTILITIES_H bool toFloat(const std::string &string, float &value)
Interprets the contents of "string" as a floating point number of type float.
bool toDouble(const std::string &string, double &value)
Interprets the contents of "string" as a floating point number of type double It stores the "string"'...
uint8_t toUInt8(const std::string &string, uint8_t &value, int32_t base=10)
Interprets the contents of "string" as a floating point number of whatever unsigned integer type your...
bool containsSpace(const std::string str)
Checks if a string contains spaces.
bool toUInt32(const std::string &string, uint32_t &value, int32_t base=10)
Interprets the contents of "string" as a floating point number of whatever unsigned integer type your...
std::string trimDecimalPlaces(double num)
Trims decimal places to two.
int8_t toInt8(const std::string &string, int8_t &value, int32_t base=10)
Interprets the contents of "string" as a floating point number of whatever integer type your system h...
bool toInt32(const std::string &string, int32_t &value, int32_t base=10)
Interprets the contents of "string" as a floating point number of whatever integer type your system h...