|
@@ 382-390 (lines=9) @@
|
| 379 |
|
} |
| 380 |
|
|
| 381 |
|
// standard infix operators |
| 382 |
|
if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->_formula{$index}) !== false) { |
| 383 |
|
if (strlen($value) > 0) { |
| 384 |
|
$tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); |
| 385 |
|
$value = ""; |
| 386 |
|
} |
| 387 |
|
$tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX); |
| 388 |
|
++$index; |
| 389 |
|
continue; |
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
// standard postfix operators (only one) |
| 393 |
|
if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) { |
|
@@ 393-401 (lines=9) @@
|
| 390 |
|
} |
| 391 |
|
|
| 392 |
|
// standard postfix operators (only one) |
| 393 |
|
if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->_formula{$index}) !== false) { |
| 394 |
|
if (strlen($value) > 0) { |
| 395 |
|
$tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); |
| 396 |
|
$value = ""; |
| 397 |
|
} |
| 398 |
|
$tokens1[] = new PHPExcel_Calculation_FormulaToken($this->_formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX); |
| 399 |
|
++$index; |
| 400 |
|
continue; |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
// start subexpression or function |
| 404 |
|
if ($this->_formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) { |