fixed __jet.cpp merge for cgi work.
This commit is contained in:
commit
d34ff928d9
@ -87,6 +87,7 @@ namespace jet {
|
||||
throw coreutils::Exception("Expecting ) at end of TRIM expression.");
|
||||
} else if(in.ifNextIgnoreCase("TOUPPER")) {
|
||||
|
||||
|
||||
} else if(in.ifNextIgnoreCase("TOLOWER")) {
|
||||
|
||||
} else if(in.ifNextIgnoreCase("REVERSE")) {
|
||||
@ -94,7 +95,13 @@ namespace jet {
|
||||
} else if(in.ifNextIgnoreCase("CONCAT")) {
|
||||
|
||||
} else if(in.ifNextIgnoreCase("INTEGER")) {
|
||||
|
||||
if(!in.ifNext("("))
|
||||
throw coreutils::Exception("Expecting ( for INTEGER parameters.");
|
||||
Operand parm1(in, tag);
|
||||
if(in.ifNext(")")) {
|
||||
string = parm1.string.asInteger();
|
||||
} else
|
||||
throw coreutils::Exception("Expecting ) at end of INTEGER expression.");
|
||||
} else if(in.ifNextIgnoreCase("ROUND")) {
|
||||
|
||||
} else if(in.ifNextIgnoreCase("RANDOM")) {
|
||||
|
@ -9,7 +9,6 @@ namespace jet {
|
||||
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
|
||||
if(keywordDefined("cgi") && (resolveKeyword("cgi") == "true")) {
|
||||
global.cgi = true;
|
||||
|
||||
char *cookies = getenv("HTTP_COOKIE");
|
||||
std::cout << cookies << std::endl;
|
||||
|
||||
|
@ -10,4 +10,6 @@ $[lefty]=01234
|
||||
$[righty]=56789
|
||||
<set name="trim" expr="trim(' this is a test ')" />
|
||||
$[trim]=this is a test
|
||||
<set name="integer" expr="integer(12430.54356546)" />
|
||||
$[integer]=12430
|
||||
</jet>
|
||||
|
@ -19,4 +19,6 @@ $[var$[i$[letterx]]$[i$[letterx]]]
|
||||
$[ix]
|
||||
<set name="ix" expr="$[ix]+1" />
|
||||
$[ix]
|
||||
<set name="test64" value="this is a test" />
|
||||
$[test64;tobase64]
|
||||
</jet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user