#include <stdio.h>
#include <qglobal.h>
Go to the source code of this file.
Definition at line 57 of file cppvalue.cpp.
63 case 'n':
return CPPValue((
long)
'\n');
64 case 't':
return CPPValue((
long)
'\t');
65 case 'v':
return CPPValue((
long)
'\v');
66 case 'b':
return CPPValue((
long)
'\b');
67 case 'r':
return CPPValue((
long)
'\r');
68 case 'f':
return CPPValue((
long)
'\f');
69 case 'a':
return CPPValue((
long)
'\a');
70 case '\\':
return CPPValue((
long)
'\\');
71 case '?':
return CPPValue((
long)
'\?');
72 case '\'':
return CPPValue((
long)
'\'');
73 case '"':
return CPPValue((
long)
'"');
85 default: printf(
"Invalid escape sequence %s found!\n",
g_strToken.
data());
const char * data() const
CPPValue parseHexadecimal()
Definition at line 34 of file cppvalue.cpp.
39 if (*
p >=
'0' && *
p <=
'9') val = val * 10 + *
p -
'0';
const char * data() const
Definition at line 44 of file cppvalue.cpp.
49 if (*
p >=
'0' && *
p <=
'9') val = val * 16 + *
p -
'0';
50 else if (*p >=
'a' && *p <=
'f') val = val * 16 + *p -
'a' + 10;
51 else if (*p >=
'A' && *p <=
'F') val = val * 16 + *p -
'A' + 10;
const char * data() const
Definition at line 24 of file cppvalue.cpp.
29 if (*
p >=
'0' && *
p <=
'7') val = val * 8 + *
p -
'0';
const char * data() const