9 #ifndef COMPILER_PREPROCESSOR_NUMERIC_LEX_H_
10 #define COMPILER_PREPROCESSOR_NUMERIC_LEX_H_
18 if ((str.size() >= 2) &&
20 (str[1] ==
'x' || str[1] ==
'X'))
24 else if ((str.size() >= 1) && (str[0] ==
'0'))
36 template<
typename IntType>
39 std::istringstream
stream(str);
45 return !stream.fail();
48 template<
typename FloatType>
51 std::istringstream
stream(str);
54 stream.imbue(std::locale::classic());
57 return !stream.fail();
61 #endif // COMPILER_PREPROCESSOR_NUMERIC_LEX_H_
std::ios::fmtflags numeric_base_int(const std::string &str)
EGLSurface EGLint void ** value
bool numeric_lex_int(const std::string &str, IntType *value)
GLsizei const GLcharARB ** string
bool numeric_lex_float(const std::string &str, FloatType *value)