Workitem 7895 - Excel5 : Formula : Concatenation operator

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@59912 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Progi1984 2010-08-27 07:27:24 +00:00
parent 509f27e5c6
commit ab9d03069d
2 changed files with 10 additions and 3 deletions

View File

@ -1151,6 +1151,9 @@ class PHPExcel_Writer_Excel5_Parser
case "^":
return $token;
break;
case "&":
return $token;
break;
default:
// if it's a reference A1 or $A$1 or $A1 or A$1
if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/',$token) and
@ -1265,6 +1268,10 @@ class PHPExcel_Writer_Excel5_Parser
$this->_advance();
$result2 = $this->_expression();
$result = $this->_createTree('ptgNE', $result, $result2);
} elseif ($this->_current_token == "&") {
$this->_advance();
$result2 = $this->_expression();
$result = $this->_createTree('ptgConcat', $result, $result2);
}
return $result;
}

View File

@ -24,7 +24,7 @@
Fixed in SVN:
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Concatenation operator
2010-08-26 (v1.7.4):
- Bugfix: (Progi1984) Workitem 7895 - Excel5 : Formula : Power