Searched refs:string_property (Results 1 – 1 of 1) sorted by relevance
45 bool ConvertStringPropertyToType(const string& string_property, T* value);262 bool ConvertStringPropertyToType(const string& string_property, T* value) { in ConvertStringPropertyToType() argument268 bool ConvertStringPropertyToType<bool>(const string& string_property, in ConvertStringPropertyToType() argument270 return BoolStringToBool(string_property, value); in ConvertStringPropertyToType()274 bool ConvertStringPropertyToType<double>(const string& string_property, in ConvertStringPropertyToType() argument276 *value = std::stod(string_property); in ConvertStringPropertyToType()281 bool ConvertStringPropertyToType<int>(const string& string_property, in ConvertStringPropertyToType() argument284 for (int i = 0; i < string_property.size(); ++i) { in ConvertStringPropertyToType()285 if (!isdigit(string_property[i])) { in ConvertStringPropertyToType()290 *value = std::atoi(string_property.c_str()); // NOLINT in ConvertStringPropertyToType()[all …]