Lines Matching refs:s
32 static inline bool ParseFloatingPoint(const char* s, T* out, T min, T max) { in ParseFloatingPoint() argument
35 T result = strtox(s, &end); in ParseFloatingPoint()
36 if (errno != 0 || s == end || *end != '\0') { in ParseFloatingPoint()
51 static inline bool ParseDouble(const char* s, double* out,
54 return ParseFloatingPoint<double, strtod>(s, out, min, max);
56 static inline bool ParseDouble(const std::string& s, double* out,
59 return ParseFloatingPoint<double, strtod>(s.c_str(), out, min, max);
65 static inline bool ParseFloat(const char* s, float* out,
68 return ParseFloatingPoint<float, strtof>(s, out, min, max);
70 static inline bool ParseFloat(const std::string& s, float* out,
73 return ParseFloatingPoint<float, strtof>(s.c_str(), out, min, max);