Lines Matching refs:string_property
45 bool ConvertStringPropertyToType(const string& string_property, T* value);
262 bool ConvertStringPropertyToType(const string& string_property, T* value) { in ConvertStringPropertyToType() argument
268 bool ConvertStringPropertyToType<bool>(const string& string_property, in ConvertStringPropertyToType() argument
270 return BoolStringToBool(string_property, value); in ConvertStringPropertyToType()
274 bool ConvertStringPropertyToType<double>(const string& string_property, in ConvertStringPropertyToType() argument
276 *value = std::stod(string_property); in ConvertStringPropertyToType()
281 bool ConvertStringPropertyToType<int>(const string& string_property, in ConvertStringPropertyToType() argument
284 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()
295 bool ConvertStringPropertyToType<int64>(const string& string_property, in ConvertStringPropertyToType() argument
297 *value = std::stol(string_property); in ConvertStringPropertyToType()