30 #ifndef STRING_UTIL_STRING_UTIL_H_ 31 #define STRING_UTIL_STRING_UTIL_H_ 38 bool ToDouble(
const std::string&
string,
double& value);
40 bool ToFloat(
const std::string&
string,
float& value);
42 bool ToInt32(
const std::string&
string, int32_t& value, int32_t base = 10);
44 bool ToUInt32(
const std::string&
string, uint32_t& value, int32_t base = 10);
47 #endif // STRING_UTIL_STRING_UTIL_H_
bool ToInt32(const std::string &string, int32_t &value, int32_t base=10)
bool ToUInt32(const std::string &string, uint32_t &value, int32_t base=10)
bool ToFloat(const std::string &string, float &value)
bool ToDouble(const std::string &string, double &value)