diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-07-15 17:11:26 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-07-15 17:11:26 (GMT) |
commit | 5346e18047c0e047db2f1b13dc2c767a73c5c305 (patch) | |
tree | bc5400211360251f121d60efdd50b09f10db11d2 /src/cppvalue.cpp | |
parent | d723d351b1ec59ad9db456f820d59a6e270f21a4 (diff) | |
download | Doxygen-5346e18047c0e047db2f1b13dc2c767a73c5c305.zip Doxygen-5346e18047c0e047db2f1b13dc2c767a73c5c305.tar.gz Doxygen-5346e18047c0e047db2f1b13dc2c767a73c5c305.tar.bz2 |
Release-1.2.8-20010715
Diffstat (limited to 'src/cppvalue.cpp')
-rw-r--r-- | src/cppvalue.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cppvalue.cpp b/src/cppvalue.cpp index 62d73dd..be1018a 100644 --- a/src/cppvalue.cpp +++ b/src/cppvalue.cpp @@ -24,7 +24,7 @@ CPPValue parseOctal() { long val = 0; - for (const char *p = strToken.data(); *p != 0; p++) + for (const char *p = g_strToken.data(); *p != 0; p++) { if (*p >= '0' && *p <= '7') val = val * 8 + *p - '0'; } @@ -34,7 +34,7 @@ CPPValue parseOctal() CPPValue parseDecimal() { long val = 0; - for (const char *p = strToken.data(); *p != 0; p++) + for (const char *p = g_strToken.data(); *p != 0; p++) { if (*p >= '0' && *p <= '9') val = val * 10 + *p - '0'; } @@ -44,7 +44,7 @@ CPPValue parseDecimal() CPPValue parseHexadecimal() { long val = 0; - for (const char *p = strToken.data(); *p != 0; p++) + for (const char *p = g_strToken.data(); *p != 0; p++) { if (*p >= '0' && *p <= '9') val = val * 16 + *p - '0'; else if (*p >= 'a' && *p <= 'f') val = val * 16 + *p - 'a' + 10; @@ -55,9 +55,9 @@ CPPValue parseHexadecimal() CPPValue parseCharacter() // does not work for '\n' and the alike { - if (strToken[1]=='\\') + if (g_strToken[1]=='\\') { - switch(strToken[2]) + switch(g_strToken[2]) { case 'n': return CPPValue((long)'\n'); case 't': return CPPValue((long)'\t'); @@ -73,14 +73,14 @@ CPPValue parseCharacter() // does not work for '\n' and the alike case '0': return parseOctal(); case 'x': case 'X': return parseHexadecimal(); - default: printf("Invalid escape sequence %s found!\n",strToken.data()); + default: printf("Invalid escape sequence %s found!\n",g_strToken.data()); return CPPValue(0L); } } - return CPPValue((long)strToken[1]); + return CPPValue((long)g_strToken[1]); } CPPValue parseFloat() { - return CPPValue(atof(strToken)); + return CPPValue(atof(g_strToken)); } |