Lines Matching refs:string_property
46 bool ConvertStringPropertyToType(const string& string_property, T* value);
263 bool ConvertStringPropertyToType(const string& string_property, T* value) { in ConvertStringPropertyToType() argument
269 bool ConvertStringPropertyToType<bool>(const string& string_property, in ConvertStringPropertyToType() argument
271 return BoolStringToBool(string_property, value); in ConvertStringPropertyToType()
275 bool ConvertStringPropertyToType<double>(const string& string_property, in ConvertStringPropertyToType() argument
277 *value = std::stod(string_property); in ConvertStringPropertyToType()
282 bool ConvertStringPropertyToType<int>(const string& string_property, in ConvertStringPropertyToType() argument
285 for (int i = 0; i < string_property.size(); ++i) { in ConvertStringPropertyToType()
286 if (!isdigit(string_property[i])) { in ConvertStringPropertyToType()
291 *value = std::atoi(string_property.c_str()); // NOLINT in ConvertStringPropertyToType()
296 bool ConvertStringPropertyToType<int64>(const string& string_property, in ConvertStringPropertyToType() argument
298 *value = std::stol(string_property); in ConvertStringPropertyToType()