9 #ifndef COMPILER_PREPROCESSOR_NUMERICLEX_H_ 10 #define COMPILER_PREPROCESSOR_NUMERICLEX_H_ 18 if ((str.size() >= 2) &&
20 (str[1] ==
'x' || str[1] ==
'X'))
24 if ((str.size() >= 1) && (str[0] ==
'0'))
36 template<
typename IntType>
39 std::istringstream
stream(str);
45 return !stream.fail();
48 template<
typename FloatType>
56 #if defined(ANGLE_PLATFORM_ANDROID) && __x86_64__ 57 *value = strtod(str.c_str(),
nullptr);
58 return errno != ERANGE;
60 std::istringstream
stream(str);
63 stream.imbue(std::locale::classic());
66 return !stream.fail();
72 #endif // COMPILER_PREPROCESSOR_NUMERICLEX_H_ Definition: DiagnosticsBase.cpp:11
EGLStreamKHR stream
Definition: eglext.h:340
std::ios::fmtflags numeric_base_int(const std::string &str)
Definition: numeric_lex.h:16
EGLAttrib * value
Definition: eglext.h:120
str
Definition: make-dist.py:305
GLsizei const GLchar *const * string
Definition: gl2.h:479
bool numeric_lex_int(const std::string &str, IntType *value)
Definition: numeric_lex.h:37
bool numeric_lex_float(const std::string &str, FloatType *value)
Definition: numeric_lex.h:49